void Awake() { if (Instant) { DestroyImmediate(gameObject); return; } Instant = this; DontDestroyOnLoad(gameObject); }
void Start() { BackKeyOverride.AddBackKeyCallBack(BackKey); }
void OnDestroy() { BackKeyOverride.RemoveBackKeyCallBack(BackKey); }