예제 #1
0
 void Awake()
 {
     Abilites.SetSkillsDescritions();
     skillDescription = ModalPanelSkillDescription.Instance();
     SetQuantityText();
     isSkillDescriptionVisualized = false;
 }
예제 #2
0
    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);
    }