private IEnumerator ShowWarningColor() { Renderer renderer = this.GetComponent <Renderer>(); renderer.material.color = _warningColor; yield return(new WaitForSeconds(0.1f)); renderer.material.color = _currentColor; yield return(new WaitForSeconds(0.2f)); renderer.material.color = _warningColor; yield return(new WaitForSeconds(0.1f)); _currentActivity = eNodeActivity.Idle; }
public void FlashWarningColor() { _currentActivity = eNodeActivity.Flashing; StartCoroutine(ShowWarningColor()); }