// Use this for initialization void Start() { dialogBox = GameObject.Find("Canvas3D/DialogBox").GetComponent <DialogBox>(); submitBtn = GameObject.Find("Canvas3D/SubmitBtn").transform; mouseIcon2D = GameObject.Find("Canvas2D/MouseIcon"); mouseIcon3D = GameObject.Find("Canvas3D/Mouse").transform; mouseCountDown = GameObject.Find("Canvas3D/Mouse/MouseCountDown").GetComponent <UIEffects>(); initSubmitPose = submitBtn.localPosition; holoGrid = Items.GetComponent <HoloGrid>(); itemsRootTran = Items.transform; }
private void Awake() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerCharacter>(); playerCharacterUI = GameObject.FindGameObjectWithTag("CharacterCanvas").GetComponentInChildren <PlayerCharacterUI>(); gainsUI = GameObject.FindGameObjectWithTag("GainsCanvas").GetComponent <GainsUI>(); skillsUI = GameObject.FindGameObjectWithTag("SkillCanvas").GetComponentInChildren <SkillsUI>(); inventoryUI = GameObject.FindGameObjectWithTag("InventoryCanvas").GetComponentInChildren <InventoryUI>(); uiEffects = GameObject.FindGameObjectWithTag("EffectsCanvas").GetComponent <UIEffects>(); dialogueSelectionUI = GameObject.FindGameObjectWithTag("DialogueCanvas").GetComponentInChildren <DialogueSelectionUI>(); actualDialogueUI = GameObject.FindGameObjectWithTag("DialogueCanvas").GetComponentInChildren <DialogueUI>(); questUI = GameObject.FindGameObjectWithTag("QuestCanvas").GetComponentInChildren <QuestUI>(); }
void Update() { //Force uppercase and create generate characters for shuffle visual effect. Instance.answerLabel.text = Instance.answerLabel.text.Length > 0 ? Instance.answerLabel.text.ToUpper() : ""; UIEffects.shuffleRandomString(); }
void Awake() { singleton = this; }