public void SetGrayout(GUIMonsterIcon.DIMM_LEVEL type) { if (this.dimm_level != type) { this.dimm_level = type; switch (type) { case GUIMonsterIcon.DIMM_LEVEL.ACTIVE: GUIManager.SetColorAll(base.transform, this.colAct); break; case GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE: GUIManager.SetColorAll(base.transform, this.colNon); break; case GUIMonsterIcon.DIMM_LEVEL.DISABLE: GUIManager.SetColorAll(base.transform, this.colDis); break; } if (null != this.spLOCK) { this.spLOCK.color = Color.white; } if (this.goSELECT_BASE.activeSelf) { this.spSELECT_BASE.color = this.colAct; } } }
public static void SetGrayout(GameObject icon, GUIMonsterIcon.DIMM_LEVEL type) { switch (type) { default: GUIManager.SetColorAll(icon.transform, Color.white); break; case GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE: GUIManager.SetColorAll(icon.transform, MonsterIconGrayout.nonActiveColor); break; case GUIMonsterIcon.DIMM_LEVEL.DISABLE: GUIManager.SetColorAll(icon.transform, MonsterIconGrayout.disableColor); break; } }