void Update() { if (!cycleTargetLock) { if (Input.GetKeyDown("space")) { cycleTargetLock = true; theSelectedTarget.SendMessage("Untargetted"); myHero.takeDamage(15, theSelectedTarget); thePlayer.gameObject.GetComponent <PlayerAttackController>().setBuffTarget(theSelectedTarget, "Attack"); } if (Input.GetKeyDown(KeyCode.Tab)) { theMaestro.SendMessage("TargetPing"); theSelectedTarget.SendMessage("BeingTargetted"); } } }