Ejemplo n.º 1
0
    public TrainSetionManager(int tmpCount, Transform tmpTrans, Color tmpStart, Color tmpEnd)
    {
        ower = tmpTrans;


        setionManager = new CycleQueue <TrailSection>();


        startColor = tmpStart;

        endColor = tmpEnd;

        curCount = tmpCount;

        for (int i = 0; i < tmpCount; i++)
        {
            float tmpFloat = (float)i / tmpCount;


            TrailSection tmpSection = new TrailSection();

            setionManager.AddMember(tmpSection);


            tmpSection.Initial(i, tmpCount, startColor, endColor);
            Initial(tmpSection, ower.position);
        }
    }
Ejemplo n.º 2
0
    public void Initial(TrailSection tmpsetioin, Vector3 postion)
    {
        tmpsetioin.position = postion;

        tmpsetioin.timer = lastTimer;



        tmpsetioin.Initial(0, curCount, startColor, endColor);
    }