コード例 #1
0
ファイル: CAPIConsole.cs プロジェクト: NotYours180/Codium
		private static void InitGVConsole()
		{
			gvConsole = GVConsole.ins;
			if (gvConsole == null)
			{
				Debug.LogError("No GVConsole found!");
			}
		}
コード例 #2
0
ファイル: CEValidator.cs プロジェクト: NotYours180/Codium
		void Start()
		{
			console = GVConsole.ins;
			if (console == null)
			{
				Debug.LogError("No GVConsole found!");
			}

			codeManager = CEManager.ins;
			if (codeManager == null)
			{
				Debug.LogError("No CEManager found!");
			}
		}
コード例 #3
0
ファイル: GVConsole.cs プロジェクト: NotYours180/Codium
		void Awake()
		{
			if (_ins == null)
			{
				// Populate with first instance
				_ins = this;
			}
			else
			{
				// Another instance exists, destroy
				if (this != _ins)
					this.enabled = false;
			}
		}