Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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();
    }