new env int

This commit is contained in:
2024-02-11 23:23:12 +05:30
parent dfc221d77e
commit 36da1f016f
483 changed files with 203139 additions and 46804 deletions

View File

@@ -54,6 +54,20 @@ public class ComboSelection : MonoBehaviour
Refresh();
}
public void SetValue(string newVal){
for(int i=0; i < Options.Length; i++){
if(Options[i].ToLower() == newVal.ToLower()){
SelectedIndex = i;
Refresh();
return;
}
}
Debug.LogError($"Cant set value to an non-existing option ({newVal})");
}
public void Refresh(){
selectedText.text = Options[SelectedIndex];
SelectedOption = Options[SelectedIndex];