コード例 #1
0
 private void SetToggleMode()
 {
     enableFade = false;
     barState = new ToggleState(startPos, endPos, this, rectTransform, scriptToMonitor, toggleTime, canvasGroup);
 }
コード例 #2
0
 private void SetValueMode()
 {
     var fields = scriptToMonitor.GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance).Where(field => field.FieldType == typeof(float)).ToList();
     barState = new ValueState(startPos, endPos, this, rectTransform, scriptToMonitor, fields[currentIndex], fields[minIndex], fields[maxIndex], canvasGroup,useFill,fillImage);
 }
コード例 #3
0
 private void SetTimeMode()
 {
     var fields = scriptToMonitor.GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance).Where(field => field.FieldType == typeof(float)).ToList();
     barState = new TimeState(startPos, endPos, this, scriptToMonitor, rectTransform, fields[timeIndex], canvasGroup);
 }