using MoleMole.Config; using UnityEngine; using UnityEngine.UI; namespace MoleMole { public class GalTouchContext : BaseWidgetContext { private const string FULL_LEVEL_EFFECT_PREFAB_PATH = "UI/Menus/Widget/Storage/Sakura"; private MonoGalTouchView _galTouchView; private GameObject _fullGoodFeelEffect; private bool _setup; public GalTouchContext() { config = new ContextPattern { contextName = "GalTouchContext", viewPrefabPath = "UI/Menus/Dialog/Impression/Impression", ignoreNotify = false, cacheType = ViewCacheType.DontCache }; uiType = UIType.SuspendBar; } public override bool OnPacket(NetPacketV1 pkt) { return false; } public override bool OnNotify(Notify ntf) { if (ntf.type == NotifyTypes.EnterMainPage) { OnEnterMainPage(); } if (ntf.type == NotifyTypes.ExitMainPage) { OnExitMainPage(); } return false; } protected override bool SetupView() { Singleton.Instance.GalTouchInfoChanged += OnGalTouchInfoChanged; _galTouchView = base.view.GetComponent(); if (_galTouchView != null) { _galTouchView.Upgrade += OnViewUpgrade; } Singleton.Instance.RegisterContext(this); _setup = true; base.view.SetActive(false); return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("Bottom/Button").GetComponent