public void SetAnimationCallbacks(PlayerAnimationCallbacks PlayerAnimationCallbacks) { this.AnimationCallbacks = PlayerAnimationCallbacks; }
/// <summary> /// This function is called when the MonoBehaviour will be destroyed. /// </summary> void OnDestroy() { AttackBehaviour.OnProjectileAttackStartedEvent -= OnProjectileShouldBeInstantiated; AttackBehaviour.OnProjectileFireEvent -= OnProjectileShouldBeFired; AnimationCallbacks = null; }