void _CreateCoin() { Debug.Log("_CreateCoin"); GameObject coin = Instantiate(Resources.Load <GameObject>("Prefab/Coin")); CoinController controller = coin.GetComponent <CoinController>(); controller.CoinMove(CarDirection.Center); }
void _CreateCoin() { Debug.Log("_CreateCoin"); GameObject coin = Instantiate(Resources.Load <GameObject>("Prefab/Coin")); CoinController controller = coin.GetComponent <CoinController>(); controller.CoinMove(CarDirection.Center); }