//load from registery info... void LoadStage() { if (disallowPlayer && GameController.Player) { GameController.DestroyPlayer(); return; } StageData dStage = SaveSystem.GetActiveSceneData().StageData; if (!dStage.NewEntry) { dStage.TranslateLocation(out playerPosition, out playerRotation); disallowPlayer = dStage.m_disallowPlayer; } else { dStage.RegisterPlayerLocation(playerPosition, playerRotation); } DataContainer dPlayer = SaveSystem.GetPlayerData(); if (dPlayer != null) { marines = dPlayer.GetValue<MarinesType>("marine"); } if (!disallowPlayer) { if (GameController.Player) { RefreshPlayer(); } else { SpawnPlayer(); } } }
//load from registery info... void LoadStage() { if (disallowPlayer && GameController.Player) { GameController.DestroyPlayer(); return; } StageData dStage = SaveSystem.GetActiveSceneData().StageData; if (!dStage.NewEntry) { dStage.TranslateLocation(out playerPosition, out playerRotation); disallowPlayer = dStage.m_disallowPlayer; } else { dStage.RegisterPlayerLocation(playerPosition, playerRotation); } DataContainer dPlayer = SaveSystem.GetPlayerData(); if (dPlayer != null) { marines = dPlayer.GetValue <MarinesType>("marine"); } if (!disallowPlayer) { if (GameController.Player) { RefreshPlayer(); } else { SpawnPlayer(); } } }
void Start() { marineType = GameController.Player.marinesType; RenderSprite(); }