mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
init: add project
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Develop.Runtime.Configs.Gameplay.Levels
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Configs/Gameplay/Levels/NewLevelConfig", fileName = "LevelConfig")]
|
||||
public class LevelConfigSO : ScriptableObject
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92b0407d77114e269e933958033e5582
|
||||
timeCreated: 1771426563
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Develop.Runtime.Configs.Gameplay.Levels
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Configs/Gameplay/Levels/LevelsListConfig", fileName = "LevelsListConfig")]
|
||||
public class LevelsListConfigSO : ScriptableObject
|
||||
{
|
||||
[SerializeField] private List<LevelConfigSO> _levels;
|
||||
|
||||
public IReadOnlyList<LevelConfigSO> Levels => _levels;
|
||||
|
||||
public LevelConfigSO GetBy(int levelNumber)
|
||||
{
|
||||
int levelIndex = levelNumber - 1;
|
||||
|
||||
return _levels[levelIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d98a268b1d14e748199df00442f0142
|
||||
timeCreated: 1770317333
|
||||
Reference in New Issue
Block a user