protected virtual void Reset()
 {
     textGraphic      = GetComponent <LeapTextGraphic>();
     simManager       = FindObjectOfType <SimulationManager>();
     genManager       = FindObjectOfType <GeneratorManager>();
     simulatorSetters = FindObjectOfType <SimulatorSetters>();
 }
Exemplo n.º 2
0
 private void Reset()
 {
     if (simSetters == null)
     {
         simSetters = FindObjectOfType <SimulatorSetters>();
     }
     if (uiText == null)
     {
         uiText = GetComponent <Text>();
     }
 }
 protected void OnValidate()
 {
     if (simManager == null)
     {
         simManager = FindObjectOfType <SimulationManager>();
     }
     if (genManager == null)
     {
         genManager = FindObjectOfType <GeneratorManager>();
     }
     if (simulatorSetters == null)
     {
         simulatorSetters = FindObjectOfType <SimulatorSetters>();
     }
 }
Exemplo n.º 4
0
 protected virtual void Reset()
 {
     if (simManager == null)
     {
         simManager = FindObjectOfType <SimulationManager>();
     }
     if (genManager == null)
     {
         genManager = FindObjectOfType <GeneratorManager>();
     }
     if (simSetters == null)
     {
         simSetters = FindObjectOfType <SimulatorSetters>();
     }
 }
    private void Reset()
    {
        if (simManager == null)
        {
            simManager = FindObjectOfType <SimulationManager>();
        }

        if (simulatorSetters == null)
        {
            simulatorSetters = FindObjectOfType <SimulatorSetters>();
        }

        if (rectTransform == null)
        {
            rectTransform = GetComponent <RectTransform>();
        }
    }