火焰攻击

This commit is contained in:
liuliang 2024-12-12 19:25:39 +08:00
parent 314c5d4c32
commit eecb005cf6

View File

@ -70,12 +70,12 @@ public class Attack : MonoBehaviour
return;
}
/*if(bulletPrefab.GetComponent<Bullet>().myBulletType==BulletType.Spraying)
if (bulletPrefab.GetComponent<Bullet>().myBulletType == BulletType.Spraying)
{
GameObject BulletGamobj = GameObject.Instantiate(bulletPrefab, this.transform.root);
return;
}
*/
Vector2 direction = (targetRole.transform.position - transform.position).normalized;