private void Update() { if (Input.GetKeyDown(KeyCode.Space)) { from.BoombToCollectCurrency(from.transform, 5, to.position); } }