예제 #1
0
 private void Awake()
 {
     server           = FindObjectOfType <Server>();
     measuringMetrics = FindObjectOfType <MeasuringMetrics>();
     entryProcessing  = FindObjectOfType <EntryProcessing>();
     FakePointer      = GameObject.Find("Fake Pointer");
 }
예제 #2
0
    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;
        }
    }
예제 #3
0
    private void Awake()
    {
        GameObject objs = GameObject.FindGameObjectWithTag("Server");

        server           = objs.GetComponent <Server>();
        measuringMetrics = FindObjectOfType <MeasuringMetrics>();
        entryProcessing  = FindObjectOfType <EntryProcessing>();
        switchABCD       = FindObjectOfType <SwitchABCD>();
    }
예제 #4
0
    /// @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>();
 }