Ejemplo n.º 1
0
        //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();
                }
            }
        }
Ejemplo n.º 2
0
        //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();
                }
            }
        }
Ejemplo n.º 3
0
 void Start()
 {
     marineType = GameController.Player.marinesType;
     RenderSprite();
 }
Ejemplo n.º 4
0
 void Start()
 {
     marineType = GameController.Player.marinesType;
     RenderSprite();
 }