コード例 #1
0
    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();
    }
コード例 #2
0
    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();
    }
コード例 #3
0
 void Awake()
 {
     instance = this;
 }
コード例 #4
0
    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();
    }