コード例 #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";
 }
コード例 #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";
 }
コード例 #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>();
    }