private void Merge(Peloton anotherPeloton) { if (!anotherPeloton.IsLeaderPeloton()) { if (IsLeaderPeloton()) { AddMinionList(anotherPeloton.GetMinionList()); anotherPeloton.RemoveAllMinions(); anotherPeloton.DestroyPeloton(); } else if (this.Size() > anotherPeloton.Size() || (this.Size() == anotherPeloton.Size() && this.gameObject.GetInstanceID() > anotherPeloton.gameObject.GetInstanceID())) { AddMinionList(anotherPeloton.GetMinionList()); anotherPeloton.RemoveAllMinions(); anotherPeloton.DestroyPeloton(); } } }