In Game Input Screen
Implemented saving/loading of custom input settings Incorporated Input Screen in game Organized UI scripts into folders Deleted some unused UI scripts Reimplemented Fog Blur (by copying modified DoF to assets)
This commit is contained in:
parent
d47c32dfcf
commit
81acaf2a47
173 changed files with 8236 additions and 7329 deletions
|
|
@ -1,24 +0,0 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class StatSheet : MonoBehaviour
|
||||
{
|
||||
public PropertyLabel StatPrefab;
|
||||
|
||||
private List<(PropertyLabel property, Func<string> value)> _stats = new List<(PropertyLabel property, Func<string> value)>();
|
||||
|
||||
public void AddStat(string label, Func<string> value)
|
||||
{
|
||||
var instance = Instantiate(StatPrefab, transform);
|
||||
instance.Label.text = label;
|
||||
_stats.Add((instance, value));
|
||||
}
|
||||
|
||||
public void RefreshValues()
|
||||
{
|
||||
foreach(var stat in _stats)
|
||||
stat.property.Value.text = stat.value();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue