37 lines
749 B
C#
37 lines
749 B
C#
using SHADE;
|
|
using System;
|
|
|
|
public class PlayerIdleState : BaseState
|
|
{
|
|
private AnimationClipAsset idleClip;
|
|
private Animator animator;
|
|
public PlayerIdleState(StateMachine stateMachine, Animator ani , AnimationClipAsset clip) : base(stateMachine)
|
|
{
|
|
stateName = "Idle State";
|
|
idleClip = clip;
|
|
animator = ani;
|
|
}
|
|
public override void OnEnter()
|
|
{
|
|
//Debug.Log("WALK ENTER");
|
|
animator.Play(idleClip);
|
|
}
|
|
public override void update()
|
|
{
|
|
//Debug.Log("WALKING");
|
|
}
|
|
public override void fixedUpdate()
|
|
{
|
|
//Debug.Log("FIXED WALKING");
|
|
}
|
|
public override void OnExit()
|
|
{
|
|
//Debug.Log("WALK EXIT");
|
|
}
|
|
public override void onTriggerEnter(CollisionInfo info)
|
|
{
|
|
//Debug.Log("TRIGGER");
|
|
}
|
|
}
|
|
|