Ejemplo n.º 1
0
 void Start()
 {
     _tileMap = GetComponent<TileMap> ();
     _generateZone = GetComponent < generateZone >();
     myHoverObject = (GameObject) Instantiate (Resources.Load("Tile"), new Vector3 (0, 0, 0), Quaternion.identity);
     generate = false;
     zoning = true;
     currentColor = "blue";
 }
Ejemplo n.º 2
0
 void Start()
 {
     _tileMap      = GetComponent <TileMap> ();
     _generateZone = GetComponent <generateZone>();
     myHoverObject = (GameObject)Instantiate(Resources.Load("Tile"), new Vector3(0, 0, 0), Quaternion.identity);
     generate      = false;
     zoning        = true;
     currentColor  = "blue";
 }
Ejemplo n.º 3
0
    void Start()
    {
        _tileMap = GetComponent<TileMap> ();
        _generateZone = GetComponent < generateZone >();
        //myHoverObject = (GameObject) Instantiate (Resources.Load("Tile"), new Vector3 (0, 0, 0), Quaternion.identity);
        generate = false;
        zoning = true;
        currentColor = "blue";

        BuildingDatabase = new List<GameObject>();

        _GUIController = GameObject.Find ("Canvas").GetComponent<GUIController> ();
        notificationController = GameObject.Find("NotificationController").GetComponent<NotificationController>();
    }