15 lines
309 B
C#
15 lines
309 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|