Exemple #1
0
    public void Continue()
    {
        _status.SetPlaying(true);
        onContinue.Invoke();

        var continuePosition = _checkPoint.GetNewestPoint();

        player.transform.position = continuePosition;

        var health = player.GetComponent <PlayerHealth>();

        health.SetHp(health.MaxHp);

        SceneManager.LoadScene("Main");
    }