public void Activate() { recieving = true; if (aiTrigger) { GameObject ai = GameObject.FindGameObjectWithTag("AI"); ai.GetComponent <AICharacterControl>().NextTarget(); aiTrigger = false; } if (laserController != null) { laserController.ActivateLaser(true); } }