void Start() { inputLock = false; //カメラコンポーネントの取得 flyThroughCamera = this.gameObject.GetComponent <FlyThroughCamera>(); pinchZoomCamera = this.gameObject.GetComponent <PinchZoomCamera>(); orbitCamera = this.gameObject.GetComponent <OrbitCamera>(); //初期値を保存 defaultPos = this.gameObject.transform.position; ResetInput(); }
void Start() { // 設定ファイルより入力タイプを取得 if (!ApplicationSetting.Instance.GetBool("UseMouse")) { winTouch = true; } inputLock = false; // カメラコンポーネントの取得 flyThroughCamera = this.gameObject.GetComponent <FlyThroughCamera>(); pinchZoomCamera = this.gameObject.GetComponent <PinchZoomCamera>(); orbitCamera = this.gameObject.GetComponent <OrbitCamera>(); // 初期値を保存 defaultPos = this.gameObject.transform.position; ResetInput(); }
void Awake() { instance = this; }
void Start() { inputLock = false; //カメラコンポーネントの取得 flyThroughCamera = this.gameObject.GetComponent<FlyThroughCamera>(); pinchZoomCamera = this.gameObject.GetComponent<PinchZoomCamera>(); orbitCamera = this.gameObject.GetComponent<OrbitCamera>(); //初期値を保存 defaultPos = this.gameObject.transform.position; ResetInput(); }