Exemplo n.º 1
0
    public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        if (explorerDetector.Mine != null && animator.gameObject.transform.position == explorerDetector.Mine.Position)
        {
            explorerDetector.Mine.Flagged = true;
        }

        explorerDetector.ResetDetector();
    }
Exemplo n.º 2
0
 public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     mineDetector.ResetDetector();
 }
Exemplo n.º 3
0
 public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     mineDetector.ResetDetector();
     animator.SetBool("MinesInView", false);
 }