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;
 }
Esempio n. 3
0
 public void DropCoin()
 {
     currentCoin.DropCoin(this);
     currentCoin = null;
     BellDing.Play();
 }