Exemplo n.º 1
0
 void Hide()
 {
     // first, save the current scale
     _referenceScale = this.gameObject.transform.localScale;
     // Make the UI disappear
     StartCoroutine(LerpHelper.LerpScaleWithEasing(this.gameObject, this.gameObject.transform.localScale, Vector3.zero, _lerpTime, "Quintic", false, (0.7f * _lerpTime) + _randomOffset));
 }
Exemplo n.º 2
0
 void Start()
 {
     if (_fadeOut)
     {
         IEnumerator disappear = LerpHelper.LerpScaleWithEasing(this.gameObject, this.gameObject.transform.localScale, new Vector3(0.0f, 0.0f, 0.0f), _fadeOutTime, "Quintic", true, _lifeTime);
         StartCoroutine(disappear);
     }
     else
     {
         Destroy(this.gameObject, _lifeTime);
     }
 }
Exemplo n.º 3
0
 void UpdateStageSize(float value)
 {
     // _stage.transform.localScale = new Vector3 (Mathf.Lerp(0.0f,500.0f,value), 1.0f, Mathf.Lerp(0.0f,500.0f,value));
     StartCoroutine(LerpHelper.LerpScaleWithEasing(_stage, _stage.transform.lossyScale, new Vector3(Mathf.Lerp(0.0f, 20.0f, value), Mathf.Lerp(0.0f, 2.0f, value), Mathf.Lerp(0.0f, 20.0f, value)), 0.2f, "Linear", false, 0.0f));
 }
Exemplo n.º 4
0
 void Show()
 {
     StartCoroutine(LerpHelper.LerpScaleWithEasing(this.gameObject, this.gameObject.transform.localScale, _referenceScale, StateManager._instance._lerpTime, "Quintic", false, _randomOffset));
 }