예제 #1
0
 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);
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
            }
        }