| 1234567891011121314151617181920212223 | using UnityEngine;namespace HQFPSWeapons{	/// <summary>	/// 	/// </summary>	public class Singleton<T> : MonoBehaviour where T : MonoBehaviour 	{		public static T Instance 		{ 			get			{				if(m_Instance == null)					m_Instance = FindObjectOfType<T>();				return m_Instance;			}		}		private static T m_Instance;	}}
 |