// Use this for initialization void Start() { resourceManager = GameObject.FindGameObjectWithTag("Player").GetComponent<ResourceManager>(); choiceManager = GameObject.Find("Choices").GetComponent<ChoicesManager>(); conManager = defaultConversation.GetComponent<ConversationManager>(); eventHandler = GameObject.FindGameObjectWithTag("EventController").GetComponent<EventManagement>(); }
// Use this for initialization void Start() { eventHandler = GameObject.FindGameObjectWithTag("EventController").GetComponent<EventManagement>(); resourceManager = GameObject.FindGameObjectWithTag("Player").GetComponent<ResourceManager>(); choiceManager = GameObject.Find("Choices").GetComponent<ChoicesManager>(); conManager = defaultConversation.GetComponent<ConversationManager>(); raided = eventHandler.islandEventIsOn.GetComponent<PortIslandEventScript>().raided; }
void EndDialogue() { animator.SetBool("IsOpen", false); if (questionAfter) { ChoicesManager choices = new ChoicesManager(); choices.InitializeChoices(numQuestions); print("choices"); } }
private void Awake() { Instance = this; }