void Update() { if (valuesSet) { switch (draw.GetPalette(palette)) { case 1: text.text = "Collidable"; break; case 2: text.text = "Noncollidable"; break; case 3: text.text = "Semisolid"; break; case 4: text.text = "Idol Filter"; break; case 5: text.text = "Danger"; break; default: text.text = ""; break; } } }
void Update() { if (valuesSet) { if (MouseUtilities.TouchingUI(rt) && Input.GetMouseButtonDown(0)) { action.Invoke(palette); } im.color = typeColors[draw.GetPalette(palette) - 1]; } }