Exemple #1
0
    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();
 }
Exemple #3
0
 public void PlayerDeath(DamageChangeInfo info)
 {
     //playerDeath[info.configuration.playerID].SetBool("Dead", info.configuration.);
     //playerDeath[playerid].SetBool("Dead",state);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 private void OnFinished(DamageChangeInfo info)
 {
     Delete(info.playerID);
 }
Exemple #6
0
 private void OnLostLife(DamageChangeInfo info)
 {
     DeSpawn(info.playerID);
 }