Persist thruster state in typed snapshots
This commit is contained in:
parent
a67a228c6b
commit
21d5cbdf79
10 changed files with 86 additions and 8 deletions
|
|
@ -927,6 +927,15 @@ public class ActionGameManager : MonoBehaviour
|
|||
MiningToolRange = miningTool.Range
|
||||
};
|
||||
}
|
||||
else if (behavior is Thruster thruster)
|
||||
{
|
||||
state = new AetheriaRuntimeBehaviorStateCommit
|
||||
{
|
||||
ThrusterAxis = thruster.Axis,
|
||||
ThrusterThrust = thruster.Thrust,
|
||||
ThrusterTorque = thruster.Torque
|
||||
};
|
||||
}
|
||||
|
||||
if (state == null)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue