Пример #1
0
    public void GenerateLevel()
    {
        LevelGeneratorHeader header = LevelGeneratorHeader.singleton;

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

        header.StartCoroutine(Generate());

        //StartCoroutine(Generate());
    }
Пример #2
0
 private void Awake()
 {
     singleton = this;
 }