コード例 #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (dice == null)
            dice = (DiceTest) target;

        if (GUILayout.Button("Test roll the dice"))
            dice.TestDiceResult ();
    }
コード例 #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (dice == null)
        {
            dice = (DiceTest)target;
        }

        if (GUILayout.Button("Test roll the dice"))
        {
            dice.TestDiceResult();
        }
    }