Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. using UnityEngine.UI;
  2.  
  3. if (health_value == 3) {
  4. GameObject.Find("health").GetComponent<Image>().color.a = 1;
  5. GameObject.Find("health1").GetComponent<Image>().color.a = 1;
  6. GameObject.Find("health2").GetComponent<Image>().color.a = 1;
  7.  
  8. }
  9.  
  10. error CS1612: Cannot modify a value type return value of `UnityEngine.UI.Graphic.color'. Consider storing the value in a temporary variable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement