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