void OnEnable()
 {
     StopAllCoroutines();
     foreach (SpriteRenderer sprt in allSprites)
     {
         SpriteTweeners.SpriteAlphaCrossFromValueToValue(this, sprt, 0, 1, appearTime / 2f);
     }
     SpriteTweeners.SpriteScaleViaCurve(this, scalableSprite, scaleCurve, defaultSpriteScale, appearTime);
 }
 public void EnableSelf()
 {
     StopAllCoroutines();
     gameObject.SetActive(true);
     StopAllCoroutines();
     foreach (SpriteRenderer sprt in allSprites)
     {
         SpriteTweeners.SpriteAlphaCrossFromValueToValue(this, sprt, 0, 1, appearTime / 2f);
     }
     SpriteTweeners.SpriteScaleViaCurve(this, scalableSprite, scaleCurve, defaultSpriteScale, appearTime);
 }
 public void DisableSelf(bool disableGO = false)
 {
     if (!gameObject.activeInHierarchy)
     {
         return;
     }
     StopAllCoroutines();
     foreach (SpriteRenderer sprt in allSprites)
     {
         SpriteTweeners.SpriteAlphaCrossFromValueToValue(this, sprt, 1, 0, disappearTime);
     }
     SpriteTweeners.SpriteScaleCrossFromValueToValue(this, scalableSprite, scalableSprite.localScale.x, disableScale, disappearTime);
     if (disableGO)
     {
         StartCoroutine(DisableProcess());
     }
 }