mirror of
https://github.com/ConjureETS/MTI860_VR_Multi_Controller.git
synced 2026-03-24 04:21:15 +00:00
28 lines
610 B
C#
28 lines
610 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Assets.Scripts.Movements;
|
|
using Assets.Scripts.Utilities;
|
|
using UnityEngine;
|
|
|
|
public class PlayerNameManager : MonoBehaviour
|
|
{
|
|
|
|
[SerializeField] private string nomDuJoueur = string.Empty;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
if (nomDuJoueur == string.Empty)
|
|
{
|
|
nomDuJoueur = DateTime.Now.ToString("YYYY-MM-dd_HH-mm");
|
|
}
|
|
PlayerPrefs.SetString(Constant.PPK_PLAYER_NAME, nomDuJoueur);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|