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