示例#1
0
 public TweakableInt(string name, int val, int min, int max)
 {
     base.TweakableName = name;
     Min       = min;
     Max       = max;
     Int.Value = val;
     TweakableManagerUI.RegisterTweakable(this);
 }
示例#2
0
 public TweakableFloat(string name, float val, float min, float max)
 {
     base.TweakableName = name;
     Min         = min;
     Max         = max;
     Float.Value = val;
     TweakableManagerUI.RegisterTweakable(this);
 }
示例#3
0
 public TweakableInputField(string name, string text)
 {
     base.TweakableName = name;
     Input.Value        = text;
     TweakableManagerUI.RegisterTweakable(this);
 }
示例#4
0
 public TweakableTrigger(string name, KeyCode key = KeyCode.Escape)
 {
     base.TweakableName = name;
     TweakableManagerUI.RegisterTweakable(this);
     m_keyShortCut = key;
 }
示例#5
0
 public TweakableLabel(string name, string text)
 {
     base.TweakableName = name;
     Text.Value         = text;
     TweakableManagerUI.RegisterTweakable(this);
 }
示例#6
0
 public TweakableBool(string name, bool b)
 {
     base.TweakableName = name;
     Bool.Value         = b;
     TweakableManagerUI.RegisterTweakable(this);
 }