void Awake()
 {
     timerCheckEventSystem = new Timer(0.1f, () => EventSystem.current.SetSelectedGameObject(fieldInput.gameObject));
     processorConsole      = Toolbox.Get <ProcessorConsole>();
     canvasGroup           = GetComponent <CanvasGroup>();
     canvasGroup.alpha     = 0;
 }
示例#2
0
 public void GetFromToolbox(object behavior)
 {
     for (int i = 0; i < cachedToolboxFields.Count; i++)
     {
         var myFieldInfo = cachedToolboxFields[i];
         var fieldType   = myFieldInfo.FieldType;
         myFieldInfo.SetValue(behavior, Toolbox.Get(fieldType));
     }
 }