示例#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));
 }