private void Awake() { if (instance != null) { Debug.LogError("Multiple SelecterIcons in the scene.", this); } instance = this; }
public void SelectThis(bool yes) { if (yes) { //BattleState.SelectUnit(this.gameObject); SelecterIcon.targetObject = this.gameObject; currentSelected = this.gameObject; zoomed = true; //ui.DisplayInformation(gameObject); } else { SelecterIcon.targetObject = null; SelecterIcon.ResetPosition(); zoomed = false; currentSelected = null; //ui.ResetDisplay(); } }