Пример #1
0
    void Start()
    {
        if (path == null)
        {
            return;
        }

        _TargetPoint = path.getPointAt(0);
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     rb = GetComponent <Rigidbody2D>();
     if (path == null)
     {
         return;
     }
     targetPoint = path.getPointAt(0);
 }