public void SetState(Vector3 scale, Color color, Color colorText, Sprite sprite = null) { LeanTween.scale(gameObject, scale, time).setEase(scaleTweenType); if (text) { LeanTweenEx.ChangeColor(text, colorText, time).setEase(colorTweenType); } if (img) { LeanTweenEx.ChangeColor(img, color, time).setEase(colorTweenType); if (sprite) { img.sprite = sprite; } } }