void Start() { playerCamera = transform.Find("Main Camera").GetComponent <Camera>(); charMouseLook = this.GetComponent <MouseLook>(); cameraMouseLook = playerCamera.GetComponent <MouseLook>(); worldMirror = transform.parent.GetComponent <WorldMirror>(); groundCollider = GetComponentInChildren <GroundCollider>(); handsCollider = GetComponentInChildren <HandsCollider>(); Screen.showCursor = false; Screen.lockCursor = true; }
void Start() { worldMirror = GameObject.FindGameObjectWithTag("World Main").GetComponent <WorldMirror>(); worldMirror.InstantiateReflections(gameObject); bounds = worldMirror.bounds; }
void Start() { playerCamera = transform.Find("Main Camera").GetComponent<Camera>(); charMouseLook = this.GetComponent<MouseLook>(); cameraMouseLook = playerCamera.GetComponent<MouseLook>(); worldMirror = transform.parent.GetComponent<WorldMirror>(); groundCollider = GetComponentInChildren<GroundCollider>(); handsCollider = GetComponentInChildren<HandsCollider>(); Screen.showCursor = false; Screen.lockCursor = true; }
void Start() { worldMirror = GameObject.FindGameObjectWithTag("World Main").GetComponent<WorldMirror>(); worldMirror.InstantiateReflections(gameObject); bounds = worldMirror.bounds; }