예제 #1
0
    public bool init()
    {
        //GameObject.FindGameObjectWithTag("Logic").GetComponent<PhaseManager>().readJSON();
        _tileSelectedPosition = new uint[2] {
            28, 25
        };
        _hasTileSelected = false;
        m_monthsInRed    = 0;
        m_monthsSinceIShowedInRedPopup = 0;
        b_warningInRedPopupShown       = false;
        //_terrainLogic = new RiceTerrainLogic();
        ActionManager.GetInstance();
        CoopManager.GetInstance();
        PenalizationManager.GetInstance();
        WorldTerrain.GetInstance().initWorld();
        BuildingsManager.GetInstance().init();
        UserDataManager.GetInstance().init();
        UserDataManager.GetInstance().gold.setGold(6800);
        RiceObjectsManager.GetInstance();
        _cloudSpawner = new CloudSpawner(WorldTerrain.CLOUDS_Z_LAYER);

        _tutMan.startTuto(new Tutorial_Inicial());
        GameSaveDataManager.init();

        return(true);
    }
예제 #2
0
    void Awake()
    {
        _tutMan = GameObject.FindGameObjectWithTag("Tutorial").GetComponent <TutorialManager> ();
        Dictionary.init();

        //PlayerPrefs.SetInt("LoadData", 1);
        //PlayerPrefs.SetInt("LoadData", 0);
        if (!PlayerPrefs.HasKey("LoadData") || PlayerPrefs.GetInt("LoadData") == 0)
        {
            init();
        }
        else
        {
            //_tutMan.startTuto (new Tutorial_Inicial());
            GameSaveDataManager.Load();
        }
    }
예제 #3
0
 public void autoSave()
 {
     GameSaveDataManager.Save();
     //Thread oThread = new Thread(new ThreadStart(GameSaveDataManager.Save));
     //oThread.Start();
 }