using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerSetup : MonoBehaviour { [SerializeField] private PlayerInfo _playerInfo; private Player _currentPlayer; public void CreateNewPlayer(string name) { _currentPlayer = new Player(name); _playerInfo.Players.Add(_currentPlayer); } public void AddScore(int ammount) { _currentPlayer.Score = ammount; } }