Persist turret controller state in typed snapshots
This commit is contained in:
parent
cd009fa9a9
commit
6deea479dd
11 changed files with 91 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue