Esempio n. 1
0
 public void Register()
 {
     if (m_name != null && m_componentMethodName != null)
     {
         LunarConsole.RegisterAction(m_name, Invoke);
     }
 }
Esempio n. 2
0
    void Start()
    {
        LunarConsole.RegisterAction("Theme A", ChangeThemeA);
        LunarConsole.RegisterAction("Thene B", ChangeThemeB);

        LunarVariables.dragSensitivity.AddDelegate(ChangeDragSensitivity);
        LunarVariables.debug.AddDelegate(ChangeDebugMode);
    }
Esempio n. 3
0
    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));
        });
    }
Esempio n. 5
0
 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);
     }
 }
Esempio n. 6
0
    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;
    }
Esempio n. 7
0
 private void RegisterAction()
 {
     LunarConsole.RegisterAction(m_title, InvokeAction);
 }
Esempio n. 8
0
 private void RegisterLunar()
 {
     LunarConsole.RegisterAction("Show UI", this.ShowUI);
     LunarConsole.RegisterAction("Hide UI", this.HideUI);
 }