public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        LerpDemo lerper = (LerpDemo)target;

        if (GUILayout.Button("PLAY"))
        {
            lerper.PlayTweenAnim();
        }
    }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();  // draws normal editor part

        LerpDemo lerper = (LerpDemo)target;

        if (GUILayout.Button("Play"))
        {
            lerper.PlayTweenAnim();
        }
    }