示例#1
0
    // Use this for initialization
    void Start()
    {
        //设置按钮回调
        m_NextBtnObj.GetComponent <Button>().onClick.AddListener(NextBtnClick);
        m_ResetBtnObj.GetComponent <Button>().onClick.AddListener(ResetBtnClick);
        m_GenerateBtnObj.GetComponent <Button>().onClick.AddListener(GenerateBtnClick);
        m_PlayBtnObj.GetComponent <Button>().onClick.AddListener(PlayBtnClick);

        m_BgLetterPan.SetData(WordList);
        m_EditorLetterPan.SetData(WordList);
        m_SrcWordListScript.AddWordList(WordList);
    }