Danmaku_no_Kyojin.BulletEngine.MoverManager.Initialize C# (CSharp) Method

Initialize() public method

public Initialize ( PositionDelegate playerDelegate ) : void
playerDelegate PositionDelegate
return void
        public void Initialize(PositionDelegate playerDelegate)
        {
            Debug.Assert(null != playerDelegate);
            GetPlayerPosition = playerDelegate;
            _shoot = _gameRef.Content.Load<SoundEffect>(@"Audio/SE/boss_shoot");
        }

Usage Example

示例#1
0
        public Boss(DnK gameRef, List<Player> players, int iteration = 50, float step = 25)
        {
            _gameRef = gameRef;
            _defeatCounter = 0;
            MoverManager = new MoverManager(gameRef);
            GameManager.GameDifficulty = Config.GameDifficultyDelegate;
            _players = players;
            _iteration = iteration;
            _step = step;
            _previousBossPart = null;

            _parts = new List<BossPart>();
            _currentPartIndex = 0;

            int targetPlayerId = _gameRef.Rand.Next(0, _players.Count);
            MoverManager.Initialize(_players[targetPlayerId].GetPosition);
        }
All Usage Examples Of Danmaku_no_Kyojin.BulletEngine.MoverManager::Initialize