示例#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);
    }