Exemplo n.º 1
0
    public IEnumerator GetAsset(int assetId, PlaneAssetType planeType, AssetLoadCallBack loadCallback)
    {
        List<GameObject> ret = loadedAssets.FindAll(x => x.GetComponent<AircraftCore>().aircraftId == assetId);

        if(planeType == PlaneAssetType.HANGAR){
            loadCallback(ret.Find(x => x.GetComponent<MovementModule>() == null));
        }else if(planeType == PlaneAssetType.INFLIGHT){
            loadCallback(ret.Find(x => x.GetComponent<MovementModule>() != null));
        }

        yield return null;
    }
Exemplo n.º 2
0
 public void LoadAsset(string resPath, AssetLoadCallBack cb)
 {
 }