예제 #1
0
        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;
			}
		}
예제 #3
0
        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);
        }