public static void OnPointerDestroy(IDpnPointer createdPointer) { if (instance != null && DpnPointerManager.Pointer == createdPointer) { DpnPointerManager.Pointer = null; } }
/// DpnBasePointer calls this when it is created. /// If a pointer hasn't already been assigned, it /// will assign the newly created one by default. /// /// This simplifies the common case of having only one /// IDpnPointer so is can be automatically hooked up /// to the manager. If multiple DpnGazePointers are in /// the scene, the app has to take responsibility for /// setting which one is active. public static void OnPointerCreated(IDpnPointer createdPointer) { if (instance != null) { DpnPointerManager.Pointer = createdPointer; } }