Beispiel #1
0
 public void InitialiseSelf(NotificationData data)
 {
     myData = data;
     SetDetailText(myData.MyNotificationDetail);
     SetNotificationMsg(myData.MyNotificationLbl);
     SetWidthToTextLength();
     notificationQueue = FindObjectOfType <NotificationQueue>();
 }
Beispiel #2
0
 public void DestroySelf()
 {
     notificationQueue = FindObjectOfType <NotificationQueue>();
     transform.SetParent(null);//destroy doesn't destroy obj until end of frame, so child count won't be updated unless this is detatched from the parent
     Destroy(gameObject);
     Destroy(this);
     MouseSelection.DelayNextClickSelect();
     notificationQueue.ToggleLbl();
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     dialogueUI        = FindObjectOfType <DialogueUI>();
     combatUI          = FindObjectOfType <CombatUI>();
     notificationQueue = FindObjectOfType <NotificationQueue>();
     selectedQuest     = "selectedQuest";
     CreateSelectionToggleGroup(selectedQuest);
     questDict                   = new Dictionary <string, Quest>();
     questsList                  = GetPanel().transform.Find("QuestsScroller").Find("QuestsList").gameObject;
     questDetailsList            = GetPanel().transform.Find("QuestDetailsScroller").Find("QuestDetailsList").gameObject;
     questTasksList              = questDetailsList.transform.Find("SelectedQuestTasksList").gameObject;
     selectedQuestTitleLbl       = questDetailsList.transform.Find("SelectedQuestTitleLbl").GetComponent <Text>();
     selectedQuestDescriptionLbl = questDetailsList.transform.Find("SelectedQuestDescriptionLbl").GetComponent <Text>();
     DisplayQuests();
     FillQuestDictionary();
 }