Beispiel #1
0
 private void CellSelected(GridCell oldCell, GridCell newCell)
 {
     if (!newCell) {
         Close ();
         return;
     }
     Name.text = newCell.ToString ();
     Population.text = newCell.Population.ToString ();
     Security.text = newCell.Security.ToString ();
     Value.text = newCell.GetValuePerPerson ().ToString ();
     transform.position = Camera.main.WorldToScreenPoint (newCell.transform.position);
     mCanvasGroup.alpha = 1f;
     mCanvasGroup.interactable = true;
     mCanvasGroup.blocksRaycasts = true;
 }