Пример #1
0
		public static void Initialize() {
			if (instance == null) {
				GameObject gameObject = new GameObject("ScreenLogger");
				gameObject.transform.Reset();
				gameObject.hideFlags = HideFlags.HideInHierarchy;
				instance = gameObject.AddComponent<ScreenLogger>();
			}
		}
Пример #2
0
 public static void Initialize()
 {
     if (instance == null)
     {
         GameObject gameObject = new GameObject("Screen Logger");
         gameObject.transform.Reset();
         gameObject.hideFlags = HideFlags.HideInHierarchy;
         instance             = gameObject.AddComponent <ScreenLogger>();
     }
 }