Beispiel #1
0
    void Start()
    {
        detSize = 21;
        pf = gameObject.AddComponent<PathFinder> ();
        pf.Initiate (detSize);
        awake = true;
        list = new List<Vector2> ();
        destTemp = transform.position;
        distDest = 0;

        speed = 2f;

        pfFlag = true;
        refreshRate = 1;
    }