public void CoinRespawn() { var nextPos = CoinGenerator.GetNextPPosition(); transform.position = new Vector3(nextPos.x, nextPos.y, transform.position.z); }