GlobalViewMgr.cs 683 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. namespace ET.Client
  3. {
  4. [ObjectSystem]
  5. public class GlobalViewAwakeSystem : AwakeSystem<GlobalViewComponent>
  6. {
  7. protected override void Awake(GlobalViewComponent self)
  8. {
  9. GlobalViewComponent.Instance = self;
  10. self.Global = GameObject.Find("/Global").transform;
  11. self.Unit = GameObject.Find("/Global/Unit").transform;
  12. self.RecycleNode = GameObject.Find("/Global/RecycleNode").transform;
  13. self.BattleCamera = GameObject.Find("/Global/BattleCamera").GetComponent<Camera>();
  14. self.UICamera = GameObject.Find("/Global/UICamera").GetComponent<Camera>();
  15. }
  16. }
  17. }