/// <summary> /// Add a particule /// </summary> /// <param name="p"></param> /// <returns>Added to the list</returns> public bool AddParticule(Particule p) { for (int i = 0; i < _particules.Length; i++) { if (_particules[i] == null) { _particules[i] = p; return(true); } } return(false); }
/// <summary> /// Add a particule /// </summary> /// <param name="p"></param> /// <returns>Added to the list</returns> public bool AddParticule(Particule p) { for (int i = 0; i < _particules.Length; i++) { if (_particules[i] == null) { _particules[i] = p; return true; } } return false; }