예제 #1
0
    private void Awake()
    {
        sm = FindObjectOfType <SceneManagment>();
        SwitchABCD go = FindObjectOfType <SwitchABCD>();

        GameObject goText = GameObject.Find("Mode");

        TextAbove = goText.GetComponent <Text>();

        tr = FindObjectOfType <TrailRender>();

        airStrokeMapper = FindObjectOfType <AirStrokeMapper>();

        GameObject KeyboardHolder = GameObject.Find("Keyboard Holder");

        KeyboardHolder.transform.localScale = new Vector3(scale_coef, scale_coef, 1);

        pointerHandler = FindObjectOfType <PointerHandler>();

        if (go == null)
        {
            enabled = false;
            Debug.Log("Can't find SwitchABCD object.");
            return;
        }
        else
        {
            ScaledObject = go.gameObject;
        }
    }
예제 #2
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>();
    }
예제 #3
0
 private void Awake()
 {
     pointer_dot = GameObject.FindWithTag("KeyboardDot");
     trRander    = GetComponent <TrailRender>();
     server      = FindObjectOfType <Server>();
 }