void Start() { audioSource = GetComponent <AudioSource>(); currencyManagerScript = Currency_ManagerObj.GetComponent <CurrencyManager>(); displayCurrencyCountScript = CurrencyTextObj.GetComponent <DisplayCurrencyCount>(); chestTimerScript = ChestTimerObj.GetComponent <ChestTimer>(); chestsOpened = SecurePlayerPrefs.GetInt("chestsOpened", 0); }
private void StartDeleteTimer() { if( m_DeleteTimer == null ) m_DeleteTimer = new ChestTimer( this ); else m_DeleteTimer.Delay = TimeSpan.FromSeconds( Utility.Random( 1, 2 )); m_DeleteTimer.Start(); }
private void StartDeleteTimer() { if (m_DeleteTimer == null) { m_DeleteTimer = new ChestTimer(this); } else { m_DeleteTimer.Delay = TimeSpan.FromSeconds(Utility.Random(1, 2)); } m_DeleteTimer.Start(); }