Beispiel #1
0
		private static void InitGVConsole()
		{
			gvConsole = GVConsole.ins;
			if (gvConsole == null)
			{
				Debug.LogError("No GVConsole found!");
			}
		}
Beispiel #2
0
		void Start()
		{
			console = GVConsole.ins;
			if (console == null)
			{
				Debug.LogError("No GVConsole found!");
			}

			codeManager = CEManager.ins;
			if (codeManager == null)
			{
				Debug.LogError("No CEManager found!");
			}
		}
Beispiel #3
0
		void Awake()
		{
			if (_ins == null)
			{
				// Populate with first instance
				_ins = this;
			}
			else
			{
				// Another instance exists, destroy
				if (this != _ins)
					this.enabled = false;
			}
		}