Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("SyncData"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestSyncData();
            }
        }
        if (GUILayout.Button("GetRankReward"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestGetRankReward();
            }
        }
        if (GUILayout.Button("UpGradeRank"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestUpGradeRank();
            }
        }
    }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("SyncData"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestSyncData();
            }
        }
        if (GUILayout.Button("GetRankReward"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestGetRankReward();
            }
        }
        if (GUILayout.Button("UpGradeRank"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestUpGradeRank();
            }
        }
        if (GUILayout.Button("ChooseRole"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestChooseRole();
            }
        }
        if (GUILayout.Button("LevelUp"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestLevelUp();
            }
        }
        if (GUILayout.Button("GetTimer"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestGetTimer();
            }
        }
        if (GUILayout.Button("Revive"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestRevive();
            }
        }
        if (GUILayout.Button("QueryEquip"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestQueryEquip();
            }
        }
        if (GUILayout.Button("UpdateNewbieGuide"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestUpdateNewbieGuide();
            }
        }
        if (GUILayout.Button("ChangPKState"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestChangPKState();
            }
        }
        if (GUILayout.Button("ChangePKProtect"))
        {
            BaseAttrTestHelper rpc = target as BaseAttrTestHelper;
            if (rpc)
            {
                rpc.TestChangePKProtect();
            }
        }
    }