Ejemplo n.º 1
0
    private void OnRemoveAdsBought(object sender, OnRemoveAdsBought eventargs)
    {
        Vector3 from = this.canvasGroup.transform.localPosition;
        Vector3 to   = from + Vector3.up * 25;
        Vector3 dif  = to - from;

        LeanTween.value(this.gameObject, f => {
            this.canvasGroup.alpha = 1 - f;
            this.canvasGroup.transform.localPosition = from + dif * f;
        }, 0, 1, 0.5f).setOnComplete(() => {
            this.gameObject.SetActive(false);
        }).setEaseOutSine();
    }
Ejemplo n.º 2
0
 private void OnRemoveAdsBought(object sender, OnRemoveAdsBought eventargs)
 {
     this.Hide();
     EventManager.Dispatch(new OnWatchAdsCompleted(ShowResult.Skipped));
 }