*
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class PlayerDeadStateEnter : StateMachineBehaviour {
|
||||
|
||||
public override void OnStateEnter (Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
||||
{
|
||||
var player = animator.gameObject.GetComponent<HumanController>();
|
||||
if(player != null){
|
||||
player.OnDeadStateEnter();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user