1234567891011121314151617 |
- using UnityEngine;
- namespace ET.Client
- {
- [ObjectSystem]
- public class GlobalComponentAwakeSystem : AwakeSystem<GlobalComponent>
- {
- protected override void Awake(GlobalComponent self)
- {
- GlobalComponent.Instance = self;
- self.Global = GameObject.Find("/Global").transform;
- self.Unit = GameObject.Find("/Global/Unit").transform;
-
- }
- }
- }
|