Exemplo n.º 1
0
 public void ResetCD()//释放技能,重新进入冷却
 {
     enable          = false;
     skillIcon.color = DisabledColor;
     if (btn)
     {
         btn.DisableButton();     //如果有按钮组件,禁用
     }
 }
Exemplo n.º 2
0
 public void DisableButton()//禁用按钮
 {
     enable = false;
     CdProgress.fillAmount = 0;
     skillIcon.color       = Color1;
     if (btn != null)
     {
         btn.DisableButton();
     }
 }
Exemplo n.º 3
0
 private void DeleteConsumable(Consumable c, ItemGrid ig)
 {
     cnsmbs.Remove(c);
     Destroy(ig.gameObject);
     ig.ClearThis();           //清除当前项
     info_Btn.DisableButton(); //禁用按钮
     //提示框颜色浅化
     info_Name.color   -= new Color(0, 0, 0, 0.5f);
     info_Image.color  -= new Color(0, 0, 0, 0.5f);
     info_Detail.color -= new Color(0, 0, 0, 0.5f);
 }