Ejemplo n.º 1
0
 private void OnSpeedRunStart(object sender, OnSpeedRunStart eventArgs)
 {
     this.canvasGroup.interactable = false;
     LeanTween.value(this.gameObject, f => {
         this.canvasGroup.alpha = 1 - f;
         this.canvasGroup.transform.localPosition = Vector3.down * 25 * f;
     }, 0, 1, 0.5f).setEaseOutSine();
 }
Ejemplo n.º 2
0
 private void OnSpeedRunStart(object sender, OnSpeedRunStart eventArgs)
 {
     this.defaultElementsCanvasGroup.interactable  = false;
     this.speedRunElementsCanvasGroup.interactable = true;
     LeanTween.value(this.gameObject, f => {
         this.defaultElementsCanvasGroup.alpha  = 1 - f;
         this.speedRunElementsCanvasGroup.alpha = f;
         this.defaultElementsCanvasGroup.transform.localPosition  = Vector3.up * 25 * f;
         this.speedRunElementsCanvasGroup.transform.localPosition = Vector3.up * 25 * (1 - f);
     }, 0, 1, 0.5f).setDelay(0.75f).setEaseOutSine();
 }
Ejemplo n.º 3
0
    private void OnSpeedRunStart(object sender, OnSpeedRunStart eventArgs)
    {
        this.isSpeedRunMode = true;
        if (!Player.IsAdsEnabled())
        {
            return;
        }
        int heartCount = Player.GetHearts();

        heartCount--;
        Player.SetHearts(heartCount);
        OnHeartsCountWasChanged onHeartsCountWasChanged = new OnHeartsCountWasChanged(heartCount, true);

        EventManager.Dispatch(onHeartsCountWasChanged);
    }