Пример #1
0
        public void StopAtEffect(string cameraData)
        {
            if (m_cameraEffectUnits.ContainsKey(cameraData))
            {
                CameraQuakeUnit quakeUnit = m_cameraEffectUnits[cameraData];

                quakeUnit.Terminate();
            }
        }
Пример #2
0
        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);
            }
        }