Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (on)
        {
            subtitle.gameObject.SetActive(true);

            if (subtitle_clip != null)
            {
                subtitle_clip.StartClip();

                if (subtitle_clip.IsClipDone())
                {
                    on = false;
                }
            }
        }
        else
        {
            if (subtitle_clip != null)
            {
                subtitle_clip.Reset();
            }

            subtitle.gameObject.SetActive(false);
        }
    }
Пример #2
0
    //Start the end condition trigger. This is only called once.
    public void StartEndCond()
    {
        end_cond_timer           = 0f;
        start_check_for_end_cond = true;

        if (dialog_clip != null)
        {
            dialog_clip.StartClip();
        }
    }