Example #1
0
        void Start()
        {
            stateHandler = FindObjectOfType <StateHandler>();

            NameProvider.ResetLists();
            if (StaticPersistence.GameState == null)
            {
                Generator.GenerateIslands();
                stateHandler.SaveMapStateInMemory();
            }
            else
            {
                LoadMap();
                stateHandler.LoadCarrier();
            }
        }