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; }
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; } }