2 using System.Collections;
6 public enum AdditionalInfoType { TEXT, CUSTOM };
7 private AdditionalInfoType type;
8 private GameObject customUIElement;
9 private string additionalInfoText;
16 this.type = AdditionalInfoType.TEXT;
17 this.additionalInfoText = additionalInfoText;
18 this.customUIElement = null;
33 this.type = AdditionalInfoType.CUSTOM;
34 this.additionalInfoText = null;
35 this.customUIElement = customUIElement;
38 public AdditionalInfoType Type
43 public string AdditionalInfoText
45 get {
return additionalInfoText; }
48 public GameObject CustomUIElement
50 get {
return customUIElement; }
AdditionalInfo(GameObject customUIElement)
Uses the custom ui element given in customUIElement.
AdditionalInfo(string additionalInfoText)
Creates a default ui element above the notification with the text given in additionalInfoText.