예제 #1
0
    private GameObject LoadWeaponGO(string assetName)
    {
        IAssetFactory factory  = new ResourcesAssetFactory();
        GameObject    weaponGO = factory.LoadWeapon(assetName);

        return(weaponGO);
    }
예제 #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);
    }
예제 #3
0
 public GameObject LoadWeapon(string name)
 {
     return(resourcesAssetFactory.LoadWeapon(name));
 }