public void AddWeapon(WeaponRuntime weapon) { weaponList.Add(weapon); currentId++; weapon.InitNetData(netData); changeWeapon(weapon.weaponId); (netData as PlayerData).skillList.AddSkill(weapon.defalutSkillId); }
public void AddWeapon(WeaponRuntime weapon) { weaponList.Add(weapon); currentId++; weapon.InitNetData(netData); changeWeapon(weapon.weaponId); (netData as PlayerData).skillList.AddSkill(weapon.defalutSkillId); //UnityEngine.Debug.LogError("add "+Weapon.WeaponId); }