public new PlayerActions OnEnter(PlayerCharacter player) { player.attacking = true; anim = player.sword.GetComponent <Animator>(); anim.SetTrigger("SwingSword"); return(PlayerActions.GetInstance()); }
public PlayerActions OnEnter(PlayerCharacter player) { timer = player.hitTime; normalMat = Resources.Load("PlayerMat", typeof(Material)) as Material; hurtMat = Resources.Load("PlayerHurtMat", typeof(Material)) as Material; return(PlayerActions.GetInstance()); }
public PlayerActions OnEnter(PlayerCharacter player) { hit = false; return(PlayerActions.GetInstance()); }