private void Awake() { if (_defaultInterface != null) { _interface = _defaultInterface.GetComponent <IPopupDisplay>(); } }
// ---------------------------------------------------------------------------------------- public void SetInterface(IPopupDisplay callbacks) // ---------------------------------------------------------------------------------------- { _interface = callbacks; Events.SendGlobal(new PopupMgrInterfaceChangedEvent()); }