Persist turret controller state in typed snapshots

This commit is contained in:
Meta Vens 2026-06-14 16:40:08 +01:00
commit 6deea479dd
11 changed files with 91 additions and 8 deletions

View file

@ -981,6 +981,15 @@ public class ActionGameManager : MonoBehaviour
StatModifierTargetStatCount = statModifier.TargetStatCount
};
}
else if (behavior is TurretController turretController)
{
state = new AetheriaRuntimeBehaviorStateCommit
{
TurretControllerWeaponCount = turretController.WeaponCount,
TurretControllerShotSpeed = turretController.ShotSpeed,
TurretControllerPredictShots = turretController.PredictShots
};
}
if (state == null)
continue;