Beispiel #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        Tank myScript = (Tank)target;

        if (GUILayout.Button("Fire"))
        {
            myScript.Fire();
        }

        if (GUILayout.Button("Aim"))
        {
            myScript.Aim();
        }
    }