void Awake() { Abilites.SetSkillsDescritions(); skillDescription = ModalPanelSkillDescription.Instance(); SetQuantityText(); isSkillDescriptionVisualized = false; }
public static ModalPanelSkillDescription Instance() { if (!modalPanel) { modalPanel = FindObjectOfType(typeof(ModalPanelSkillDescription)) as ModalPanelSkillDescription; if (!modalPanel) // Make sure that Modalpanel existes. { Debug.Log("There needs to be one active ModalPanelSkillDescription Script on a GameObject in your scene"); } } return(modalPanel); }