File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
LunarConsole/Scripts/Actions Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -441,10 +441,14 @@ public T EnumValue
441441 get { return m_valueLookup [ Value ] ; }
442442 }
443443
444+ #if UNITY_2017_1_OR_NEWER
445+
444446 public static implicit operator T ( CEnumVar < T > cvar )
445447 {
446448 return cvar . EnumValue ;
447449 }
450+
451+ #endif
448452 }
449453
450454 public class CVarList : IEnumerable < CVar >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ private void Start()
4444 for ( var index = 0 ; index < m_variables . Length ; index ++ )
4545 {
4646 var cvar = m_variables [ index ] ;
47- m_variableLabels [ index ] . text = $ " { cvar . Name } : { cvar . Value } " ;
47+ m_variableLabels [ index ] . text = string . Format ( "{0 }: {1}" , cvar . Name , cvar . Value ) ;
4848 }
4949
5050 foreach ( CVar cvar in m_variables )
@@ -64,6 +64,6 @@ private void OnDestroy()
6464 private void OnVariableChanged ( CVar cvar )
6565 {
6666 int index = Array . IndexOf ( m_variables , cvar ) ;
67- m_variableLabels [ index ] . text = $ " { cvar . Name } : { cvar . Value } " ;
67+ m_variableLabels [ index ] . text = string . Format ( "{0 }: {1}" , cvar . Name , cvar . Value ) ;
6868 }
6969}
You can’t perform that action at this time.
0 commit comments