상속: UnityEngine.ScriptableObject
예제 #1
0
 public static HFTHappyFunTimesSettings GetInstance()
 {
     if (s_instance == null)
     {
         s_instance = ScriptableObject.FindObjectOfType <HFTHappyFunTimesSettings>();
         if (s_instance == null)
         {
             s_instance      = ScriptableObject.CreateInstance <HFTHappyFunTimesSettings>();
             s_instance.name = "HappyFunTimes Settings";
         }
     }
     return(s_instance);
 }
 public static HFTHappyFunTimesSettings GetInstance()
 {
     if (s_instance == null)
     {
         s_instance = ScriptableObject.FindObjectOfType<HFTHappyFunTimesSettings>();
         if (s_instance == null)
         {
             s_instance = ScriptableObject.CreateInstance<HFTHappyFunTimesSettings>();
             s_instance.name = "HappyFunTimes Settings";
         }
     }
     return s_instance;
 }