public void PlaceInBack(GameObject element) { TrainElement t = GetTrainElement(element); t.EnterTrain(); trainElements.Add(t); }
public void PlaceInFront(GameObject element) { TrainElement t = GetTrainElement(element); t.EnterTrain(); t.transform.position = FrontPosition(); trainElements.Insert(0, t); }