Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape) && SystemCore.IsTalkStarted)
        {
            EventAction.EndTalkWithNPC();

            Invoke("TalkEndFlag", 1);
        }
        if (Input.GetKeyDown(KeyCode.R) && TalkAvailable == true && SystemCore.IsTalkStarted == false)
        {
            Debug.Log("yes?");
            EventAction.StartTalkWithNPC("Talk_001");
            SystemCore.IsTalkStarted = true;
        }
    }