protected void SetCubeRed(BridgeUI.IUIPanel panel) { if (instence) { instence.GetComponent <MeshRenderer>().material.color = Color.red; } }
protected void SetGameObjectVisiable(BridgeUI.IUIPanel panel, bool isOn) { Debug.Log("SetGameObjectVisiable"); show = isOn; UpdateShowText(); if (instence) { instence.gameObject.SetActive(show); } }
public override void OnBeforeUnBinding(BridgeUI.IUIPanel context) { base.OnBeforeUnBinding(context); if (Contexts.Count == 0) { if (instence) { GameObject.Destroy(instence); } } }
public override void OnAfterBinding(BridgeUI.IUIPanel context) { Debug.Log("OnBinding:" + context); base.OnAfterBinding(context); Initialize(); if (instence == null && m_prefab != null) { instence = GameObject.Instantiate(m_prefab); instence.SetActive(startActive); SetScaleInteranl(scale); } }
private void OpenPanel01(BridgeUI.IUIPanel panel, Button sender) { Debug.Log("OpenPanel01"); title = "panel:" + panel; info = "sender:" + sender; }
private void OnButtonClicked(BridgeUI.IUIPanel panel) { Debug.Log(panel); }
public LuaPropertyBinder(BridgeUI.IUIPanel context) : base(context) { }
private void OnButtonClicked(BridgeUI.IUIPanel panel, int arg0) { UnityEngine.Debug.Log("[" + arg0 + "]"); }
public virtual void OnBeforeUnBinding(BridgeUI.IUIPanel panel) { this._contexts.Remove(panel); }
public virtual void OnAfterBinding(BridgeUI.IUIPanel panel) { this._contexts.Add(panel); }
protected void SetGameObjectScale(BridgeUI.IUIPanel panel, float value) { scale = value; SetScaleInteranl(scale); }
private void OnEventTrigger(BridgeUI.IUIPanel panel, string arg0, int arg1) { Debug.LogFormat(string.Format("str:{0} int:{1}", arg0, arg1)); }