Example #1
0
    public void StopEffect(SoundName effect)
    {
        Transform audio = transform.Find("(Audio) " + effect.ToString());

        if (audio != null)
        {
            BlockTools.Destroy(audio.gameObject);
        }
    }
Example #2
0
 IEnumerator Flow()
 {
     while (gameObject.activeInHierarchy)
     {
         if (transform.childCount > 0)
         {
             BlockTools.Destroy(transform.GetChild(0).gameObject);
             yield return(new WaitForSeconds(0.5f));
         }
         else
         {
             yield return(null);
         }
     }
 }