コード例 #1
0
ファイル: Building.cs プロジェクト: dylanebert/Urbanize
 public virtual void Select()
 {
     if (selected)
     {
         return;
     }
     gameController.pointer.SetSelectIndicatorPosition(Util.Vector3ToCoords(transform.position), new Coords(1, 1));
     buildingInfoWindow = Instantiate(buildingInfoWindowObj, transform.position, Quaternion.identity, this.transform).GetComponent <WorldWindow>();
     buildingInfoWindow.Initialize(this);
     selected = true;
 }