Exemplo n.º 1
0
    public void SpawnInitialPlayer()
    {
        var newPlayer = Instantiate(playerPrefab, trans.position, trans.rotation);

        _currentPlayer = newPlayer.GetComponent <PlayerLife>();
        _currentPlayer.Initialize(this);

        lifeDisplayPanel.Setup(playerLives);
        hyperjump.SetPlayer(newPlayer);
    }