Ejemplo n.º 1
0
  // Use this for initialization
  void Awake() {

    floorManager = GameObject.FindWithTag("Manager").GetComponent<FloorManager>();

    // Get the size of the spawner array
    maxNumberColours = floorManager.GetColoursLength();
    numberOfFloors = 2;

    // Initialize the spawners
    spawnerListA = new GameObject[maxNumberColours];
    spawnerListB = new GameObject[maxNumberColours];
    for (int i = 0; i < maxNumberColours; i++) {
      spawnerListA[i] = null;
      spawnerListB[i] = null;
    }

    stateManager = GameObject.FindGameObjectWithTag("Manager").GetComponent<StateManager>();

  }