Exemple #1
0
 protected override void Awake()
 {
     base.Awake();
     stateView       = GetComponentInParent <StateView>();
     buttonAnimation = GetComponent <ButtonAnimation>();
     buttonAnimation?.SetOwner(this);
     buttonAnimation?.ChangeState(buttonAnimation.currentState);
 }