Fixing is endless
This commit is contained in:
1 parent
c0dec163cd
commit
3ca9444333
45 files changed
+123468
-18592
No files matched your search
@@ -1,20 +1,28 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.OfficeGame.BattleMode.Actions
|
||||
{
|
||||
public class StuggerActionData : BattleActionData
|
||||
{
|
||||
public int CurrentFrame;
|
||||
public int TransitionFrames = 60;
|
||||
public int TransitionFrames;
|
||||
|
||||
public Vector3 KnockbackDirection;
|
||||
public float KnockbackSpeed;
|
||||
public float KnockbackDistance;
|
||||
|
||||
public override BattleActionData GetSnapshot()
|
||||
{
|
||||
var snapshot = new StuggerActionData()
|
||||
return new StuggerActionData
|
||||
{
|
||||
TotalFrames = TotalFrames,
|
||||
Finished = Finished,
|
||||
CurrentFrame = CurrentFrame,
|
||||
TransitionFrames = TransitionFrames,
|
||||
KnockbackDirection = KnockbackDirection,
|
||||
KnockbackSpeed = KnockbackSpeed,
|
||||
KnockbackDistance = KnockbackDistance
|
||||
};
|
||||
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
public override void RestoreSnapshot(BattleActionData snapshot)
|
||||
@@ -25,6 +33,9 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
Finished = neededSnapshot.Finished;
|
||||
CurrentFrame = neededSnapshot.CurrentFrame;
|
||||
TransitionFrames = neededSnapshot.TransitionFrames;
|
||||
KnockbackDirection = neededSnapshot.KnockbackDirection;
|
||||
KnockbackSpeed = neededSnapshot.KnockbackSpeed;
|
||||
KnockbackDistance = neededSnapshot.KnockbackDistance;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user