Пример #1
0
    protected override void OnNormalKeyClick(BaseEventData eventData)
    {
        TextMesh       textMesh       = this.GetComponentInChildren <TextMesh>();
        GameKey3Dboard gameKey3Dboard = this.GetComponentInParent <GameKey3Dboard>();

        gameKey3Dboard.OnPinyinKeyClick(textMesh.text);
    }
Пример #2
0
    private void InitSpecialCallbackDic()
    {
        if (specialCallbackDic == null)
        {
            specialCallbackDic = new Dictionary <SpecialKeyEnum, Action>();
        }

        GameKey3Dboard gameKey3Dboard = this.GetComponentInParent <GameKey3Dboard>();

        if (game3DKayboardCache != gameKey3Dboard)
        {
            specialCallbackDic.Clear();
            specialCallbackDic.Add(SpecialKeyEnum.Done, gameKey3Dboard.OnDoneClick);
            specialCallbackDic.Add(SpecialKeyEnum.Clear, gameKey3Dboard.OnClearKeyClick);
            specialCallbackDic.Add(SpecialKeyEnum.Delete, gameKey3Dboard.OnDeleteKeyClick);
            specialCallbackDic.Add(SpecialKeyEnum.ShowNum, gameKey3Dboard.ShowNum);
            specialCallbackDic.Add(SpecialKeyEnum.ShowSymbol, gameKey3Dboard.ShowSymbol);
            specialCallbackDic.Add(SpecialKeyEnum.ShowEnUp, gameKey3Dboard.ShowEnUp);
            specialCallbackDic.Add(SpecialKeyEnum.ShowEnLow, gameKey3Dboard.ShowEnLow);
            specialCallbackDic.Add(SpecialKeyEnum.Space, gameKey3Dboard.OnSpaceClick);
            specialCallbackDic.Add(SpecialKeyEnum.Shift, gameKey3Dboard.OnShiftClick);
            specialCallbackDic.Add(SpecialKeyEnum.ShowCn, gameKey3Dboard.ShowCN);
        }
    }