Esempio n. 1
0
    void Start()
    {
        game           = this;
        EmptySingleton = Empty.NewEmpty();

        Object[] levelObjects = Resources.LoadAll("Levels", typeof(TextAsset));
        levels = new TextAsset[levelObjects.Length];
        for (int i = 0; i < levelObjects.Length; i++)
        {
            levels [i] = levelObjects [i] as TextAsset;
        }

        StartLevel();
    }