Example #1
0
    public void Init()
    {
        Debug.Log("INITIALISING");
        World.Init();
        Save_Location = Application.persistentDataPath;

        Load();

        for (int i = 0; i < Grands.Count; i++)
        {
            for (int a = 0; a < Grands[i].Resources.Length; a++)
            {
                Grands[i].Resources[a].TimeLast = TimeLast;
            }
        }
        Alert_Pigeonhole = PlayerPrefs.GetInt("Alert_Pigeonhole") == 1;
        Alert_ScrollUp   = PlayerPrefs.GetInt("Alert_ScrollUp") == 1;
        Alert_Letter     = PlayerPrefs.GetInt("Alert_Letter") == 1;
    }
Example #2
0
 private void Awake()
 {
     worldResources.Init();
     world.Init();
 }