Exemplo n.º 1
0
        private void Start()
        {
            currentQuestRectTrans.gameObject.SetActive(false);

            for (int i = 0; i < objectiveImages.Count; i++)
            {
                _listOfObjectiveImages.Add(objectiveImages[i].GetComponentsInChildren <Image>().ToList());
            }

            questMan.QuestActiveEvent        += ActiveQuestHandler;
            questMan.QuestFinishedEvent      += NonActiveQuestHandler;
            questMan.ObjectiveSubmittedEvent += SubmittedObjectiveHandler;
            toggleButton.onClick.AddListener(ToggleCurrentQuestDisplayHandler);

            keyAction = new KeyAction();
            keyAction.ToggleUI.Tab.performed += context => ToggleCurrentQuestDisplayHandler();
            keyAction.Enable();

            PositionUpdateResolution();
        }