Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 public void FlashWarningColor()
 {
     _currentActivity = eNodeActivity.Flashing;
     StartCoroutine(ShowWarningColor());
 }