public static void ThrowObject(BaseObject baseObject, eThrowEventType eventType, stGetCustomData stThrowData = default(stGetCustomData)) { if (baseObject != null) { baseObject.ThrowEvent(eventType, stThrowData); } }
public static void ThrowAll(eThrowEventType eventType, stGetCustomData stThrowData = default(stGetCustomData)) { BaseObject[] arrayObject = FindObjectsOfType <BaseObject>(); foreach (BaseObject baseObject in arrayObject) { baseObject.ThrowEvent(eventType, stThrowData); } }
protected override void ThrowEvent(eThrowEventType eventType, stGetCustomData stThrowData = default(stGetCustomData)) { switch (eventType) { case eThrowEventType.E_THROW_EVENT_TYPE_MANAGER_PAUSE: OnPauseManager(); break; case eThrowEventType.E_THROW_EVENT_TYPE_MANAGER_CLEAN: OnCleanManager(); break; case eThrowEventType.E_THROW_EVENT_TYPE_MANAGER_RESET: OnResetManager(); break; case eThrowEventType.E_THROW_EVENT_TYPE_MANAGER_RELEASE: OnReleaseManager(); break; } }
virtual protected void ThrowEvent(eThrowEventType eventType, stGetCustomData stThrowData = default(stGetCustomData)) { }