public static void Set(GameObject button, string event_name, object event_data = null) { if (!(button.GetComponent <UIButton>() == null)) { UILongTouch uILongTouch = button.GetComponent <UILongTouch>(); if (uILongTouch == null) { uILongTouch = button.AddComponent <UILongTouch>(); } uILongTouch.eventName = event_name; uILongTouch.eventData = event_data; } }
} //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) protected void Awake() { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) UILongTouch.Set(longTouchTarget, "EVOLVE", null); UITouchAndRelease.Set(longTouchTarget, "EVOLVE_TOUCH", null, null); effectTrans = EffectManager.GetUIEffect("ef_ui_skillgauge_blue_01", gauge.get_transform().get_parent(), 0f, 1, gauge); if (!object.ReferenceEquals(effectTrans, null)) { effectTrans.get_gameObject().SetActive(false); } }