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