Beispiel #1
0
    public void LoadObjects()
    {
#if UNITY_ANDROID
        string aeDir = Application.persistentDataPath;
#else
        string aeDir = Application.dataPath;
#endif
        if (androidDatabase != null)
        {
            if (lLoad < androidDatabase.objectBundleNames.Count)
            {
                LoadAssetBundle(aeDir + "/Serialization/XMLa/" + AWS.assetFolderName + "/" + androidDatabase.objectBundleNames[lLoad]);
            }
            else
            {
                //Finished loading objects
                AndroidLevel.GetInstance().UILoad.GetComponent <CanvasGroup>().alpha = 0;
                LoadLevel();
            }
        }
    }
Beispiel #2
0
 void Awake()
 {
     instance = this;
 }