void Awake() { if (Application.isPlaying) { baseMapParameters.OnEnable(transform, OnMarkerAdd, null); } }
// protected override void OnEnable() { // // if (Application.isPlaying) // baseMapParameters.OnEnable(transform, OnMarkerAdd, null); // base.OnEnable(); // } void Awake() { // if (Application.isPlaying) { // if (SetUIComponentInstance<UIMiniMap>(ref _instance, this)) { baseMapParameters.OnEnable(transform, OnMarkerAdd, null); // UIManager.HideUI(this); // } // } }
void Awake() { baseMapParameters.OnEnable(transform, OnMarkerAdd, null); }