| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using PF;
- using UnityEngine;
- using Quaternion = UnityEngine.Quaternion;
- using Vector3 = UnityEngine.Vector3;
- namespace ETModel
- {
- [ObjectSystem]
- public class UnitAwakeSystem : AwakeSystem<Unit, GameObject>
- {
- public override void Awake(Unit self, GameObject gameObject)
- {
- self.Awake(gameObject);
- }
- }
-
- [HideInHierarchy]
- public sealed class Unit: Entity
- {
- public void Awake(GameObject gameObject)
- {
- this.GameObject = gameObject;
- }
-
- public Vector3 Position
- {
- get
- {
- return GameObject.transform.position;
- }
- set
- {
- GameObject.transform.position = value;
- }
- }
- public Quaternion Rotation
- {
- get
- {
- return GameObject.transform.rotation;
- }
- set
- {
- GameObject.transform.rotation = value;
- }
- }
- public override void Dispose()
- {
- if (this.IsDisposed)
- {
- return;
- }
- base.Dispose();
- }
- }
- }
|