Exemplo n.º 1
0
    private GameObject LoadWeaponGO(string assetName)
    {
        IAssetFactory factory  = new ResourcesAssetFactory();
        GameObject    weaponGO = factory.LoadWeapon(assetName);

        return(weaponGO);
    }
Exemplo n.º 2
0
    public IWeapon CreateWeapon(WeaponType weaponType)
    {
        IAssetFactory  factory  = new ResourcesAssetFactory();
        WeaponBaseAttr baseAttr = FactoryManager.AttrFactory.GetWeaponBaseAttr(weaponType);
        IWeapon        weapon   = new IWeapon(baseAttr, factory.LoadWeapon(baseAttr.AssetName));

        return(weapon);
    }
Exemplo n.º 3
0
 public GameObject LoadWeapon(string name)
 {
     return(resourcesAssetFactory.LoadWeapon(name));
 }