Exemplo n.º 1
0
    void DialogueCall(InteractionEvent p_event)
    {
        if (!DatabaseManager.instance.eventFlags[p_event.GetEventNumber()])
        {
            theDM.SetNextEvent(p_event.GetNextEvent());

            if (p_event.GetAppearType() == AppearType.Appear)
            {
                theDM.SetAppearObjects(p_event.GetTargets());
            }
            else if (p_event.GetAppearType() == AppearType.Disappear)
            {
                theDM.SetDisAppearObjects(p_event.GetTargets());
            }
        }
        theDM.ShowDialogue(p_event.GetDialogue());
    }
Exemplo n.º 2
0
    IEnumerator WaitCollision()
    {
        yield return(new WaitUntil(() => QuestionEffect.isCollide));

        QuestionEffect.isCollide = false;

        InteractionEvent t_Event = hitInfo.transform.GetComponent <InteractionEvent>();

        if (hitInfo.transform.GetComponent <InteractionType>().isObject)
        {
            DialogueCall(t_Event);
        }
        else
        {
            if (t_Event != null && t_Event.GetDialogue() != null)
            {
                DialogueCall(t_Event);
            }
            else
            {
                TransferCall();
            }
        }
    }