コード例 #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        MovingPlatform movingPlatform = target as MovingPlatform;

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