예제 #1
0
 void Awake()
 {
     //Levels = SortedList (Levels);
     Read();
     Player = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform> ();
     hands  = GameObject.FindGameObjectWithTag("Player").GetComponent <HandController> ();
     swithc = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer));
     hands.OffLeftHand();
     hands.OffRightHand();
 }
예제 #2
0
    // Use this for initialization
    void Awake()
    {
        controller = (FirstPersonController)FindObjectOfType(typeof(FirstPersonController));
        drag       = (DragObjects)FindObjectOfType(typeof(DragObjects));
        swithcer   = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer));
        handSmth   = (HandSmouth)FindObjectOfType(typeof(HandSmouth));
        anims      = (AnimController)FindObjectOfType(typeof(AnimController));
        //hand = (HandController)FindObjectOfType (typeof(HandController));
        Cursor.lockState = playeMode;
        Cursor.visible   = (CursorLockMode.Locked != playeMode);


        GamePanel.color  = pressedColor;
        LevelPanel.color = normalColor;
        GamePanelobj.SetActive(true);
        LevelPanelobj.SetActive(false);
    }
예제 #3
0
 // Use this for initialization
 void Awake()
 {
     switcher       = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer));
     handController = (HandController)FindObjectOfType(typeof(HandController));
     eventRay       = (EventRay)FindObjectOfType(typeof(EventRay));
 }
예제 #4
0
 void Start()
 {
     swithcer = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer));
 }
예제 #5
0
 void Awake()
 {
     hands    = GameObject.FindGameObjectWithTag("Player").GetComponent <HandController> ();
     swithcer = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer));
 }