Beispiel #1
0
    public override void OnInspectorGUI()
    {
        MapGeneratorFM map = target as MapGeneratorFM;

        if (DrawDefaultInspector())
        {
            map.GenerateMap();
        }

        if (GUILayout.Button("Generate"))
        {
            map.GenerateMap();
        }
    }
Beispiel #2
0
 void Awake()
 {
     map       = FindObjectOfType <MapGeneratorFM> ();
     can_spawn = false;
     //NextWave ();
 }