void ShowIndicators(AT.Battle.Actor a) { // Debug.LogError ("ma type: " + GetType ()); foreach (Actor other in BattleManager.instance.AllActors()) { CharacterIndicator otherInd = other.GetComponent <CharacterIndicator> (); if (other.IsOnPlayerSide) { otherInd.ShowIndicator(); otherInd.ColorIndicator(new Color(0f, 1f, 0f)); } else { if (other.IsSeenByAPlayer) { otherInd.ShowIndicator(); otherInd.ColorIndicator(new Color(1f, 0f, 0f)); } } } GetComponent <CharacterIndicator> ().ColorIndicator(new Color(0f, 1f, 0f)); GetComponent <CharacterIndicator> ().StartBlinking(); }
void HideIndicators(Action a) { foreach (Actor other in BattleManager.instance.AllActors()) { CharacterIndicator otherInd = other.GetComponent <CharacterIndicator> (); otherInd.HideIndicator(); } GetComponent <CharacterIndicator> ().HideIndicator(); GetComponent <CharacterIndicator> ().StopBlinking(); }