예제 #1
0
 public static void SetInstance(RandomNameUtility manager)
 {
     if (manager != null)
     {
         instance = manager;
     }
     else
     {
         Debug.LogError("Road Namer: Tried to set RandomName instance to a null variable!");
     }
 }
예제 #2
0
        public static RandomNameUtility Instance()
        {
            if (instance == null)
            {
                instance = new RandomNameUtility();
            }

            return instance;
        }