示例#1
0
    void Start()
    {
        body         = GetComponent <Rigidbody2D>();
        pathToFollow = Path.GetComponent <CustomPath>();

        target = pathToFollow.GetFirstNode();
    }