コード例 #1
0
    FollowerComponent CreateSegment()
    {
        GameObject        new_segment       = ComponentFactory.CreateSnakeSegment(Segment_list.Count == 0);
        FollowerComponent segment_component = new_segment.GetComponent <FollowerComponent>();

        if (Segment_list.Count == 0)
        {
            segment_component.position = StartPosition;
        }

        return(segment_component);
    }