generate functionFri, 30 Jun 2023
一个弹幕射击的函数
public static void Shoot(float speed, float angle) { var bullet = new GameObject("bullet", Type.Bullet, 0, 0); bullet.speed = speed; bullet.angle = angle; } Shoot(5, 20); Shoot(5, 70); Shoot(5, 120); Shoot(5, 170);