// 设定使用的武器 public void SetWeapon(IWeapon Weapon) { if (m_Weapon != null) { m_Weapon.Release(); } m_Weapon = Weapon; // 设定武器拥有者 m_Weapon.SetOwner(this); // 设定Unity GameObject的层級 UnityTool.AttachToRefPos(m_GameObject, m_Weapon.GetGameObject(), "weapon-point", Vector3.zero); }