Ejemplo n.º 1
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }
Ejemplo n.º 2
0
    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;
 }