Пример #1
0
    public void PlaceInBack(GameObject element)
    {
        TrainElement t = GetTrainElement(element);

        t.EnterTrain();
        trainElements.Add(t);
    }
Пример #2
0
    public void PlaceInFront(GameObject element)
    {
        TrainElement t = GetTrainElement(element);

        t.EnterTrain();
        t.transform.position = FrontPosition();
        trainElements.Insert(0, t);
    }