Timeline works YAY
This commit is contained in:
1 parent
6114192055
commit
7098d938a7
84 files changed
+96509
-51755
No files matched your search
@@ -0,0 +1,26 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using KinematicCharacterController;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
|
||||
namespace Code.OfficeGame.BattleMode.Actions
|
||||
{
|
||||
public class BattleActionMove : BattleAction
|
||||
{
|
||||
private NavMeshPath _path = new();
|
||||
private Vector3 _endPosition;
|
||||
public override void Tick(float tickDelta)
|
||||
{
|
||||
KinematicCharacterSystem.Simulate(
|
||||
tickDelta,
|
||||
KinematicCharacterSystem.CharacterMotors,
|
||||
KinematicCharacterSystem.PhysicsMovers
|
||||
);
|
||||
}
|
||||
|
||||
public override async UniTask DecideAction()
|
||||
{
|
||||
_endPosition = new Vector3(0,0,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user