Example #1
0
    IEnumerator DelayAttack()
    {
        yield return(new WaitForSeconds(0.5f));

        GameObject go = GameObject.FindGameObjectWithTag("Signal");

        if (go)
        {
            go.GetComponent <Signal>().Disorder();
            _root.PlayDecodeFailedSound();
        }
    }