void Update() { if (autoCountPath) { counter.FindPath(transform, target); } else { if (Input.GetButtonDown("Jump")) { counter.FindPath(transform, target); } } }
void Update() { if (Input.GetMouseButtonDown(0)) { counter.FindPath(transform, Camera.main.ScreenToWorldPoint(Input.mousePosition)); } }