示例#1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        TweenBase tweenClass = (TweenBase)target;

        if (GUILayout.Button("Play"))
        {
            tweenClass.Play();
            return;
        }
        if (GUILayout.Button("ReversePlay"))
        {
            tweenClass.ReversePlay();
            return;
        }
        if (GUILayout.Button("Reset"))
        {
            tweenClass.Init();
            return;
        }
    }