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(); }
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"); }
void Awake() { nPC = GetComponent <IActorNPC>(); }