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