Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        IA attachedIA = (IA)target;

        if (GUILayout.Button("Attack"))
        {
            attachedIA.Attack();
        }

        if (GUILayout.Button("Defend"))
        {
            attachedIA.Defend();
        }
    }