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