예제 #1
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);
 }