public void Return(Note o) { for (int i=0; i<count; i++) { if(_objsUsing[i] && _objs[i] == o) { o.Reset(); o.gameObject.SetActive(false); _objsUsing[i] = false; return; } } GameObject.Destroy (o.gameObject); }
public void AssignNote(Note n) { _comingNotes.Add (n); }