Esempio n. 1
0
		/*--------------------------------------------------*/
		/// <summary>
		/// .
		/// </summary>
		/*--------------------------------------------------*/
		void Awake()
		{
			if(_instance == null)
			{
				_instance = this;
				logQueue = new Queue();
			}
			else
			{
				Object.Destroy(this);
			}
		}
Esempio n. 2
0
		/*--------------------------------------------------*/
		/// <summary>
		/// .
		/// </summary>
		/*--------------------------------------------------*/
		void OnDestroy()
		{
			if (_instance == this) { _instance = null; }
		}