public override void Process() { if (AdminCommandsManager.IsAdmin(AdminId, AdminToken) == false) { return; } object[] paraObject = { AdminId, AdminToken, EventIndex, IsFake, AnnounceEvent, EventType, SerializedEventParameters }; var instance = AdminCommandsManager.Instance; //server stuff if (instance == null) { return; } instance.GetType().GetMethod(Action)?.Invoke(instance, paraObject); }
private void Awake() { if (Instance == null) { Instance = this; } }
public override void Process() { if (AdminCommandsManager.IsAdmin(AdminId, AdminToken) == false) { return; } object[] paraObject = { AdminId, AdminToken }; var instance = AdminCommandsManager.Instance; //server stuff if (instance == null) { return; } instance.GetType().GetMethod(Action)?.Invoke(instance, paraObject); }