25 lines
524 B
C#
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; }
|
|
}
|
|
} |