Exemple #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("Ready"))
        {
            FightTestHelper rpc = target as FightTestHelper;
            if (rpc)
            {
                rpc.TestReady();
            }
        }
        if (GUILayout.Button("Action"))
        {
            FightTestHelper rpc = target as FightTestHelper;
            if (rpc)
            {
                rpc.TestAction();
            }
        }
        if (GUILayout.Button("Enter"))
        {
            FightTestHelper rpc = target as FightTestHelper;
            if (rpc)
            {
                rpc.TestEnter();
            }
        }
    }
Exemple #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("UseSkillAction"))
        {
            FightTestHelper rpc = target as FightTestHelper;
            if (rpc)
            {
                rpc.TestUseSkillAction();
            }
        }
    }