bugs fix
fix ipc touch not working bug; fix player height text not updating bug
This commit is contained in:
@@ -45,7 +45,7 @@ public class Config
|
||||
FPS144 = 7
|
||||
}
|
||||
public float SpectatorFOV = 40;
|
||||
public float SpectatorSmooth = 0.125f;
|
||||
public float SpectatorSmooth = 0.05f;
|
||||
public float[] TPCamPosition = new float[3] { -0.6f, 1.8f, -1.2f };
|
||||
public float[] TPCamRotation = new float[3] { 23, 35, 0 };
|
||||
public float HandSize = 8f;
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ConfigManager : MonoBehaviour
|
||||
{
|
||||
isSavingConfig = true;
|
||||
saverTimer = 0;
|
||||
Debug.Log("Saving config file");
|
||||
//Debug.Log("Saving config file");
|
||||
}
|
||||
public void saveFileWait()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,19 @@ using TMPro;
|
||||
public class ValueManager : MonoBehaviour
|
||||
{
|
||||
TMP_Text tmp;
|
||||
public float Value;
|
||||
public float Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
set
|
||||
{
|
||||
_value = value;
|
||||
onValueChanged?.Invoke();
|
||||
}
|
||||
}
|
||||
private float _value;
|
||||
float tempValue;
|
||||
public bool isPointerDown = false;
|
||||
public UnityEvent onValueChanged = new UnityEvent();
|
||||
@@ -25,12 +37,11 @@ public class ValueManager : MonoBehaviour
|
||||
ChangeValueContinue(tempValue);
|
||||
}
|
||||
}
|
||||
public void ChangeValueContinue(float _value)
|
||||
public void ChangeValueContinue(float __value)
|
||||
{
|
||||
tempValue = _value;
|
||||
Value += Time.deltaTime * _value;
|
||||
tempValue = __value;
|
||||
Value += Time.deltaTime * __value;
|
||||
isPointerDown = true;
|
||||
onValueChanged?.Invoke();
|
||||
}
|
||||
public void PointerState(bool state)
|
||||
{
|
||||
@@ -39,10 +50,9 @@ public class ValueManager : MonoBehaviour
|
||||
public void ResetValue()
|
||||
{
|
||||
Value = 0;
|
||||
onValueChanged?.Invoke();
|
||||
}
|
||||
public void UpdateText()
|
||||
{
|
||||
tmp.text = String.Format("{0:F2}", Value);
|
||||
tmp.text = String.Format("{0:F2}", _value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user