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(); }
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(); }