public void Finish() { controller.enabled = false; transform.position = new Vector3(5f, 25f, 0f); lastAppliedTick++; ServerSend.PlayerPosition(this); StartCoroutine(Respawn()); //ServerSend.SendPlayerDeath(id); other package for score board? IsFinished = true; RoundManager.CheckForEndOfRound(); }
public void Die() { controller.enabled = false; transform.position = new Vector3(5f, 25f, 0f); lastAppliedTick++; ServerSend.PlayerPosition(this); StartCoroutine(Respawn()); ServerSend.SendPlayerDeath(id); IsAlive = false; RoundManager.CheckForEndOfRound(); }