Exemplo n.º 1
0
        public void GenerateLevel()
        {
            LevelGeneratorHeader header = LevelGeneratorHeader.singleton;

            if (header == null)
            {
                GameObject go = new GameObject();
                go.name = "Level Generator";
                header  = go.AddComponent <LevelGeneratorHeader>();
            }

            header.StartCoroutine(Generate());
        }
Exemplo n.º 2
0
 void Awake()
 {
     singleton = this;
 }