CameraComponent.cs 311 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. namespace ET.Client
  3. {
  4. [ComponentOf(typeof(Unit))]
  5. public class CameraComponent : Entity, IAwake, ILateUpdate
  6. {
  7. // 战斗摄像机
  8. public Camera mainCamera;
  9. public Unit Unit{ get; set; }
  10. public Camera MainCamera
  11. {
  12. get
  13. {
  14. return this.mainCamera;
  15. }
  16. }
  17. }
  18. }