public void Register() { if (m_name != null && m_componentMethodName != null) { LunarConsole.RegisterAction(m_name, Invoke); } }
void Start() { LunarConsole.RegisterAction("Theme A", ChangeThemeA); LunarConsole.RegisterAction("Thene B", ChangeThemeB); LunarVariables.dragSensitivity.AddDelegate(ChangeDragSensitivity); LunarVariables.debug.AddDelegate(ChangeDebugMode); }
void Start() { LunarConsole.RegisterAction("Combine Type A", ChangeCombineTypeA); LunarConsole.RegisterAction("Combine Type B", ChangeCombineTypeB); LunarConsole.RegisterAction("Combine Type C", ChangeCombineTypeC); LunarVariables.combineDuration.AddDelegate(SetCellCombineDuration); LunarVariables.combineInterval.AddDelegate(SetCellCombineInterval); }
// Use this for initialization void Start() { LunarConsole.RegisterAction("Set Red Color", delegate() { StartCoroutine(SetColor(Color.red)); }); LunarConsole.RegisterAction("Set Green Color", delegate() { StartCoroutine(SetColor(Color.green)); }); LunarConsole.RegisterAction("Set Blue Color", delegate() { StartCoroutine(SetColor(Color.blue)); }); }
public void Register() { if (string.IsNullOrEmpty(m_name)) { Log.w("Unable to register action: name is null or empty"); } else if (m_target == null) { Log.w("Unable to register action '{0}': target GameObject is missing", m_name); } else if (string.IsNullOrEmpty(m_componentMethodName)) { Log.w("Unable to register action '{0}' for '{1}': function is missing", m_name, m_target.name); } else { LunarConsole.RegisterAction(m_name, Invoke); } }
public IEnumerator Init() { LunarConsole.RegisterAction("Forced GameOver", () => { GameManager.instance.onGameOver(); }); if (_isInitComplete) { yield break; } Debug.Log("CommonManager Init Start"); yield return(StartCoroutine(BuildManager.Instance.Init())); yield return(StartCoroutine(DataManager.Instance.Init())); yield return(StartCoroutine(SoundManager.Instance.Init())); yield return(StartCoroutine(NetworkManager.Instance.Init())); Debug.Log("CommonManager Init End"); _isInitComplete = true; }
private void RegisterAction() { LunarConsole.RegisterAction(m_title, InvokeAction); }
private void RegisterLunar() { LunarConsole.RegisterAction("Show UI", this.ShowUI); LunarConsole.RegisterAction("Hide UI", this.HideUI); }