public void ActivateSpellMode(messages.Player targetedPlayer) { var player = m_mainManager.GetPlayerById(targetedPlayer.id).gameObject; m_lightningThing.EndObject = player; audioSource.Play(); var light = player.GetComponentInChildren <Light>(); StartCoroutine(TriggerLightning(light)); }
public void ActivateSpellMode(messages.Player targetedPlayer) { _TargetedPlayer = targetedPlayer; StartCoroutine(RunEvent(SpellImplementation)); }