Exemple #1
0
 private void OnMouseEnter()
 {
     if (UIPopAction.Showing)
     {
         return;
     }
     UITileSelector.ShowFor(transform);
     UITileStatus.ShowFor(tile);
     UIPopViewer.ShowPop(tile.GetPlayerPopulation(Match.ActivePlayer));
     HoverBrick = this;
 }
 public void HideCanvas()
 {
     gameObject.SetActive(false);
     if (_editingTile)
     {
         Brick.RemoveLeftSelect(_editingTile.brick);
     }
     _editingPop  = null;
     _editingTile = null;
     _showing     = false;
     UIPopViewer.ClearPop();
 }
Exemple #3
0
    public static void ShowFor(Tile tile)
    {
        var i = instance;

        UITileStatus.ShowFor(tile);
        i._view.SetActive(true);
        i._editingTile = tile;
        i._editingPop  = tile.GetPlayerPopulation(Match.ActivePlayer);
        UIPopViewer.ShowPop(i._editingPop);

        i.MaxOut();
        _showing = true;
    }
 private void OnDestroy()
 {
     _viewer = null;
 }
 private void OnDisable()
 {
     _viewer = null;
 }
 void Start()
 {
     _viewer = this;
     ClearPop();
 }