|
|
@@ -2,7 +2,7 @@ using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class death : StateMachineBehaviour
|
|
|
|
public class SlimeDeath : StateMachineBehaviour
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
|
|
|
|
// 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)
|
|
|
|
//override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
|
@@ -17,10 +17,10 @@ public class death : StateMachineBehaviour
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
// OnStateExit is called when a transition ends and the state machine finishes evaluating this state
|
|
|
|
// OnStateExit is called when a transition ends and the state machine finishes evaluating this state
|
|
|
|
//override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
|
|
override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
|
|
//{
|
|
|
|
{
|
|
|
|
//
|
|
|
|
Destroy(animator.gameObject);
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// OnStateMove is called right after Animator.OnAnimatorMove()
|
|
|
|
// OnStateMove is called right after Animator.OnAnimatorMove()
|
|
|
|
//override public void OnStateMove(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
|
|
//override public void OnStateMove(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|