예제 #1
0
    public void UpdateState(IActorNPC actorToUpdate, int newState)
    {
        for (int i = 0; i < actors.Length; i++)
        {
            if (actors[i].Equals(actorToUpdate))
            {
                Debug.Log("Change state");
                states[i] = newState;
                break;
            }
        }

        CheckForStates();
    }
예제 #2
0
    private void EndDialogue()
    {
        Debug.Log("Ending Dialogue");
        isTalking          = false;
        lastKaraokeProfile = null;

        if (isMoving)
        {
            talkinNPC.isMoving = true;
        }


        showKaraoke = true;
        talkinNPC   = null;
        isMoving    = false;
        animator.SetTrigger("HidePortrait");
        animator.SetTrigger("Hide");
    }
예제 #3
0
 void Awake()
 {
     nPC = GetComponent <IActorNPC>();
 }