Your method should be called Update not update
Also use
if (colorState == ColorState.Mana) {
renderer.material.color = Color.yellow;
Debug.Log("this happened");
}
↧