private void Awake() { if (instance != null) { Destroy(this.gameObject); } else { instance = this; } }
public override void OnCreate() { m_Instance = this; base.OnCreate(); if (Creator == null) { Creator = CSMain.GetCreator(CSConst.ciDefMgCamp); } FactoryUI.Init(); }
public Application(FactoryUI factory) { window = factory.Open(); }
void Start() { factoryUI = UIController.Instance.factoryUI; }