Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 private void CancelBreatheIn()
 {
     this._breathingInTime = null;
     this._currentOrb.CancelBreatheIn();
     this._currentOrb = null;
 }
Beispiel #3
0
 private void StartBreatheIn()
 {
     this._breathingInTime = Time.time;
     this._currentOrb      = Instantiate(this.orbPrefab, this.cup.transform).GetComponent <BreathToolOrb>();
     this._currentOrb.StartBreatheIn();
 }