|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
namespace Game.Player;
|
|
|
|
class PlayerInfo : MonoBehaviour
|
|
{
|
|
[SerializeField] [ReadOnly] private Player _player;
|
|
|
|
public void SetPlayer(Player player)
|
|
{
|
|
this._player = player;
|
|
this.gameObject.name = this._player.playerName;
|
|
}
|
|
} |