| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using UnityEngine;
- namespace Model
- {
- public enum UnitType
- {
- Hero,
- Npc
- }
- [ObjectEvent]
- public class UnitEvent : ObjectEvent<Unit>
- {
- }
- 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.Id == 0)
- {
- return;
- }
- base.Dispose();
- }
- }
- }
|