Beispiel #1
0
        IEnumerator  InitGameData()
        {
            GameInterface_Backpack.ClearDrug();
            yield return(StartCoroutine(NetworkUtil.WaitForPlayer()));

            var me = ObjectManager.objectManager.GetMyPlayer();

            GameInterface_Skill.AddSkillBuff(ObjectManager.objectManager.GetMyPlayer(), (int)SkillData.SkillConstId.AddMP, Vector3.zero);
            var attr = me.GetComponent <NpcAttribute>();

            var sync = CGSetProp.CreateBuilder();

            sync.Key   = (int)CharAttribute.CharAttributeEnum.LEVEL;
            sync.Value = 1;
            KBEngine.Bundle.sendImmediate(sync);
            PlayerData.ResetSkillLevel();
        }