Example #1
0
    public ICellLayout Init(IInfoCenter ic, int id)
    {
        mInfoCenter = ic;
        mId         = id;

        return(this);
    }
Example #2
0
    public ICellLayout Init(IInfoCenter ic, int id)
    {
        mInfoCenter = ic;
        mId         = id;

        void OnClick()
        {
            mInfoCenter.InvokeEvent("cell touched", mId);
        }

        mButton.onClick.AddListener(OnClick);

        return(this);
    }