// Use this for initialization
 void Start()
 {
     treeContainerEventHandler = GameObject.Find("TreeHandler").GetComponent <TreeContainer_EventHandler>();
     inputEventManager         = GameObject.Find("_Scene").GetComponent <InputEventManager>();
     yaw   = transform.rotation.x;
     pitch = transform.rotation.y;
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        buttonInfoText            = GameObject.Find("ButtonInfoText").GetComponent <Text>();
        treeBuilder               = GameObject.Find("_Scene").GetComponent <TreeBuilder>();
        moverCanvas               = GameObject.Find("TreeMoverCanvas");
        treeContainerEventHandler = GameObject.Find("TreeHandler").GetComponent <TreeContainer_EventHandler>();

        treeHandlerMovement = GameObject.Find("TreeHandler").GetComponent <Movement>();
        playerMovement      = GameObject.Find("WaveVR").GetComponent <Movement>();

        viewIn3DToggle = GameObject.Find("ViewIn3DToggle").GetComponent <Toggle>();

        currentSpeedMultText = GameObject.Find("TextCurrentSpeedMult").GetComponent <Text>();

        treeTargetingSphere = GameObject.Find("TargetingSphere");

        mainCamera = Camera.main;

        buttonInfoText.text = rotateInfoText;
        ShowMoverCanvas(false);
    }