Beispiel #1
0
    //stop current firing procedures
    IEnumerator Halt()
    {
        foreach (GameObject g in turretManager.activeTurrets)
        {
            g.GetComponent <TurretLogic>().StopAllCoroutines();
        }
        yield return(new WaitForSeconds(1.0f));

        turretManager.Shoot();
        yield return(null);
    }