public void Awake() { shipFactory = gameObject.AddComponent <ShipFactory>(); icon = AssetSingleton.getBundledDirectory <Sprite>(AssetSingleton.bundleNames.sprites, "fleet")[0]; if (icon == null) { Debug.LogWarning("fleet factory did not find icon"); } sceneToPrefab[3] = AssetSingleton.getAsset <GameObject>(AssetSingleton.bundleNames.prefabs, "fleetGO");//.getBundledDirectory<GameObject>(AssetSingleton.bundleNames.prefabs,"ui") if (sceneToPrefab[3] == null) { Debug.LogWarning("fleet factory did not find fleet prefab"); } }