public static bool Execute(ChangeUserSpDataUserCmd_S cmd) { if (MainRole.ServerInfo != null && cmd.charid == MainRole.ServerInfo.userdata.charid) { MainRole.Instance.SetSp(cmd.cursp); return(true); } return(false); }
public static void Execute(ChangeUserSpDataUserCmd_S cmd) { if (MainRole.Execute(cmd)) { return; } var target = All[cmd.charid]; if (target == null) { return; } //target.SetSp(cmd.cursp); }