// Move ally to INDEX // Change both index and order private void MoveToIndex(Ally t, int index) { allies[index] = t; t.MoveToPosition(positions[index]); t.order = index; }