コード例 #1
0
        public static void AddExp(int add)
        {
            var pinfo = ServerData.Instance.playerInfo;

            pinfo.Exp += add;
            var push = GCPushExpChange.CreateBuilder();

            push.Exp = pinfo.Exp;
            ServerBundle.SendImmediatePush(push);
        }
コード例 #2
0
 public static void UpdateExp(GCPushExpChange p)
 {
     ObjectManager.objectManager.GetMyAttr().SetExp(p.Exp);
 }