Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     gunHelper                         = new CarGunHelper();
     gunHelper.rotateSpeed             = 9;
     gunHelper.timeIntervalBullet      = 0.6f;
     gunHelper.timeIntervalCanonBullet = 5f;
     gunHelper.bulletSpeed             = 150f;
     target = GameObject.Find("Target").transform;
 }
Beispiel #2
0
        // Start is called before the first frame update
        void Start()
        {
            carHelper                         = GetComponent <CarHelper>();
            gunHelper                         = new CarGunHelper();
            gunHelper.rotateSpeed             = 9;
            gunHelper.timeIntervalBullet      = 0.6f;
            gunHelper.timeIntervalCanonBullet = 5f;
            gunHelper.bulletSpeed             = 150f;
            target = GameObject.Find("Target").transform;

            enemyCarHelper = new EnemyCarHelper();
        }
 // Start is called before the first frame update
 void Start()
 {
     gunHelper             = new CarGunHelper();
     gunHelper.rotateSpeed = 7;
     gunHelper.bulletSpeed = 150f;
 }