示例#1
0
文件: CharButton.cs 项目: NZBane/kus
 public void DequipArmor()
 {
     icon.color    = Color.white;
     icon.enabled  = false;
     equippedArmor = null;
     if (gearSocket != null && equippedArmor.MyAnimationClips != null)
     {
         gearSocket.Dequip();
     }
     equippedArmor = null;
 }
示例#2
0
    public void DequipArmor()
    {
        icon.color   = Color.white;
        icon.enabled = false;

        if (visual != null)
        {
            visual.gameObject.SetActive(false);
        }


        if (gearSocket != null && MyEquippedArmor.MyAnimationClips != null)
        {
            Player.MyInstance.DequipGear(MyEquippedArmor);
            gearSocket.Dequip();
        }
        else if (MyEquippedArmor != null)
        {
            Player.MyInstance.DequipGear(MyEquippedArmor);
        }

        equippedArmor.MyCharButton = null;
        equippedArmor = null;
    }