SetBullet() public method

public SetBullet ( BulletMLNode tree ) : void
tree BulletMLNode
return void
示例#1
0
 private void AddBullet(bool clear)
 {
     if (_bulletPatterns.Count > 0)
     {
         // Add a new bullet in the center of the screen
         _mover = (Mover) _moverManager.CreateBullet();
         _mover.X = Position.X;
         _mover.Y = Position.Y - 5;
         _mover.SetBullet(_bulletPatterns[_currentPatternIndex].RootNode);
     }
 }
示例#2
0
        private void AddBullet(bool clear)
        {
            if (clear)
            {
                //clear out all the bulelts
                MoverManager.movers.Clear();
            }

            //add a new bullet in the center of the screen
            _mover = (Mover)MoverManager.CreateBullet();
            _mover.X = Position.X;
            _mover.Y = Position.Y - 5;
            _mover.SetBullet(_myPatterns[_currentPattern].RootNode);
        }