private void OnClickRope(GameObject go)
 {
     if (go = panel.rope1.gameObject)
     {
         SetRopeInfo(9);
         mDealId = Operation_Type.way9;
     }
     else if (go = panel.rope2.gameObject)
     {
         SetRopeInfo(10);
         mDealId = Operation_Type.way10;
     }
 }
        public static short Operate(short a, short b, Operation_Type operation)
        {
            switch (operation)
            {
            case Operation_Type.Addition:
                return((short)(a + b));

            case Operation_Type.Assign:
                return(b);

            case Operation_Type.Division:
                return((short)(a / b));

            case Operation_Type.Multiplication:
                return((short)(a * b));

            case Operation_Type.Subtraction:
                return((short)(a - b));

            default: throw new Exception("Invalid operation");
            }
        }
 //讨好toggle
 private void OnClickPalyUpTo(GameObject go)
 {
     if (go == panel.playupto1.gameObject)
     {
         SetPlayuotoInfo(1);
         mDealId = Operation_Type.way1;
     }
     else if (go == panel.playupto2.gameObject)
     {
         SetPlayuotoInfo(2);
         mDealId = Operation_Type.way2;
     }
     else if (go == panel.playupto3.gameObject)
     {
         SetPlayuotoInfo(3);
         mDealId = Operation_Type.way3;
     }
     else if (go == panel.playupto4.gameObject)
     {
         SetPlayuotoInfo(4);
         mDealId = Operation_Type.way4;
     }
 }
 //挑拨toggle
 private void OnClickInstigate(GameObject go)
 {
     if (go == panel.instigate1.gameObject)
     {
         SetInstigateInfo(5);
         mDealId = Operation_Type.way5;
     }
     else if (go == panel.instigate2.gameObject)
     {
         SetInstigateInfo(6);
         mDealId = Operation_Type.way6;
     }
     else if (go == panel.instigate3.gameObject)
     {
         SetInstigateInfo(7);
         mDealId = Operation_Type.way7;
     }
     else if (go == panel.instigate4.gameObject)
     {
         SetInstigateInfo(8);
         mDealId = Operation_Type.way8;
     }
 }
    private void OnClick(GameObject go)
    {
        switch (go.transform.name)
        {
        case "offBtn":
        {
            Facade.SendNotification(NotificationID.GuildCounselor_Hide);
        }
        break;

        case "incidentBtn":
        {
        }
        break;

        case "explainBtn":
        {
        }
        break;

        case "targetBtn":
        {
        }
        break;

        case "amityBtn":
        {
            panel.playuptopanel.gameObject.SetActive(true);
            SetPlayuotoInfo(1);
            mDealId = Operation_Type.way1;
        }
        break;

        case "inciteBtn":
        {
            panel.instigatepanel.gameObject.SetActive(true);
            SetInstigateInfo(5);
            mDealId = Operation_Type.way5;
        }
        break;

        case "cozyuptoBtn":
        {
            panel.ropepanel.gameObject.SetActive(true);
            SetRopeInfo(9);
            mDealId = Operation_Type.way9;
        }
        break;

        case "offoplayuptoBtn":
        {
            panel.playuptopanel.gameObject.SetActive(false);
        }
        break;

        case "offinstigateBtn":
        {
            panel.instigatepanel.gameObject.SetActive(false);
        }
        break;

        case "offropeBtn":
        {
            panel.ropepanel.gameObject.SetActive(false);
        }
        break;

        case "surepalyuptoBtn":
        case "sureinstigateBtn":
        case "sureropeBtn":
        {
            SendType();
        }
        break;

        default:
            break;
        }
    }