using UnityEngine; using XGame.Framework.Components; using XGame.Framework.Interfaces; namespace XGame.Framework.Map { public interface IEntityView : IReference { /// /// 激活状态 /// bool Active { get; } /// /// 激活 /// void Enable(object intent = null); /// /// 隐藏 /// void Disable(); public Vector3 LocalPosition { get; set; } public Vector3 Position { get; set; } public Vector3 Rotation { get; set; } /// /// 获取组件 /// /// /// 是否自动创建 /// TComponent GetComponent(bool autoCreate = true) where TComponent : class, IComponent; } public interface IEntityProxy { EntityBehaviour Behaviour { get; set; } } }