I fixed some
This commit is contained in:
1 parent
1a75cf8461
commit
c0dec163cd
688 files changed
+227631
-198871
No files matched your search
@@ -6,7 +6,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
public int TransitionFrames = 60;
|
||||
public override BattleActionData GetSnapshot()
|
||||
{
|
||||
var snapshot = new AttackBattleActionData()
|
||||
var snapshot = new StuggerActionData()
|
||||
{
|
||||
TotalFrames = TotalFrames,
|
||||
Finished = Finished,
|
||||
@@ -19,7 +19,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
|
||||
public override void RestoreSnapshot(BattleActionData snapshot)
|
||||
{
|
||||
if (snapshot is not AttackBattleActionData neededSnapshot) return;
|
||||
if (snapshot is not StuggerActionData neededSnapshot) return;
|
||||
|
||||
TotalFrames = neededSnapshot.TotalFrames;
|
||||
Finished = neededSnapshot.Finished;
|
||||
|
||||
@@ -91,12 +91,12 @@ namespace Code.OfficeGame.BattleMode.Actions.Attacks
|
||||
|
||||
public override void Finish(EntityProperties entity, BattleActionData actionData, BattleActionDecisionResult result)
|
||||
{
|
||||
var entityAnimator = entity.animator;
|
||||
|
||||
entity.SyncRootMotionToMotor();
|
||||
|
||||
entityAnimator.Play(EntryStateHash, 0, 0f);
|
||||
entityAnimator.Update(0f);
|
||||
// var entityAnimator = entity.animator;
|
||||
//
|
||||
// entity.SyncRootMotionToMotor();
|
||||
//
|
||||
// entityAnimator.Play(EntryStateHash, 0, 0f);
|
||||
// entityAnimator.Update(0f);
|
||||
}
|
||||
|
||||
private void OnEnemyHit(Collider enemyCollider)
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Code.OfficeGame.BattleMode.Actions
|
||||
{
|
||||
if (battleActionData is not StuggerActionData stuggerActionData)
|
||||
{
|
||||
Debug.Log("WrongData");
|
||||
Debug.Log($"WrongData {battleActionData.GetType()}");
|
||||
battleActionData.Finished = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user