modify
This commit is contained in:
parent
b7bbd9f6c6
commit
2842e19006
@ -113,11 +113,25 @@ public class UXButton : UIBehaviour, IButton,
|
||||
|
||||
#region Unity Lifecycle
|
||||
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
Initlize();
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
protected override void OnValidate()
|
||||
{
|
||||
base.OnValidate();
|
||||
if (!Application.isPlaying)
|
||||
{
|
||||
Initlize();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // if UNITY_EDITOR
|
||||
|
||||
protected void Initlize()
|
||||
{
|
||||
_boardEvent = true;
|
||||
_waitTimeFadeDuration = new WaitForSeconds(
|
||||
@ -134,10 +148,6 @@ public class UXButton : UIBehaviour, IButton,
|
||||
|
||||
UpdateVisualState(m_SelectionState, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // if UNITY_EDITOR
|
||||
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user