// mouse click on monster -> show action panel void OnMouseDown() { if (!isAlive) { return; } // don't respond if alert is already visible if (boardManager.alertManager.gameObject.activeInHierarchy == true) { return; } // don't respond if action panel is already visible if (boardManager.actionPanel.gameObject.activeInHierarchy == true) { return; } // show action panel and set current monster to this one boardManager.ShowActionPanel(cageManager.gameObject.transform.position); boardManager.SetMonsterFocus(this); }