Пример #1
0
    void Start()
    {
        // image1.gameObject.SetActive(false);     //  初始向下箭头
        //  image2.gameObject.SetActive(false);
        initIcon       = Camera.main.GetComponent <InitServerConfig>();
        DataMsg        = Camera.main.GetComponent <DataMsg>();
        GameObjectPool = new List <GameObject>();
        _instand       = this;



        string path1 =
#if UNITY_EDITOR
            "file://" + Application.dataPath + "/StreamingAssets/";
#elif UNITY_ANDROID
            "jar:file://" + Application.dataPath + "!/assets/";
#elif UNITY_IPHONE
            "file:///" + Application.dataPath + "/Raw/";
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR
            "file://" + Application.dataPath + "/StreamingAssets/";
#else
            string.Empty;
#endif
        PathURL.Add(path1);
    }
Пример #2
0
    public virtual void Awake()
    {
        _instance    = this;
        m_downLoader = new Downloader();
        m_downLoader.Init();

        MsgHandler.Instance.Init();
        //m_servers.Add(MsgCenter._instance.WWWURL);
        //m_servers.Add("http://ftp514893.host571.zhujiwu.cn/");
    }
Пример #3
0
    public virtual void Awake()
    {
        _instance     = this;
        m_downLoader  = new Downloader();
        m_assetLoader = new AssetDownloader();
        m_iconLoader  = new IconDownloader();
        m_downLoader.Init();
        m_assetLoader.Init();
        m_iconLoader.Init();

        MsgHandler.Instance.Init();
        //m_servers.Add(MsgCenter._instance.WWWURL);
    }