private void Awake() { server = FindObjectOfType <Server>(); measuringMetrics = FindObjectOfType <MeasuringMetrics>(); entryProcessing = FindObjectOfType <EntryProcessing>(); FakePointer = GameObject.Find("Fake Pointer"); }
void Start() { EntryProcessing entryProc = FindObjectOfType <EntryProcessing>(); if (!SceneManagment.isMain) { hideOverlayFlag = false; } if (reticlePointer == null) { Debug.LogError("Overlay: The 'reticlePointer' field cannot be left unassigned. Disabling the script"); enabled = false; return; } if (children == null) { Debug.LogError("Overlay: The 'children' field cannot be left unassigned. Disabling the script"); enabled = false; return; } if (LMPointer == null) { Debug.LogError("Overlay: The 'LMPointer' field cannot be left unassigned. Disabling the script"); enabled = false; return; } }
private void Awake() { GameObject objs = GameObject.FindGameObjectWithTag("Server"); server = objs.GetComponent <Server>(); measuringMetrics = FindObjectOfType <MeasuringMetrics>(); entryProcessing = FindObjectOfType <EntryProcessing>(); switchABCD = FindObjectOfType <SwitchABCD>(); }
/// @endcond /// <summary>This MonoBehavior's Awake behavior.</summary> private void Awake() { ReticleInnerAngle = RETICLE_MIN_INNER_ANGLE; ReticleOuterAngle = RETICLE_MIN_OUTER_ANGLE; trRander = GetComponent <TrailRender>(); server = FindObjectOfType <Server>(); measuringMetrics = FindObjectOfType <MeasuringMetrics>(); entryProcessing = FindObjectOfType <EntryProcessing>(); }
private void Awake() { ep = FindObjectOfType <EntryProcessing>(); }