public void StopAtEffect(string cameraData) { if (m_cameraEffectUnits.ContainsKey(cameraData)) { CameraQuakeUnit quakeUnit = m_cameraEffectUnits[cameraData]; quakeUnit.Terminate(); } }
public void PlayAtEffect(Transform parent, string cameraData) { if (m_cameraEffectUnits.ContainsKey(cameraData)) { CameraQuakeUnit quakeUnit = m_cameraEffectUnits[cameraData]; if (parent != null) { quakeUnit.SetParent(parent); } quakeUnit.Play(Vector3.zero); } }