コード例 #1
0
    private static void HrefUIEvent(string key)
    {
        int num = int.Parse(key);

        if (num <= 0)
        {
            var errmsg = string.Format("can't find the UI widget by event code {0}", num);
            new Exception(errmsg);
        }
        else
        {
            GameEventCenter.getEventCenter().DispatchEvent(new GameEvent(num));
        }
    }