Esempio n. 1
0
 private void TankMovement()
 {
     if (MathCalculations.Distance(new Coords(this.transform.position), new Coords(fuel.transform.position)) > stoppingDist)
     {
         this.transform.position += direction * speed * Time.deltaTime;
     }
 }