// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { base.OnStateEnter(animator, stateInfo, layerIndex); currentAnimator = animator; thisTransform = animator.transform; seeker = thisTransform.GetComponent <Seeker>(); seeker.OnMineClaimed += MineMarked; seeker.BeginMark(); }