コード例 #1
0
 protected void Begin()
 {
     PlayerMovements.isPlayerInputEnable = false;
     VD.OnNodeChange += UpdateUI;
     VD.OnEnd        += End;
     VD.BeginDialogue(GetComponent <VIDE_Assign>());
     VD.SetNode(HorseState.GET_STATE());
 }
コード例 #2
0
 protected void Start()
 {
     container_NPC = GameObject.FindGameObjectWithTag("dialog_window");
     text_NPC      = GameObject.FindGameObjectWithTag("dialog_text").GetComponent <Text>();
     image_NPC     = GameObject.FindGameObjectWithTag("dialog_image").GetComponent <Image>();
     container_NPC.SetActive(false);
     text_NPC.text      = "";
     currentDialogState = HorseState.GET_STATE();
 }
コード例 #3
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        cameraController.target = this.gameObject;

        if (currentDialogState != HorseState.GET_STATE())
        {
            dialog_over        = false;
            currentDialogState = HorseState.GET_STATE();
        }
        if (!VD.isActive && !dialog_over)
        {
            Begin();
        }
    }