public void SetActive(bool value) { this.instructions.Clear(); this.StopContainingBreaths(); if (this._currentCupFill != null) { this._currentCupFill.Clear(); } if (this._currentOrb != null) { Destroy(this._currentOrb); this._currentOrb = null; } if (value) { this.StartCoroutine(this.StartIntroduction()); } else { this._isActive = false; } }
private void CancelBreatheIn() { this._breathingInTime = null; this._currentOrb.CancelBreatheIn(); this._currentOrb = null; }
private void StartBreatheIn() { this._breathingInTime = Time.time; this._currentOrb = Instantiate(this.orbPrefab, this.cup.transform).GetComponent <BreathToolOrb>(); this._currentOrb.StartBreatheIn(); }