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); }
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); }