public static GOECameraCurve AddCameraCurve()
 {
     if ((GOERoot.GOECamera as GOECamera).GetComponent <GOECameraCurve>() == null)
     {
         return(ComponentObject.Add <GOECameraCurve>(GOERoot.GOECamera as GOECamera));
     }
     return(null);
 }
Пример #2
0
        public static GOECameraShake AddCameraShake()
        {
            var shake = (GOERoot.GOECamera as GOECamera).GetComponent <GOECameraShake>();

            if (shake == null)
            {
                return(ComponentObject.Add <GOECameraShake>(GOERoot.GOECamera as GOECamera));
            }
            return(shake);
        }