コード例 #1
0
        protected override void Initialize()
        {
            _playerInfo = base.Entity.Get<CPlayerInfo>();
            _weapon = base.Entity.Get<CWeapon>();
            _movementThumbstick = this.EntityWorld.FindEntityByName(EntityNames.MovementThumbStick).Get<CVirtualThumbstick>().Thumbstick;
            _rotationThumbstick = this.EntityWorld.FindEntityByName(EntityNames.RotationThumbStick).Get<CVirtualThumbstick>().Thumbstick;

            _boosterState = this.EntityWorld.Services.Get<IBoosterState>();
            _playerPassiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
        }
コード例 #2
0
        protected override void Initialize()
        {
            _player = this.EntityWorld.FindEntityByName(EntityNames.Player);
            _playerInfo = _player.Get<CPlayerInfo>();

            this.EntityWorld.SubscribeToMessage<ZombieKilledMessage>(this.OnZombieKilled);
            _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
            if (_passiveStats.SpawnWithThreeLives)
            {
                _playerInfo.AddLife();
            }
        }
コード例 #3
0
 protected override void Initialize()
 {
     _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
     _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
     _weaponDropTimer.SetTickTime(WeaponDropGeneratorSystem.WeaponDropTestInterval / _passiveStats.DropIncreaseMultiplier);
 }
コード例 #4
0
 protected override void Initialize()
 {
     _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
     _zombieSpatialMap = this.EntityWorld.Services.Get<IZombieSpatialMap>();
     this.EntityWorld.SubscribeToMessage<ZombieKilledMessage>(this.OnZombieKilled);
 }
コード例 #5
0
 protected override void Initialize()
 {
     this.EntityWorld.SubscribeToMessage<PlayerKilledMessage>(this.OnPlayerKilled);
     _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
 }