private void Start() { if (useAssetBundle) { prefabToSpawn = AlternateAssets.GetPrefab(prefabName); } }
private void Awake() { instance = this; myLoadedAssetBundle = AssetBundle.LoadFromFile(Path.Combine(Application.streamingAssetsPath, "maincharacters")); if (myLoadedAssetBundle == null) { Debug.Log("Failed to load AssetBundle!"); return; } }
private void Awake() { if (null == cam) { cam = FindObjectOfType <CamControl>(); } playerPrefab = AlternateAssets.GetPrefab("Player"); //if (null == camAssist) //{ // camAssist = FindObjectOfType<CamControlEZ>(); //} }