Add project files.

This commit is contained in:
2022-09-30 17:32:21 +08:00
parent df69e65c88
commit e8e36b83bd
561 changed files with 40626 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using UnityEngine;
namespace Cryville.Crtr.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() { }
}
}