// Use this for initialization void Start() { dManager = FindObjectOfType<DialogueUIManager>(); reader = FindObjectOfType<ReadJson>(); dialogue = reader.GetCharacterDialogue("sortingGameIntro"); currentDialogueBlock = dialogue[0]; Time.timeScale = 0; blockFinished = false; justStarted = true; }
void Start() { dialogue = FindObjectOfType<DialogueUIManager>(); }
// Use this for initialization void Start() { npcAdapter = GetComponent<NpcAdapter>(); //npcController = GetComponent<NpcController>(); npcController = GetComponent<NPC_BoxMovementController>(); zone = GetComponentInChildren<NpcInteractionZone>(); dManager = FindObjectOfType<DialogueUIManager>(); iManager = FindObjectOfType<InstructionManager>(); player = FindObjectOfType<PlayerAdapter>().gameObject; }