| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using UnityEngine;
- namespace ETModel
- {
- public enum UnitType
- {
- Hero,
- Npc
- }
-
- public sealed class Unit: Entity
- {
- public VInt3 IntPos;
- public GameObject GameObject;
-
- public void Awake()
- {
- }
- 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();
- }
- }
- }
|