Code structure cleanup.

This commit is contained in:
2023-08-24 15:47:34 +08:00
parent e40c98ae1b
commit 1f58390298
137 changed files with 439 additions and 362 deletions

View File

@@ -0,0 +1,12 @@
using UnityEngine;
namespace Cryville.Crtr.Skin.Components {
public class TransformInterface : SkinComponent {
public TransformInterface() {
SubmitProperty("pos", new PropOp.Vector3(v => transform.localPosition = v));
SubmitProperty("rot", new PropOp.Vector3(v => transform.localRotation = Quaternion.Euler(v)));
SubmitProperty("scale", new PropOp.Vector3(v => transform.localScale = v));
}
protected override void OnDestroy() { }
}
}