started adding enemy factory
This commit is contained in:
@@ -12,6 +12,8 @@ namespace Darkmatter.Presentation
|
||||
public class PlayerAnimController : HumonoidAnim, IPlayerAnim
|
||||
{
|
||||
private readonly int shootHash = Animator.StringToHash("IsShooting");
|
||||
protected readonly int moveXhash = Animator.StringToHash("MoveX");
|
||||
protected readonly int moveYhash = Animator.StringToHash("MoveY");
|
||||
private readonly int reloadHash = Animator.StringToHash("Reload");
|
||||
public TwoBoneIKConstraint HandOnGunIK; //for gunHand Ik
|
||||
private Coroutine reloadCoroutine;
|
||||
@@ -59,6 +61,12 @@ namespace Darkmatter.Presentation
|
||||
}
|
||||
|
||||
|
||||
public void PlayMovementAnim(Vector2 velocity)
|
||||
{
|
||||
animator.SetFloat(moveXhash, velocity.x, 0.4f, Time.deltaTime);
|
||||
animator.SetFloat(moveYhash, velocity.y, 0.4f, Time.deltaTime);
|
||||
}
|
||||
|
||||
public void PlayShootAnim()
|
||||
{
|
||||
Debug.Log("player Shoot");
|
||||
|
||||
Reference in New Issue
Block a user