Something more fixed
This commit is contained in:
1 parent
7d236d14cd
commit
d810ea00b6
676 files changed
+176711
-316402
No files matched your search
@@ -27,6 +27,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
return new MovementBattleActionData
|
||||
{
|
||||
TotalFrames = TotalFrames,
|
||||
Finished = Finished,
|
||||
Position = Position,
|
||||
Rotation = Rotation,
|
||||
Path = Path,
|
||||
@@ -40,10 +41,11 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
|
||||
public override void RestoreSnapshot(BattleActionData snapshot)
|
||||
{
|
||||
TotalFrames = snapshot.TotalFrames;
|
||||
|
||||
if (snapshot is not MovementBattleActionData moveSnapshot) return;
|
||||
|
||||
TotalFrames = snapshot.TotalFrames;
|
||||
Finished = snapshot.Finished;
|
||||
|
||||
CurrentFrame = moveSnapshot.CurrentFrame;
|
||||
Position = moveSnapshot.Position;
|
||||
Rotation = moveSnapshot.Rotation;
|
||||
|
||||
Reference in new issue
Block a user