Example #1
0
 void OnClick(WachButton unit)
 {
     postData            = new PostData();
     postData.requestFor = unit.requestForm;
     postData.score      = 20;
     NetWorkController.Instance.GetData(NetWorkController.Events.POST_DATA_EVENT, unit.requestForm, postData, SendDataComplete);
 }
Example #2
0
    void OnClick(WachButton unit)
    {
        //set current button was clicked to unclick
        if (currentBtn != null)
        {
            currentBtn.InActiveClick();
        }

        //set new button will active to click lock
        unit.ActiveClick();
        //set new button to current button
        currentBtn = unit;
        //request to Microsoft azure service fabric
        NetWorkController.Instance.GetData(NetWorkController.Events.GET_DATA_EVENT, unit.requestForm, null, GetDataComplete);
    }
Example #3
0
 private void AddEventClick(WachButton btn)
 {
     //Custom event OnClick
     btn.OnClick += OnClick;
 }