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

        MovingPlatform movingPlatform = target as MovingPlatform;

        if (GUILayout.Button("Center platform in path"))
        {
            movingPlatform.CenterPlatformInPath();
        }
    }