Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     dialogBox      = GameObject.Find("Canvas3D/DialogBox").GetComponent <DialogBox>();
     submitBtn      = GameObject.Find("Canvas3D/SubmitBtn").transform;
     mouseIcon2D    = GameObject.Find("Canvas2D/MouseIcon");
     mouseIcon3D    = GameObject.Find("Canvas3D/Mouse").transform;
     mouseCountDown = GameObject.Find("Canvas3D/Mouse/MouseCountDown").GetComponent <UIEffects>();
     initSubmitPose = submitBtn.localPosition;
     holoGrid       = Items.GetComponent <HoloGrid>();
     itemsRootTran  = Items.transform;
 }
Ejemplo n.º 2
0
    void Awake()
    {
        darkness = MiscUtils.FindChildInHierarchy(gameObject, "CenterEyeAnchor").transform.Find("Darkness").GetComponent <HoloGrid>();

        avatarXform = GameObject.Find("Player").transform;
        ghostAvatar = FindObjectOfType <GhostAvatar>();

        animator         = avatarXform.GetComponent <Animator>();
        playerHead       = avatarXform.GetComponent <PlayerHead>();
        motionController = avatarXform.GetComponent <MotionController>();

        originalParentXform = transform.parent;

        Singletons.timeManager.OnTimeWarpChangedEvent += OnTimeWarpChanged;
    }
Ejemplo n.º 3
0
    void Awake()
    {
        characters[0] = GameObject.Find("Carl").transform;
        characters[1] = GameObject.Find("Socrates").transform;

        GameObject cameraPivotGO = GameObject.Find("CameraPivot_TwoPerspectives");

        cameraPivotTransform = cameraPivotGO.transform;

        cameraControl = cameraPivotTransform.GetComponentInChildren <CameraControlTwoPerspectives>();
        cameraControl.OnPerspectiveChange += OnPerspectiveChange;

        cameraTransform = cameraControl.transform.Find("OVRCameraRig");
        playerCamera    = cameraTransform.GetComponent <MainCameraBase> ();
        darkness        = GameObject.Find("OVRCameraRig").transform.Find("TrackingSpace/CenterEyeAnchor/Darkness").GetComponent <HoloGrid>();
    }
Ejemplo n.º 4
0
    void Awake()
    {
        characters[0] = GameObject.Find("Carl").transform;
        characters[1] = GameObject.Find("Socrates").transform;

            GameObject cameraPivotGO = GameObject.Find("CameraPivot_TwoPerspectives");
        cameraPivotTransform = cameraPivotGO.transform;

        cameraControl = cameraPivotTransform.GetComponentInChildren<CameraControlTwoPerspectives>();
            cameraControl.OnPerspectiveChange += OnPerspectiveChange;

        cameraTransform = cameraControl.transform.Find("OVRCameraRig");
        playerCamera = cameraTransform.GetComponent<MainCameraBase> ();
        darkness = GameObject.Find("OVRCameraRig").transform.Find("TrackingSpace/CenterEyeAnchor/Darkness").GetComponent<HoloGrid>();
    }