Пример #1
0
    void Start()
    {
        Screen.orientation = ScreenOrientation.Landscape;
        Pool         = ObjectPoolManager.getInstance;
        stageManager = UI.s_Manager;

        //Load Prev Version Character
        if (!GDB.isNoneData)
        {
            //Player Data Load

            //Player Name ,Player Sprite Name
            Defender.GetComponent <PlayerCharacter> ().SetPlayerInfo(getUserStringData("PlayerName"), getUserStringData("PlayerSpriteName"));

            //Player Gold Data
            if (isTutoSystem)
            {
                TempStaticMemory.gold += 300;
                GDB.getUserDB.GoldUpdate(300);
            }
            else
            {
                TempStaticMemory.gold = getUserIntData("CurrentGold");
            }

            Attack_Control.LoadEnemyObject();
            Player_Control.LoadAliasObject();
            Obstacle_Control.LoadTrapObject();
        }
        else
        {
        }

        GameStartAllObject();
        StartCoroutine("AutoSave");
    }