private void OnMouseEnter() { if (UIPopAction.Showing) { return; } UITileSelector.ShowFor(transform); UITileStatus.ShowFor(tile); UIPopViewer.ShowPop(tile.GetPlayerPopulation(Match.ActivePlayer)); HoverBrick = this; }
private void OnMouseOver() { if (UIPopAction.Showing) { return; } if (HoverBrick != this) { HoverBrick = this; } UITileSelector.ShowFor(transform); }
void Start() { _instance = this; sRend = GetComponent <SpriteRenderer>(); sRend.enabled = false; }
void OnDestroy() { _instance = null; }