Hit panel (red and fade)
xlar54
✭
Hey guys, I have a panel on my UI that turns red and crossfades alpha to clear. This works great...once. Anytime after, it doesn't do it again. Any ideas?
GameObject.Find("pnlHit").GetComponent().color = UnityEngine.Color.red;
GameObject.Find("pnlHit").GetComponent().CrossFadeAlpha(0.0f, 1.0f, false);
GameObject.Find("pnlHit").GetComponent().color = UnityEngine.Color.red;
GameObject.Find("pnlHit").GetComponent().CrossFadeAlpha(0.0f, 1.0f, false);
0