TH1/Unity/Assets/Scripts/ModelView/Client/Demo/Unit/GameObjectComponent.cs
2025-07-17 18:26:28 +08:00

25 lines
524 B
C#

using UnityEngine;
namespace ET.Client
{
[ComponentOf(typeof(Unit))]
public class GameObjectComponent: Entity, IAwake, IDestroy
{
private GameObject gameObject;
public GameObject GameObject
{
get
{
return this.gameObject;
}
set
{
this.gameObject = value;
this.Transform = value.transform;
}
}
public Transform Transform { get; private set; }
}
}