public override bool OnClick(TouchEvent touch, UISound uiSound) { // TouchListenerを継承してGetComponentせずに済むようなクラスを作ってもいいかも Debug.Log($"{m_BallItemCellView.someTextText.text}"); UIController.Instance.ToastIn("みんみー"); return true; }
public override bool OnClick(TouchEvent touch, UISound uiSound) { Debug.Log("push button: " + m_id); Debug.Log("Scene14 : All Right"); return(true); }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonTop": { if (m_attached) { return(false); } Transform bottom = RootTransform.Find("Layer/ButtonBottom"); UIController.Instance.AttachParts(this, new List <UIPart>() { new Sample16Factory(this, bottom) }); m_attached = true; return(true); } case "ButtonBottom": { Debug.Log("before attach bottom button"); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { UIController.Instance.DetachParts(m_ui, new List <UIPart>() { this }); return(true); }
public override bool OnClick(TouchEvent touch, UISound uiSound) { Debug.Log("push Sample14_2Scroller: "); Debug.Log("Scene14 : All Right"); return(true); }
public override bool OnClick(TouchEvent touch, UISound uiSound) { if (touch.Listener.name == "Cube" || touch.Listener.name == "Sphere") { UIController.Instance.Remove(this); Debug.Log("Scene20 : All Right"); return(true); } return(false); }
private static void PlayClickSound(ISounder sounder, UISound se) { if (!string.IsNullOrEmpty(se.m_PlayName)) { sounder.PlayClickSE(se.m_PlayName); } else { sounder.PlayDefaultClickSE(); } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "LaboButton": { // UIController.Instance.Replace(new UIBase[] {new LaboSceneBase()}); return(true); } } return(true); }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonBottom": { UIController.Instance.Dispatch("Sample", new DispachParams(m_count)); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonCenter": { UIController.Instance.AddFront(new Sample17Dialog()); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonCenter": { UIController.Instance.Remove(this); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonCenter": { UIController.Instance.Replace(new UIBase[] { new Sample04Scene(), new Sample04SceneB() }, new EnumUIGroup[] { EnumUIGroup.Dialog }); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { GameObject button = GameObject.Instantiate(this.RootTransform.gameObject); button.transform.SetParent(RootTransform.parent); button.transform.localPosition = new Vector3(426, 568, 0); button.transform.localScale = Vector3.one; UIController.Instance.AttachParts(m_ui, new List <UIPart>() { new Sample16Button(m_ui, button.transform) }); return(true); }
private static bool OnClick(ISounder sounder, TouchEvent touch) { UISound se = new UISound(); bool ret = touch.Listener.Part.OnClick(touch, se); // if (ret) touch.Listener.Part.TargetLayer?.OnClick(touch, se); if (!ret || sounder == null) { return(ret); } PlayClickSound(sounder, se); return(true); }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonBottom": { UIController.Instance.SetScreenTouchable(this, false); IsScheduleUpdate = true; m_count = 0; return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonTop": { m_count++; UIController.Instance.AttachParts(this, new List <UIPart>() { new Sample15Button(m_count) }); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { switch (touch.Listener.name) { case "ButtonCenter": { Debug.Log("SceneA: " + UIController.Instance.HasUIBase("Sample19Scene")); Debug.Log("SceneB: " + UIController.Instance.HasUIBase("Sample19SceneB")); Debug.Log("SceneC: " + UIController.Instance.HasUIBase("Sample19SceneC")); Debug.Log("SceneFront: " + UIController.Instance.GetFrontUINameInGroup(EnumUIGroup.Scene)); Debug.Log("FloaterFront: " + UIController.Instance.GetFrontUINameInGroup(EnumUIGroup.Floater)); Debug.Log("SystemFront: " + UIController.Instance.GetFrontUINameInGroup(EnumUIGroup.System)); Debug.Log("SceneNum: " + UIController.Instance.GetLayerCountInGroup(EnumUIGroup.Scene)); Debug.Log("FloaterNum: " + UIController.Instance.GetLayerCountInGroup(EnumUIGroup.Floater)); Debug.Log("SystemNum: " + UIController.Instance.GetLayerCountInGroup(EnumUIGroup.System)); return(true); } default: { return(false); } } }
public override bool OnClick(TouchEvent touch, UISound uiSound) { UIController.Instance.Back(); return(true); }
// private void InitRootTransform() // { // // UIPartの追加先を決定する // Transform layer = m_TargetLayer.RootTransform.Find("Layer"); // RootTransform.SetParent(layer); // // RootTransform.localPosition = new Vector3(0, -400, 0); // RootTransform.localScale = Vector3.one; // } public override bool OnClick(TouchEvent touch, UISound uiSound) { m_ActionClick?.Invoke(); return(true); }
// クリック public virtual bool OnClick(TouchEvent touch, UISound uiSound) { // return Trueを返した段階で、他のOnClickは発火しない // base.OnClickを呼ぶ必要はない return(false); }