예제 #1
0
		void Awake()
		{
			if (instance)
			{
				Destroy(gameObject);
				Debug.LogError("There is already a instance of this object, HA not anymore!");
			}
			else
				instance = this;
		}
예제 #2
0
		void OnEnable()
		{
			world = World.Instance;
		}