Ejemplo n.º 1
0
 private static void PopRefCheck()
 {
     if (popRef == null)
     {
         popRef = FindObjectOfType <PopRef>();
     }
 }
Ejemplo n.º 2
0
    private void OnEnable()
    {
        if (popRef == null)
        {
            popRef = FindObjectOfType <PopRef>();
        }

        previousFlexibleUIData = allFlexibleUIData.ToList();
    }
Ejemplo n.º 3
0
 private void OnEnable()
 {
     if (popRef == null)
     {
         popRef = FindObjectOfType <PopRef>();                //fails to find during start up
     }
     if (popRef != null && !popRef.allThemes.Contains(this))
     {
         popRef.allThemes.Add(this);
     }
 }
Ejemplo n.º 4
0
 private void OnEnable()
 {
     if (popRef == null)
     {
         popRef = FindObjectOfType <PopRef>();
     }
     if (allUIObjects == null)
     {
         allUIObjects = popRef.themeSwap.allFlexibleUIData[popRef.themeSwap.activeIndex].allUIObjects;
     }
     allUIObjects.Add(this);
 }
Ejemplo n.º 5
0
 private void OnEnable()
 {
     if (popRef == null)
     {
         popRef = FindObjectOfType <PopRef>();
     }
     if (flexibleUIData == null)
     {
         flexibleUIData = popRef.themeSwap.allFlexibleUIData[popRef.themeSwap.activeIndex];
     }
     OnSkinUI();
 }
Ejemplo n.º 6
0
 private void Awake()
 {
     //Singleton code
     if (Instance != null && Instance != this)
     {
         Debug.LogError("Trying to instantiate a second singleton", gameObject);
     }
     else
     {
         Instance = this;
     }
 }