質問: new int[]{Input.location.lastData.latitude,Input.location.lastData.longitude,Input.location.lastData.altitude,Input.location.lastData.horizontalAccuracy,Input.location.lastData.timestamp}; //GPS取得ストップ Input.location.Stop(); } return gpsdata; } } ``` ---環境 unityではなくターミナルで「mcs スクリプトファイル.cs」でコンパイルしています。 ---エラー内容 error CS0103: The name `Input' does not exist in the current context error CS0139: No enclosing loop out of which to break or continue error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0139: No enclosing loop out of which to break or continue error CS0103: The name `Input' does not exist in the current context error CS0103: The name `st' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `Input' does not exist in the current context error CS0103: The name `gpsdata' does not exist in the current context *if(!Input.location.isEnabledByUser)の行が最初のエラー箇所です。
回答: UnityのInputの話でしたら、.NETFramework内のライブラリではなくUnityEngineライブラリのクラスです。