public void actuallyRePath(Vector3 place) { if (MovementAI.lastRepathTime - Time.time < 0.10) { ai.fpscounter = 0; path = ai.getPath(gameObject.transform.position, place); path.pop(); ai.currentNode = path.pop(); halfwayPoint = path.length() / 2; } }