Пример #1
0
 void Start()
 {
     pathGen       = this.GetComponent <BezierPathGen>();
     bez           = new Bezier();
     originalSpeed = speed;
     lastLoc       = followPath.transform.position;
 }
Пример #2
0
    //public bool meshGenerated = false;


    /* can't do constructor with components because of monobehavior and adding values seperate from void Start
     * public TreeRandom(int seg, int divY, int divX)
     * {
     *  segNum = seg;
     *  subdivX = divX;
     *  subdivY = divY;
     * }
     */
    void Awake()
    {
        pthGen = this.GetComponent <BezierPathGen>();
    }