ProjectDDD/Assets/_Datas/SLShared/SLUnity/SLUI/SLWorldTransform.cs
2025-06-17 20:47:57 +09:00

36 lines
751 B (Stored with Git LFS)
C#

using System.Collections;
using System.Collections.Generic;
using Superlazy;
using Superlazy.UI;
using UnityEngine;
public class SLWorldTransform : SLUIComponent
{
public string bind = "TargetPosition";
protected override void Validate()
{
}
protected override void Init()
{
}
private void Update()
{
if (bindParent.Active == false) return;
var posEntity = SLEntity.Empty;
posEntity["X"] = transform.position.x;
posEntity["Y"] = transform.position.y;
posEntity["Z"] = transform.position.z;
SLGame.Session.Get(bindParent.BindPath).Set(bind, posEntity);
}
protected override void Enable()
{
}
protected override void Disable()
{
}
}