migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
62
Assets/_/Features/MenuSystem/Runtime/LoadGame/LoadGame.cs
Normal file
62
Assets/_/Features/MenuSystem/Runtime/LoadGame/LoadGame.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Core.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MenuSystem.Runtime.LoadGame
|
||||
{
|
||||
public class LoadGame : BaseMonobehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
||||
//
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Unity API
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_allSaves = GetAllSaves();
|
||||
_slotPanel = transform.Find("ListPanel").gameObject;
|
||||
CreateSlots();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Main Methods
|
||||
|
||||
//
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Utils
|
||||
|
||||
/* Fonctions privées utiles */
|
||||
private void CreateSlots()
|
||||
{
|
||||
foreach (var slot in _allSaves)
|
||||
{
|
||||
GameObject slotGO = Instantiate(_slotPrefab, _slotPanel.transform);
|
||||
slotGO.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = slot;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Privates and Protected
|
||||
|
||||
[SerializeField] private GameObject _slotPrefab;
|
||||
|
||||
List<string> _allSaves = new List<string>();
|
||||
private GameObject _slotPanel;
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 414a6674ba084a369bbd3330c62853cf
|
||||
timeCreated: 1752237140
|
||||
Loading…
Add table
Add a link
Reference in a new issue