Exemple #1
0
        protected override void ShotMatrixBullet(JIBulletController bullet, float angle)
        {
            float   length      = 1 / Mathf.Sqrt(2) * m_RectWidth;
            Vector3 destination = new Vector3(Mathf.Cos(Mathf.Deg2Rad * angle), Mathf.Sin(Mathf.Deg2Rad * angle)) * length;

            destination += transform.position;

            bullet.StartCoroutine(BulletMove(bullet, angle, destination));
            bullet.OnBulletDestroy += StopAllCoroutOnBullet;
        }
Exemple #2
0
 protected override void ShotMatrixBullet(JIBulletController bullet, float angle)
 {
     bullet.StartCoroutine(BulletMove(bullet, angle));
     bullet.OnBulletDestroy += StopAllCoroutOnBullet;
 }