Compare commits
2 Commits
loottable
...
9a104a8bd3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a104a8bd3 | ||
| 5a83699fd1 |
@@ -120,7 +120,7 @@ public class SlimeAI : MonoBehaviour
|
||||
{
|
||||
HP -= dmg;
|
||||
}
|
||||
|
||||
|
||||
void Attack()
|
||||
{
|
||||
if (!isAttacking)
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
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
|
||||
//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
|
||||
//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()
|
||||
//override public void OnStateMove(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c7f89faf36f41b418e5105a12c34cdb
|
||||
guid: aa7306c35f4c27d4daefb1259633b9d0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
Reference in New Issue
Block a user