Something more fixed
This commit is contained in:
1 parent
7d236d14cd
commit
d810ea00b6
676 files changed
+176711
-316402
No files matched your search
@@ -220,7 +220,13 @@ namespace Code.OfficeGame.BattleMode.Timeline
|
||||
|
||||
entity.animator.Update(TickDelta);
|
||||
}
|
||||
|
||||
|
||||
KinematicCharacterController.KinematicCharacterSystem.Simulate(
|
||||
TickDelta,
|
||||
KinematicCharacterController.KinematicCharacterSystem.CharacterMotors,
|
||||
KinematicCharacterController.KinematicCharacterSystem.PhysicsMovers
|
||||
);
|
||||
|
||||
Physics.Simulate(TickDelta);
|
||||
Physics.SyncTransforms();
|
||||
|
||||
@@ -321,6 +327,8 @@ namespace Code.OfficeGame.BattleMode.Timeline
|
||||
else if (decisionResult.ResultCode == BattleActionDecisionResultCode.CancelDecision)
|
||||
{
|
||||
decidedActionType = BattleActionType.None;
|
||||
_battleActionDatas.Remove(entityId);
|
||||
_actionDecisionResults.Remove(entityId);
|
||||
break;
|
||||
}
|
||||
else break;
|
||||
@@ -328,15 +336,7 @@ namespace Code.OfficeGame.BattleMode.Timeline
|
||||
|
||||
_battleActionDeciders[deciderType].UnmountDecider();
|
||||
}
|
||||
|
||||
if (entityResultSnapshot != null
|
||||
&& !_actionDecisionResults.TryAdd(entityId, entityResultSnapshot))
|
||||
_actionDecisionResults[entityId]?.RestoreSnapshot(entityResultSnapshot);
|
||||
|
||||
if (entityActionDataSnapshot != null
|
||||
&& !_battleActionDatas.TryAdd(entityId, entityActionDataSnapshot))
|
||||
_battleActionDatas[entityId]?.RestoreSnapshot(entityActionDataSnapshot);
|
||||
|
||||
|
||||
if (decisionResult == null || actionData == null) throw new ArgumentNullException(nameof(decisionResult));
|
||||
|
||||
return (decisionResult, actionData);
|
||||
|
||||
Reference in new issue
Block a user