Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        //  cursor = rope.GetComponent<ObiRopeCursor>();
        doorOpen      = GetComponent <ElevatorGlobals>().doorOpen;
        handleGrabbed = slider.GetComponent <VRTK_InteractableObject>().IsGrabbed();
        vrsl          = slider.GetComponent <VRTK_Slider>();
        eGlobal       = GetComponent <ElevatorGlobals>();


        playerObject = GameObject.FindGameObjectWithTag("PlayerManager");
        playerFSM    = playerObject.GetComponent <PlayMakerFSM>();
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     //Fetch References
     globals = this.GetComponent <ElevatorGlobals>();
     fm      = GameObject.FindGameObjectWithTag("HotelManager").GetComponent <FloorManager>();
 }