protected override void ReleaseSelf(bool calledDestroy) { if (SystemConfig.IsReleaseResourceOn) { FriendUIView.Instance = null; FriendUIViewModel.Instance = null; base.ReleaseSelf(true); } }
public static void OpenFriendUI() { if (!SystemOpenManager.IsSystemClickOpen(79, 0, true)) { return; } FriendUIView friendUIView = UIManagerControl.Instance.OpenUI("FriendUI", UINodesManager.NormalUIRoot, true, UIType.Pop) as FriendUIView; friendUIView.get_transform().SetAsLastSibling(); FriendUIViewModel.Instance.SetChannel(0); }
private void Awake() { FriendUIView.Instance = this; base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false); }