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!"); } }
public static RandomNameUtility Instance() { if (instance == null) { instance = new RandomNameUtility(); } return instance; }