Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        Instance = this;
        // KcpDataControll.Instance.Connection("127.0.0.1",8886);
        App.Initial(transform as RectTransform);
        ModelManagerUI.LoadModels(baseUI.bytes, "baseUI");
#if UNITY_EDITOR
        AssetBundle.UnloadAllAssetBundles(true);
#endif
        ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) =>
        {
            loadOver = true;
            //if (hotData != null)
            //    UIPage.LoadPage<HotFixEntry>(hotData);
            UIPage.LoadPage <HotFixEntry>(hotfix.bytes);
        };
    }
Ejemplo n.º 2
0
 public void AddFood()
 {
     FoodSkin.Add(HotFixScript.LoadResourceSprite("icecream-03.png", "food3.unity3d"));
 }
Ejemplo n.º 3
0
 private HotFixScript()
 {
     hotFix = this;
 }