You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
631 B
19 lines
631 B
using UnityEngine; |
|
|
|
namespace ET |
|
{ |
|
[ObjectSystem] |
|
public class GlobalComponentAwakeSystem: AwakeSystem<GlobalComponent> |
|
{ |
|
public override void Awake(GlobalComponent self) |
|
{ |
|
GlobalComponent.Instance = self; |
|
|
|
self.Global = GameObject.Find("/Global").transform; |
|
self.Unit = GameObject.Find("/Global/Unit").transform; |
|
// self.UI = GameObject.Find("/Global/UI").transform; |
|
self.MainCamera = GameObject.Find("/Global/MainCamera").transform; |
|
self.UICamera = GameObject.Find("/Global/Stage Camera").transform; |
|
} |
|
} |
|
} |