去掉obi,使用自写绳索

This commit is contained in:
2026-02-23 20:51:03 +08:00
parent cb636f862d
commit 91e2309eeb
2011 changed files with 2593 additions and 190578 deletions

View File

@@ -1,58 +0,0 @@
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Collections;
using System;
namespace Obi
{
[CustomEditor(typeof(ObiRopeBlueprintBase), true)]
public class ObiRopeBaseBlueprintEditor : ObiActorBlueprintEditor
{
public override void OnEnable()
{
base.OnEnable();
Undo.undoRedoPerformed += UndoRedoPerformed;
}
public override void OnDisable()
{
base.OnDisable();
Undo.undoRedoPerformed -= UndoRedoPerformed;
}
void UndoRedoPerformed()
{
// Re-generate the blueprint after undo/redo.
if (blueprint != null)
blueprint.GenerateImmediate();
}
public override void OnInspectorGUI()
{
serializedObject.UpdateIfRequiredOrScript();
EditorGUILayout.BeginVertical(EditorStyles.inspectorDefaultMargins);
Editor.DrawPropertiesExcluding(serializedObject, "m_Script");
EditorGUILayout.EndVertical();
if (GUI.changed)
{
serializedObject.ApplyModifiedProperties();
// Re-generate the blueprint if any element has been changed.
if (blueprint != null)
blueprint.GenerateImmediate();
// There might be blueprint editing operations that have no undo entry, so do this to
// ensure changes are serialized to disk by Unity.
EditorUtility.SetDirty(this);
}
}
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 87efff4816bdd4fa4bda69ca33516658
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: