public void DropCoin() { if (CarnivalManager.Instance.IsPlaying() && !CarnivalManager.Instance.IsPlinkoWon() && currentCoin) { currentCoin.DropCoin(this); currentCoin = null; BellDing.Play(); } }
private void CreateCoin() { currentCoin = Instantiate(PlinkoCoinPrefab.gameObject).GetComponent <PlinkoCoin>(); currentCoin.transform.position = PlinkoCoinOrigin.position; createCoinTime = Time.time; }
public void DropCoin() { currentCoin.DropCoin(this); currentCoin = null; BellDing.Play(); }