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(); }
// 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); }
// Use this for initialization void Awake() { switcher = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer)); handController = (HandController)FindObjectOfType(typeof(HandController)); eventRay = (EventRay)FindObjectOfType(typeof(EventRay)); }
void Start() { swithcer = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer)); }
void Awake() { hands = GameObject.FindGameObjectWithTag("Player").GetComponent <HandController> (); swithcer = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer)); }