Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
		private void Awake()
		{
			if (Instance == null)
			{
				Instance = this;
			}
		}
Ejemplo n.º 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);
        }