GlobalComponentSystem.cs 484 B

1234567891011121314151617
  1. using UnityEngine;
  2. namespace ET.Client
  3. {
  4. [ObjectSystem]
  5. public class GlobalComponentAwakeSystem: AwakeSystem<GlobalComponent>
  6. {
  7. protected override void Awake(GlobalComponent self)
  8. {
  9. GlobalComponent.Instance = self;
  10. self.Global = GameObject.Find("/Global").transform;
  11. //self.Unit = GameObject.Find("/Global/Unit").transform;
  12. //self.UI = GameObject.Find("/Global/UI").transform;
  13. }
  14. }
  15. }