feat: add test shurken
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace Reset.Units{
|
||||
public class UnitAnimation : UnitComponent{
|
||||
@@ -30,6 +31,11 @@ namespace Reset.Units{
|
||||
// }
|
||||
|
||||
modelAnimator.SetFloat("Move Direction X", moveSpeed);
|
||||
modelAnimator.SetFloat("Gravity", Unit.Movement.resolvedMovement.gravity);
|
||||
|
||||
modelAnimator.SetBool("Grounded", Physics.Raycast(transform.position, Vector3.down, .2f));
|
||||
|
||||
Debug.Log(Unit.Movement.GetGrounded());
|
||||
}
|
||||
|
||||
private void LateUpdate(){
|
||||
|
||||
Reference in New Issue
Block a user