private void Awake() { m_bcWrapper = GetComponent <BrainCloudWrapper>(); if (!Instance) { Instance = this; } else { Destroy(gameObject); } }
void Awake() { if (_instance != null) { Destroy(gameObject); } else { _instance = this; } }