public BulletController CreateBullet(Transform position, BulletVariants bulletVariants)
        {
            BulletModel bulletModel = new BulletModel(bulletScriptableObject[0], position);

            switch (bulletVariants)
            {
            case BulletVariants.WEAK:
                bulletModel = new BulletModel(bulletScriptableObject[0], position);
                break;

            case BulletVariants.MEDIUM:
                bulletModel = new BulletModel(bulletScriptableObject[1], position);
                break;

            case BulletVariants.STRONG:
                bulletModel = new BulletModel(bulletScriptableObject[2], position);
                break;
            }
            BulletController bulletController = new BulletController(bulletModel, bulletView);

            return(bulletController);
        }
Пример #2
0
 public void Initialize(BulletController bulletControl)
 {
     bulletcontroller = bulletControl;
 }