Esempio n. 1
0
    public void HideDialog()
    {
        TweenUtil.MoveToObject(notificationPanel, Vector3.zero.WithY(positionYClosedInGame), .2f, 0f);

        //UITweenerUtil.MoveTo(notificationPanel, .2f, 0f, Vector3.zero.WithY(positionYClosedInGame));

        Invoke("DisplayNextNotification", 1);
    }
    public virtual void HideInputObject(float time, float delay)
    {
        TweenUtil.MoveToObject(gameObject, Vector3.zero.WithY(3000), time, delay);

        //UITweenerUtil.MoveTo(
        //    gameObject,
        //    UITweener.Method.EaseInOut,
        //    UITweener.Style.Once, time, delay, Vector3.zero.WithY(3000));

        controlsVisible = false;
    }
Esempio n. 3
0
    public void ShowDialog()
    {
        float openPos = positionYOpenInGame;

        LogUtil.Log("ShowDialog:" + openPos);

        Vector3 temp = notificationPanel.transform.position;

        temp.y = openPos;

        TweenUtil.MoveToObject(notificationPanel, temp, .5f, 0f);

        //UITweenerUtil.MoveTo(notificationPanel, UITweener.Method.EaseIn, UITweener.Style.Once, .5f, 0f, temp);

        Invoke("HideDialog", 4f);

        SetStateShowing();
    }
Esempio n. 4
0
    public void ShowDialog()
    {
        TweenUtil.MoveToObject(notificationPanel, Vector3.zero.WithY(positionYOpenInGame), .6f, 0f);

        //UITweenerUtil.MoveTo(notificationPanel, .6f, 0f, Vector3.zero.WithY(positionYOpenInGame));

        Invoke("HideDialog", 4.5f);

        SetStateShowing();

        bool audioPlaySuccess = false;

        if (currentItem != null)
        {
            if (currentItem.notificationType == UINotificationType.Achievement)
            {
                audioPlaySuccess = true;
            }
            else if (currentItem.notificationType == UINotificationType.Error)
            {
            }
            else if (currentItem.notificationType == UINotificationType.Info)
            {
                audioPlaySuccess = true;
            }
            else if (currentItem.notificationType == UINotificationType.Point)
            {
                audioPlaySuccess = true;
            }
            else if (currentItem.notificationType == UINotificationType.Tip)
            {
            }
        }

        if (audioPlaySuccess)
        {
            //GameAudio.PlayEffect(GameAudioEffects.audio_effect_achievement_1);
            //GameAudio.PlayEffect(GameAudioEffects.audio_effect_achievement_2);
            //GameAudio.PlayEffect(GameAudioEffects.audio_effect_achievement_3);
        }

        currentItem = null;
    }
Esempio n. 5
0
    public void HideDialog()
    {
        if (notificationPanel == null)
        {
            return;
        }

        float closedPos = positionYClosedInGame;

        LogUtil.Log("HideDialog:" + closedPos);

        Vector3 temp = notificationPanel.transform.position;

        temp.y = closedPos;

        TweenUtil.MoveToObject(notificationPanel, temp, .6f, .9f);

        //UITweenerUtil.MoveTo(notificationPanel, UITweener.Method.EaseIn, UITweener.Style.Once, .6f, .9f, temp);

        Invoke("DisplayNextNotification", 1);
    }