public BulletController SpawnBullet()
    {
        BulletScriptableObjects bulletScriptableObject = bulletConfig[0];
        BulletModel             BulletModel            = new BulletModel(bulletScriptableObject);
        BulletController        BulletController       = new BulletController(BulletModel, bulletPrefab);

        return(BulletController);
    }
Esempio n. 2
0
 public BulletModel(BulletScriptableObjects bulletScriptableObject)
 {
     bulletType   = bulletScriptableObject.BulletType;
     bulletDamage = bulletScriptableObject.Damage;
 }