// Use this for initialization void Start() { wantToBeEuler = transform.localEulerAngles; chc = gameObject.GetComponent<CoffeeHouseCamera>(); im = GameObject.FindGameObjectWithTag("InputManager").GetComponent<InputManager>() as InputManager; im.PointerDrag += HandleDrag; lastdir = Vector3.zero; yrot = -transform.localEulerAngles.x; xrot = transform.localEulerAngles.y; #if UNITY_ANDROID inverseMulti = -1; #elif UNITY_IPHONE inverseMulti = -1; #elif UNITY_IOS inverseMulti = -1; #elif UNITY_EDITOR inverseMulti = 1; #else inverseMulti = 1; #endif }
protected void Start() { // linking this script to the CoffeeHouseCamera chc = gameObject.GetComponent<CoffeeHouseCamera>(); AttachGyro(); }