Exemplo n.º 1
0
		void Awake()
		{
			if(_firstInstance != null)
			{
				Debug.LogWarning("[ExternalCommunicator] voce tentou criar uma nova instancia");
				DestroyImmediate(this.gameObject);
				return;
			}

			DontDestroyOnLoad(this.gameObject);
			this.gameObject.name = OBJECT_NAME;
			_firstInstance = this;
			
			//chamo o setup para que os dados da Platforma sejam requisitados
			PlatformDataManager.instance.setup();
		}
Exemplo n.º 2
0
        void Awake()
        {
            if (_firstInstance != null)
            {
                Debug.LogWarning("[ExternalCommunicator] voce tentou criar uma nova instancia");
                DestroyImmediate(this.gameObject);
                return;
            }

            DontDestroyOnLoad(this.gameObject);
            this.gameObject.name = OBJECT_NAME;
            _firstInstance       = this;

            //chamo o setup para que os dados da Platforma sejam requisitados
            PlatformDataManager.instance.setup();
        }