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>(); }
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(); } }
protected override void Initialize() { _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>(); _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>(); _weaponDropTimer.SetTickTime(WeaponDropGeneratorSystem.WeaponDropTestInterval / _passiveStats.DropIncreaseMultiplier); }
protected override void Initialize() { _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>(); _zombieSpatialMap = this.EntityWorld.Services.Get<IZombieSpatialMap>(); this.EntityWorld.SubscribeToMessage<ZombieKilledMessage>(this.OnZombieKilled); }
protected override void Initialize() { this.EntityWorld.SubscribeToMessage<PlayerKilledMessage>(this.OnPlayerKilled); _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>(); }