よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public void HandleSafeDestroyed(int numCoins, Transform safeLocation) { for (int i = 0; i < numCoins; i++) { GameObject coin = SpawnGameObjectAtPosition(coinPrefab, safeLocation.position); CoinController coinController = coin.GetComponent <CoinController>(); coinController.LerpToPosition(GetRandomLocationOnscreen(), .5f); } }