private void OnEnable()
    {
        sound    = GetComponent <Sound2>();
        collider = GetComponent <BoxCollider>();
        grid     = GetComponentInParent <AudioGrid>();
        int i;

        for (i = 0; i < all.Count && !(all[i].layer > layer); i++)
        {
        }
        all.Insert(i, this);
    }
Exemplo n.º 2
0
 private void OnEnable()
 {
     instance = this;
 }