Ejemplo n.º 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;
		}
Ejemplo n.º 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;
            }
        }