private void OnKillEntity(EntityKillData killdata) { List <BountyRef> completedBounties = new List <BountyRef>(); for (int index = 0; index < bountyList.Count; ++index) { BountyRef bounty = bountyList.Get(index); if (bounty.ReferencedBounty.TargetEntity == killdata.TargetEntity) { bounty.CurrentProgress++; if (bounty.IsComplete()) { completedBounties.Add(bounty); } } } ProcessCompletedBounties(completedBounties); }
private void OnPlayerDeath(EntityKillData playerKillData) { isFading = true; startFadeTimer = Time.time; changeBGMusicEvent.Invoke(MusicType.GameOver); }