public BulletController SpawnBullet() { BulletScriptableObjects bulletScriptableObject = bulletConfig[0]; BulletModel BulletModel = new BulletModel(bulletScriptableObject); BulletController BulletController = new BulletController(BulletModel, bulletPrefab); return(BulletController); }
public BulletModel(BulletScriptableObjects bulletScriptableObject) { bulletType = bulletScriptableObject.BulletType; bulletDamage = bulletScriptableObject.Damage; }