Exemplo n.º 1
0
        public static void InvokeSetClass(CharacterClassManager characterClassManager, RoleType roleType)
        {
            if (SetClassEvent == null)
            {
                return;
            }

            SetClassEvent ev = new SetClassEvent()
            {
                Player = characterClassManager.gameObject.GetPlayer(),
                Role   = roleType
            };

            SetClassEvent.InvokeSafely(ev);
        }
Exemplo n.º 2
0
        public static void InvokeSetClass(CharacterClassManager ccm, RoleType id)
        {
            SetClass setClass = SetClassEvent;

            if (setClass == null)
            {
                return;
            }

            SetClassEvent ev = new SetClassEvent()
            {
                Player = Player.GetPlayer(ccm.gameObject),
                Role   = id
            };

            setClass?.Invoke(ev);
        }