private void Awake() { controller = GetComponent <GameController>(); additionalNarrations = GetComponent <AdditionalNarrations>(); //inputField.onEndEdit.AddListener(AcceptStringInput); inputField.onEndEdit.AddListener(val => { if (Input.GetKeyDown(KeyCode.Return)) { AcceptStringInput(val); } }); }
// Start is called before the first frame update void Awake() { roomNavigation = GetComponent <RoomNavigation>(); textInput = GetComponent <TextInput>(); interactableItems = GetComponent <InteractableItems>(); registerObjects = GetComponent <RegisterObjects>(); registerRooms = GetComponent <RegisterRooms>(); map = GetComponent <MiniMap>(); debugClass = GetComponent <DebugMode>(); additionalNarrations = GetComponent <AdditionalNarrations>(); npcTalk = GetComponent <NPCTalk>(); npcInteraction = GetComponent <NPCInteraction>(); demoScript = GetComponent <DemoScript>(); achievements = GetComponent <Achievements>(); combat = GetComponent <Combat>(); teleType = GetComponent <TeleType>(); introScreen = GetComponent <IntroScreen>(); GameObject.Find("MainScrollRect").GetComponent <ScrollRect>().verticalNormalizedPosition = 0.5f; //enterToContinue = false; //escToContinue = false; //toResumeEscToContinue = false; //exitPopUp = false; debugMode = false; secondQuestActive = false; currentActiveInput = "main"; ego.equippedWeapon = null; ego.equippedArmor = null; ego.equippedShield = null; ego.chosenAction = ""; ego.allStats[0].value = 100; ego.allStats[1].value = 100; ego.allStats[2].value = 100; ego.allStats[3].value = 0; ego.allStats[4].value = 1; ego.allStats[5].value = 0; ego.allStats[6].value = 4; ego.allStats[7].value = 0; ego.allStats[8].value = 1.5f; ego.allStats[9].value = 0; ego.allStats[10].value = 0; for (int i = 0; i < ego.allStats.Length; i++) { ego.allStats[i].effectValue = 0; } ego.activeEffects.Clear(); ego.defeatedBadGuys.Clear(); ego.blueCrystals = 0; ego.bankedCrystals = 0; ego.fightClubRank = 0; ego.fleeLocation = ""; ego.conversation = 0; ego.currentInit = 0; ego.displayAction = ""; ego.chosenAction = ""; ego.chosenItem = null; ego.chosenItem2 = null; ego.chosenTarget = null; ego.potionBelt.Clear(); //enterToContinueDialogue = false; //timeDelay = 1; sentences = new Queue <string>(); pauses = new Queue <int>(); //ego = Instantiate(ego); }