void Awake() { Processable.BulletMLManager.Init(new BulletFunctions()); b2wayLeftBulletTask = BulletRunner.ConvertBulletmlTaskOption(FsBulletML.Bullets.PlayerBullet.PlayerBullet.b2wayLeftBullet); b2wayRightBulletTask = BulletRunner.ConvertBulletmlTaskOption(FsBulletML.Bullets.PlayerBullet.PlayerBullet.b2wayRightBullet); hommingTask = BulletRunner.ConvertBulletmlTaskOption(FsBulletML.Bullets.PlayerBullet.PlayerBullet.homing); }
private void Shoot2WayLeftBullet() { var task = BulletRunner.ConvertBulletmlTaskOption(Player.b2wayLeftBullet); if (this.Timer > 0) { var bullet = new PlayerBullet(); Manager.AddPlayerBulletPos(bullet, new Vector2(this.Pos.X - 10, this.Pos.Y + 1)); bullet.SetTask(task); } }
private void ShootHomingBullet() { var task = BulletRunner.ConvertBulletmlTaskOption(Player.homing); if (this.Timer > 60) { var bullet = new PlayerBullet(); Manager.AddPlayerBulletPos(bullet, this.Pos); bullet.SetTask(task); } }