예제 #1
0
		public static void AddOnCameraMoveDelegate(OnCameraMoveEvent del)
		{
			if(instance == null)
			{
				Debug.LogWarning("No pb_SceneCamera found, but someone is trying to subscribe to events!");
				return;
			}

			if(instance.OnCameraMove == null)
				instance.OnCameraMove = del;
			else
				instance.OnCameraMove += del;
		}
예제 #2
0
        public static void AddOnCameraMoveDelegate(OnCameraMoveEvent del)
        {
            if (instance == null)
            {
                Debug.LogWarning("No pb_SceneCamera found, but someone is trying to subscribe to events!");
                return;
            }

            if (instance.OnCameraMove == null)
            {
                instance.OnCameraMove = del;
            }
            else
            {
                instance.OnCameraMove += del;
            }
        }