public void Init(EmitterPoint emitter, float BeamMaxLenght) { transform.parent = emitter.transform; if (BeamMaxLenght > 1) { m_BeamMaxLength = BeamMaxLenght; } m_Emitter = emitter; m_Emitter.TurnOffEmitterLight(); gameObject.SetActive(false); }
public void TerminateBeam() { m_Emitter.TurnOffEmitterLight(); gameObject.SetActive(false); }