I want to create a christmas lighting effect where the colors flash different colors I was thinking something like this yet I don’t quite know…can anyone help?
using UnityEngine;
using System.Collections;
public class FlashColorScript : MonoBehaviour
{
public GUIText myText;
public Color myTextColor;
void Update ()
{
myText.material.color = myTextColor;
StartCoroutine (Yield ());
}
IEnumerator Yield()
{
yield return new WaitForSeconds (1);
}
}