private void CheckLives(DamageChangeInfo info) { int peopleLeft = 0; foreach (PoolablePlayer player in GameManager.PlayerPool.players) { if (player.CurrentLives > 0) { peopleLeft++; } } if (peopleLeft == 1) { MatchEnd(GetFistPlace() + " won!"); } }
private void DeathExplosionParticle(DamageChangeInfo info, Vector3 deathPos) { Destroy(Instantiate(deathExplosionParticle, deathPos, Quaternion.identity).gameObject, 2); kaboomSource.Play(); }
public void PlayerDeath(DamageChangeInfo info) { //playerDeath[info.configuration.playerID].SetBool("Dead", info.configuration.); //playerDeath[playerid].SetBool("Dead",state); }
public void PlayerLostLife(DamageChangeInfo info) { playerLives[info.playerID].lives[info.oldLives].SetBool("LoseHeart", true); //playerDeath[info.configuration.playerID].SetBool("Dead", info.configuration.); //playerDeath[playerid].SetBool("Dead",state); }
private void OnFinished(DamageChangeInfo info) { Delete(info.playerID); }
private void OnLostLife(DamageChangeInfo info) { DeSpawn(info.playerID); }