diff --git a/TECHMANIA/Assets/FantomPlugin.meta b/TECHMANIA/Assets/AssetBundles.meta similarity index 77% rename from TECHMANIA/Assets/FantomPlugin.meta rename to TECHMANIA/Assets/AssetBundles.meta index 95d12b73..afe9d4f3 100644 --- a/TECHMANIA/Assets/FantomPlugin.meta +++ b/TECHMANIA/Assets/AssetBundles.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c04e1cb4ca9d8134eb7aefd54870c041 +guid: 1d5c60ddf87759946963d7b184430b86 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs.meta deleted file mode 100644 index 2f92b4b7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 53d6598e6649b0c47801f86d515b4796 -folderAsset: yes -timeCreated: 1516263599 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/AlphaNumericTextDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/AlphaNumericTextDialogController.prefab deleted file mode 100644 index 0e48dd82..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/AlphaNumericTextDialogController.prefab +++ /dev/null @@ -1,138 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1890002185469366 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4788569730725630} - - component: {fileID: 114919706155825586} - - component: {fileID: 114520408702461834} - m_Layer: 0 - m_Name: AlphaNumericTextDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4788569730725630 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1890002185469366} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114919706155825586 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1890002185469366} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d322ffc02e6888342ab7a8712f142c9c, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - text: Text - maxLength: 0 - addCharacters: _- - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - OnResult: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114520408702461834 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1890002185469366} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/AlphaNumericTextDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/AlphaNumericTextDialogController.prefab.meta deleted file mode 100644 index f96c49c4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/AlphaNumericTextDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8168f5f51c462a64fb705c579cc54870 -timeCreated: 1516525468 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/CustomDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/CustomDialogController.prefab deleted file mode 100644 index 90a15250..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/CustomDialogController.prefab +++ /dev/null @@ -1,143 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1591179469777812 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4764487984097910} - - component: {fileID: 114848726912575300} - - component: {fileID: 114925160257252100} - m_Layer: 0 - m_Name: CustomDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4764487984097910 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591179469777812} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114848726912575300 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591179469777812} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1598bed255928a345a2c874db49fc5c2, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: - findItemsInChild: 1 - items: [] - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - OnResult: - m_PersistentCalls: - m_Calls: [] - OnValueChanged: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114925160257252100 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591179469777812} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/CustomDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/CustomDialogController.prefab.meta deleted file mode 100644 index b6d33cd2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/CustomDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b47b45686ca955a4d9478e41dae942c9 -timeCreated: 1516784330 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DatePickerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DatePickerController.prefab deleted file mode 100644 index 04a50058..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DatePickerController.prefab +++ /dev/null @@ -1,51 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1055858673852520 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4281517397562136} - - component: {fileID: 114267482179780054} - m_Layer: 0 - m_Name: DatePickerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4281517397562136 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1055858673852520} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114267482179780054 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1055858673852520} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d44dc0de29903ce49b265304620afe17, type: 3} - m_Name: - m_EditorClassIdentifier: - defaultDate: - resultDateFormat: yyyy/M/d - style: android:Theme.DeviceDefault.Light.Dialog.Alert - OnResult: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DatePickerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DatePickerController.prefab.meta deleted file mode 100644 index e144ea90..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DatePickerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 511450f46465d94499a297bfbd131eab -timeCreated: 1516264908 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems.meta deleted file mode 100644 index 044730b3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0065fffdcf5af1b46a05c9b6e8710c81 -folderAsset: yes -timeCreated: 1516771389 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemCheck.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemCheck.prefab deleted file mode 100644 index 378daff7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemCheck.prefab +++ /dev/null @@ -1,92 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1343553847516672 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4920654640754706} - - component: {fileID: 114126523075056450} - - component: {fileID: 114859295481846884} - m_Layer: 0 - m_Name: DialogItemCheck - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4920654640754706 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343553847516672} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114126523075056450 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343553847516672} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36395537bc1d95e448a66651d3ac034c, type: 3} - m_Name: - m_EditorClassIdentifier: - type: 5 - key: check1 - lineHeight: 1 - lineColor: {r: 0, g: 0, b: 0, a: 1} - text: Messsage - textColor: {r: 0, g: 0, b: 0, a: 1} - backgroundColor: {r: 0, g: 0, b: 0, a: 0} - align: 0 - defaultChecked: 0 - value: 0 - minValue: 0 - maxValue: 0 - digit: 0 - toggleItems: [] - checkedIndex: 0 - localize: - localizeResource: {fileID: 0} - textID: text - localizeItems: - localizeResource: {fileID: 0} - textID: [] ---- !u!114 &114859295481846884 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1343553847516672} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: text - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemCheck.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemCheck.prefab.meta deleted file mode 100644 index 67a8e3f2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemCheck.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 57f79611623c87d4b9b3a5934f2c14f6 -timeCreated: 1525363836 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemDivisor.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemDivisor.prefab deleted file mode 100644 index bf34391a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemDivisor.prefab +++ /dev/null @@ -1,66 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1202122768778032 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4053368265958784} - - component: {fileID: 114123583511013632} - m_Layer: 0 - m_Name: DialogItemDivisor - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4053368265958784 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1202122768778032} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114123583511013632 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1202122768778032} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36395537bc1d95e448a66651d3ac034c, type: 3} - m_Name: - m_EditorClassIdentifier: - type: 0 - key: divisor1 - lineHeight: 1 - lineColor: {r: 0, g: 0, b: 0, a: 1} - text: - textColor: {r: 0, g: 0, b: 0, a: 1} - backgroundColor: {r: 0, g: 0, b: 0, a: 0} - align: 0 - defaultChecked: 0 - value: 0 - minValue: 0 - maxValue: 0 - digit: 0 - toggleItems: [] - checkedIndex: 0 - localize: - localizeResource: {fileID: 0} - textID: Text - localizeItems: - localizeResource: {fileID: 0} - textID: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemDivisor.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemDivisor.prefab.meta deleted file mode 100644 index c01fa753..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemDivisor.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f1167b0dbd0013345b1c001ae08f65df -timeCreated: 1516771408 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSlider.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSlider.prefab deleted file mode 100644 index cbf43fb0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSlider.prefab +++ /dev/null @@ -1,92 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1897195276157154 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4514373034013766} - - component: {fileID: 114162641434129682} - - component: {fileID: 114835619805964926} - m_Layer: 0 - m_Name: DialogItemSlider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4514373034013766 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1897195276157154} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114162641434129682 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1897195276157154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36395537bc1d95e448a66651d3ac034c, type: 3} - m_Name: - m_EditorClassIdentifier: - type: 3 - key: slider1 - lineHeight: 1 - lineColor: {r: 0, g: 0, b: 0, a: 1} - text: Messsage - textColor: {r: 0, g: 0, b: 0, a: 1} - backgroundColor: {r: 0, g: 0, b: 0, a: 0} - align: 0 - defaultChecked: 0 - value: 50 - minValue: 0 - maxValue: 100 - digit: 0 - toggleItems: [] - checkedIndex: 0 - localize: - localizeResource: {fileID: 0} - textID: text - localizeItems: - localizeResource: {fileID: 0} - textID: [] ---- !u!114 &114835619805964926 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1897195276157154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: text - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSlider.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSlider.prefab.meta deleted file mode 100644 index 990777a6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSlider.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a21da7a574dd0e0418386f4b7152063a -timeCreated: 1516773746 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSwitch.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSwitch.prefab deleted file mode 100644 index 43254e1d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSwitch.prefab +++ /dev/null @@ -1,92 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1629623308159876 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4323948499025162} - - component: {fileID: 114793086846504384} - - component: {fileID: 114888616708437248} - m_Layer: 0 - m_Name: DialogItemSwitch - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4323948499025162 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1629623308159876} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114793086846504384 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1629623308159876} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36395537bc1d95e448a66651d3ac034c, type: 3} - m_Name: - m_EditorClassIdentifier: - type: 2 - key: switch1 - lineHeight: 1 - lineColor: {r: 0, g: 0, b: 0, a: 1} - text: Messsage - textColor: {r: 0, g: 0, b: 0, a: 1} - backgroundColor: {r: 0, g: 0, b: 0, a: 0} - align: 0 - defaultChecked: 0 - value: 0 - minValue: 0 - maxValue: 0 - digit: 0 - toggleItems: [] - checkedIndex: 0 - localize: - localizeResource: {fileID: 0} - textID: text - localizeItems: - localizeResource: {fileID: 0} - textID: [] ---- !u!114 &114888616708437248 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1629623308159876} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: text - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSwitch.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSwitch.prefab.meta deleted file mode 100644 index cba7c3f6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemSwitch.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e61c0b21c23b76f4c93879fdcdb3c0d0 -timeCreated: 1516773706 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemText.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemText.prefab deleted file mode 100644 index 5bc5327d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemText.prefab +++ /dev/null @@ -1,92 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1037653170021322 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4434490168328092} - - component: {fileID: 114081612844392654} - - component: {fileID: 114636936013273786} - m_Layer: 0 - m_Name: DialogItemText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4434490168328092 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1037653170021322} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114081612844392654 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1037653170021322} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36395537bc1d95e448a66651d3ac034c, type: 3} - m_Name: - m_EditorClassIdentifier: - type: 1 - key: text1 - lineHeight: 1 - lineColor: {r: 0, g: 0, b: 0, a: 1} - text: Messsage - textColor: {r: 0, g: 0, b: 0, a: 1} - backgroundColor: {r: 0, g: 0, b: 0, a: 0} - align: 0 - defaultChecked: 0 - value: 0 - minValue: 0 - maxValue: 0 - digit: 0 - toggleItems: [] - checkedIndex: 0 - localize: - localizeResource: {fileID: 0} - textID: text - localizeItems: - localizeResource: {fileID: 0} - textID: [] ---- !u!114 &114636936013273786 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1037653170021322} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: text - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemText.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemText.prefab.meta deleted file mode 100644 index 9f3b1bea..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemText.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 56bae370595a94249b6562c5008648d9 -timeCreated: 1516772079 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemToggles.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemToggles.prefab deleted file mode 100644 index 8fb266b0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemToggles.prefab +++ /dev/null @@ -1,125 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1472881899106486 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4981010797173216} - - component: {fileID: 114656322383869394} - - component: {fileID: 114276033207663648} - m_Layer: 0 - m_Name: DialogItemToggles - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4981010797173216 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1472881899106486} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114656322383869394 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1472881899106486} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36395537bc1d95e448a66651d3ac034c, type: 3} - m_Name: - m_EditorClassIdentifier: - type: 4 - key: toggles1 - lineHeight: 1 - lineColor: {r: 0, g: 0, b: 0, a: 1} - text: Messsage - textColor: {r: 0, g: 0, b: 0, a: 1} - backgroundColor: {r: 0, g: 0, b: 0, a: 0} - align: 0 - defaultChecked: 0 - value: 50 - minValue: 0 - maxValue: 100 - digit: 0 - toggleItems: - - text: item1 - value: value1 - - text: item2 - value: value2 - - text: item3 - value: value3 - checkedIndex: 0 - localize: - localizeResource: {fileID: 0} - textID: Text - localizeItems: - localizeResource: {fileID: 0} - textID: - - value1 - - value2 - - value3 ---- !u!114 &114276033207663648 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1472881899106486} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: value1 - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 - - id: value2 - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 - - id: value3 - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uBCF8\uBB38" - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemToggles.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemToggles.prefab.meta deleted file mode 100644 index b4dbbf19..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/DialogItems/DialogItemToggles.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a2ca1ce67d202f4458f9fc93dc75fd27 -timeCreated: 1516774147 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiChoiceDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiChoiceDialogController.prefab deleted file mode 100644 index 5318654b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiChoiceDialogController.prefab +++ /dev/null @@ -1,150 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1418260080457852 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4951603740509102} - - component: {fileID: 114233224120669674} - - component: {fileID: 114291896657271154} - m_Layer: 0 - m_Name: MultiChoiceDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4951603740509102 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1418260080457852} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114233224120669674 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1418260080457852} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0065360fbaa145a45a077e5602a09141, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - items: - - text: item1 - value: value1 - isOn: 0 - - text: item2 - value: value2 - isOn: 0 - - text: item3 - value: value3 - isOn: 0 - resultType: 2 - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - okButtonID: okButton - cancelButtonID: cancelButton - items: - localizeResource: {fileID: 0} - textID: - - value1 - - value2 - - value3 - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultIndex: - m_PersistentCalls: - m_Calls: [] - OnValueChanged: - m_PersistentCalls: - m_Calls: [] - OnValueIndexChanged: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] - OnCancelIndex: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114291896657271154 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1418260080457852} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uC120\uD0DD\uC644\uB8CC" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiChoiceDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiChoiceDialogController.prefab.meta deleted file mode 100644 index 098b3e5e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiChoiceDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 241d2374731d1fc498dd76f766cff04e -timeCreated: 1516198536 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiLineTextDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiLineTextDialogController.prefab deleted file mode 100644 index 7b4d6dde..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiLineTextDialogController.prefab +++ /dev/null @@ -1,154 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1618968612685512 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4292895903331310} - - component: {fileID: 114783233008362550} - - component: {fileID: 114638831348474818} - m_Layer: 0 - m_Name: MultiLineTextDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4292895903331310 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1618968612685512} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114783233008362550 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1618968612685512} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c28aa9aed18ce854c81e1aa700742199, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - text: Text - maxLength: 0 - lines: 5 - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - textID: text - OnResult: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114638831348474818 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1618968612685512} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 - - id: text - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uD14D\uC2A4\uD2B8" - fontSize: 0 - - language: 10 - text: Text - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiLineTextDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiLineTextDialogController.prefab.meta deleted file mode 100644 index 4816327a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/MultiLineTextDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e53805abfc0dc30469e21814eea56c6e -timeCreated: 1516508636 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/NumericTextDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/NumericTextDialogController.prefab deleted file mode 100644 index 5b78420a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/NumericTextDialogController.prefab +++ /dev/null @@ -1,143 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1845951176630026 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4864047502971986} - - component: {fileID: 114500710570161726} - - component: {fileID: 114862486836896470} - m_Layer: 0 - m_Name: NumericTextDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4864047502971986 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1845951176630026} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114500710570161726 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1845951176630026} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe6c95b96ddd8d24eb869fb036016a96, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - defaultValue: 0 - maxLength: 6 - enableDecimal: 0 - enableSign: 0 - resultType: 0 - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultText: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114862486836896470 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1845951176630026} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/NumericTextDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/NumericTextDialogController.prefab.meta deleted file mode 100644 index 288a6e68..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/NumericTextDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7efb4d6fb3c83bf48ab2437790c86137 -timeCreated: 1516511353 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKDialogController.prefab deleted file mode 100644 index 1e203994..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKDialogController.prefab +++ /dev/null @@ -1,117 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1261796496954474 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4293919225451118} - - component: {fileID: 114688675333567004} - - component: {fileID: 114711596228622608} - m_Layer: 0 - m_Name: OKDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4293919225451118 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1261796496954474} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114688675333567004 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1261796496954474} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7103fea428fe7f14e9d5648c44543f25, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - okButton: OK - resultValue: ok - style: android:Theme.DeviceDefault.Light.Dialog.Alert - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - OnClose: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114711596228622608 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1261796496954474} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u8BA4" - fontSize: 0 - - language: 23 - text: "\uB2EB\uAE30" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKDialogController.prefab.meta deleted file mode 100644 index 57bb9c01..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 3d7d543f3ca930c439195808366c6388 -timeCreated: 1516187875 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKWithCheckBoxDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKWithCheckBoxDialogController.prefab deleted file mode 100644 index b9ca46fd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKWithCheckBoxDialogController.prefab +++ /dev/null @@ -1,139 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1870547001457568 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4394273551401102} - - component: {fileID: 114335924399591566} - - component: {fileID: 114946659005782390} - m_Layer: 0 - m_Name: OKWithCheckBoxDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4394273551401102 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870547001457568} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114335924399591566 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870547001457568} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6414285c8af83fe419bd98d09197a7ae, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - okButton: OK - resultValue: ok - defaultChecked: 0 - checkBoxText: Remember me - checkBoxTextColor: {r: 0, g: 0, b: 0, a: 1} - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveChecked: 1 - saveCheckedKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - checkBoxTextID: checkBoxText - OnClose: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114946659005782390 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870547001457568} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u8BA4" - fontSize: 0 - - language: 23 - text: "\uB2EB\uAE30" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: checkBoxText - defaultLanguage: 10 - list: - - language: 22 - text: "\u4ECA\u5F8C\u3053\u306E\u30C0\u30A4\u30A2\u30ED\u30B0\u3092\u8868\u793A\u3057\u306A\u3044" - fontSize: 0 - - language: 40 - text: "\u4E0D\u518D\u663E\u793A\u6B64\u5BF9\u8BDD\u6846" - fontSize: 0 - - language: 23 - text: "\uC774 \uCC3D\uC744 \uC790\uB3D9\uC73C\uB85C \uD45C\uC2DC\uD558\uC9C0 - \uC54A\uAE30" - fontSize: 0 - - language: 10 - text: Remember me - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKWithCheckBoxDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKWithCheckBoxDialogController.prefab.meta deleted file mode 100644 index 9b7bc9fe..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/OKWithCheckBoxDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0ec66e5b5306ca04a9d9d7053a2f131e -timeCreated: 1516187879 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/PasswordTextDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/PasswordTextDialogController.prefab deleted file mode 100644 index b7a2ab00..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/PasswordTextDialogController.prefab +++ /dev/null @@ -1,135 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1058039172675702 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4679262476693312} - - component: {fileID: 114817914763037342} - - component: {fileID: 114065142795954098} - m_Layer: 0 - m_Name: PasswordTextDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4679262476693312 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1058039172675702} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114817914763037342 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1058039172675702} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36d1fd62d92ce8147bb83f799c91260d, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Enter password - maxLength: 32 - numberOnly: 0 - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - OnResult: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114065142795954098 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1058039172675702} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/PasswordTextDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/PasswordTextDialogController.prefab.meta deleted file mode 100644 index 89ed12bb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/PasswordTextDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 92444eb5e246bce4d9161c96d8464605 -timeCreated: 1516527189 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SavedCheckedSwitcher.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SavedCheckedSwitcher.prefab deleted file mode 100644 index 3dd43a5b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SavedCheckedSwitcher.prefab +++ /dev/null @@ -1,52 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1025101594195646 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4893268053290930} - - component: {fileID: 114003943720653274} - m_Layer: 0 - m_Name: SavedCheckedSwitcher - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4893268053290930 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1025101594195646} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114003943720653274 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1025101594195646} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 664bfb0b17081d74b80ac92f3503fde4, type: 3} - m_Name: - m_EditorClassIdentifier: - target: {fileID: 0} - OnTrue: - m_PersistentCalls: - m_Calls: [] - OnFalse: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SavedCheckedSwitcher.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SavedCheckedSwitcher.prefab.meta deleted file mode 100644 index d3e44d4c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SavedCheckedSwitcher.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f6ea082a1d7cc32459629d81eae07161 -timeCreated: 1516688153 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SelectDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SelectDialogController.prefab deleted file mode 100644 index e381fc26..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SelectDialogController.prefab +++ /dev/null @@ -1,99 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1573661696879486 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4628882285339004} - - component: {fileID: 114961946893064696} - - component: {fileID: 114363042395072252} - m_Layer: 0 - m_Name: SelectDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4628882285339004 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1573661696879486} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114961946893064696 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1573661696879486} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ea0179a2df2fedc40b67e600b3ef9c1a, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - items: - - text: item1 - value: value1 - - text: item2 - value: value2 - - text: item3 - value: value3 - resultType: 2 - style: android:Theme.DeviceDefault.Light.Dialog.Alert - localize: - localizeResource: {fileID: 0} - titleID: title - items: - localizeResource: {fileID: 0} - textID: - - value1 - - value2 - - value3 - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultIndex: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114363042395072252 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1573661696879486} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SelectDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SelectDialogController.prefab.meta deleted file mode 100644 index 2c69bb5d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SelectDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 64ea9540d17327947b4ecc54dc28efc6 -timeCreated: 1516193123 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleChoiceDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleChoiceDialogController.prefab deleted file mode 100644 index c2efc5ff..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleChoiceDialogController.prefab +++ /dev/null @@ -1,148 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1171961705492632 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4105073535921516} - - component: {fileID: 114373220810723040} - - component: {fileID: 114636017699468232} - m_Layer: 0 - m_Name: SingleChoiceDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4105073535921516 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1171961705492632} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114373220810723040 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1171961705492632} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a383e57c50b74684cb40ead155e69b79, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - items: - - text: item1 - value: value1 - - text: item2 - value: value2 - - text: item3 - value: value3 - selectedIndex: 0 - resultType: 2 - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - okButtonID: okButton - cancelButtonID: cancelButton - items: - localizeResource: {fileID: 0} - textID: - - value1 - - value2 - - value3 - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultIndex: - m_PersistentCalls: - m_Calls: [] - OnValueChanged: - m_PersistentCalls: - m_Calls: [] - OnValueIndexChanged: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] - OnCancelIndex: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114636017699468232 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1171961705492632} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uC120\uD0DD\uC644\uB8CC" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleChoiceDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleChoiceDialogController.prefab.meta deleted file mode 100644 index bdff1248..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleChoiceDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ed9677f2f2dac4f4e87bff674c43dab3 -timeCreated: 1516194810 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleLineTextDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleLineTextDialogController.prefab deleted file mode 100644 index 54997413..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleLineTextDialogController.prefab +++ /dev/null @@ -1,153 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1703040379608340 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4172217311696262} - - component: {fileID: 114772744493374570} - - component: {fileID: 114075199115304144} - m_Layer: 0 - m_Name: SingleLineTextDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4172217311696262 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1703040379608340} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114772744493374570 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1703040379608340} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3c598d3a58297f04dacdd86084291a0c, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - text: Text - maxLength: 0 - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - textID: text - OnResult: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114075199115304144 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1703040379608340} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 - - id: text - defaultLanguage: 10 - list: - - language: 22 - text: "\u30C6\u30AD\u30B9\u30C8" - fontSize: 0 - - language: 40 - text: "\u6587\u672C" - fontSize: 0 - - language: 23 - text: "\uD14D\uC2A4\uD2B8" - fontSize: 0 - - language: 10 - text: Text - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleLineTextDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleLineTextDialogController.prefab.meta deleted file mode 100644 index fa7e1385..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SingleLineTextDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 74a18dad007bfc343a51683ade57f103 -timeCreated: 1516457907 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SliderDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SliderDialogController.prefab deleted file mode 100644 index bfa5c565..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SliderDialogController.prefab +++ /dev/null @@ -1,164 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1182323773895748 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4259792458896134} - - component: {fileID: 114572698129081020} - - component: {fileID: 114561232097547442} - m_Layer: 0 - m_Name: SliderDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4259792458896134 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1182323773895748} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114572698129081020 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1182323773895748} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 64a3b2ac225f7a94f95e38a1434bc41d, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - items: - - text: item1 - key: key1 - value: 100 - minValue: 0 - maxValue: 100 - digits: 0 - - text: item2 - key: key2 - value: 100 - minValue: 0 - maxValue: 100 - digits: 0 - - text: item3 - key: key3 - value: 100 - minValue: 0 - maxValue: 100 - digits: 0 - itemsTextColor: {r: 0, g: 0, b: 0, a: 1} - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - items: - localizeResource: {fileID: 0} - textID: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnValueChanged: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114561232097547442 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1182323773895748} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SliderDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SliderDialogController.prefab.meta deleted file mode 100644 index 32a95ccb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SliderDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6382b5d400dccaa4a9e0aa06e71162df -timeCreated: 1516341114 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SpeechRecognizerDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SpeechRecognizerDialogController.prefab deleted file mode 100644 index b4dcb2d7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SpeechRecognizerDialogController.prefab +++ /dev/null @@ -1,87 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1682165297015334 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4091834958788602} - - component: {fileID: 114674099505533862} - - component: {fileID: 114128283579080586} - m_Layer: 0 - m_Name: SpeechRecognizerDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4091834958788602 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682165297015334} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114674099505533862 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682165297015334} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6f45b8e4cb501b44c979183dc676bbbe, type: 3} - m_Name: - m_EditorClassIdentifier: - locale: - message: Message - saveSetting: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - messageID: message - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114128283579080586 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1682165297015334} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SpeechRecognizerDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SpeechRecognizerDialogController.prefab.meta deleted file mode 100644 index 06f2453d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SpeechRecognizerDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 4c0e7d731f46b0e43ab74ee920d30a01 -timeCreated: 1516858675 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SwitchDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SwitchDialogController.prefab deleted file mode 100644 index 781e8edb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SwitchDialogController.prefab +++ /dev/null @@ -1,158 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1507299548175566 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4164427156218900} - - component: {fileID: 114363050625959992} - - component: {fileID: 114158075793037732} - m_Layer: 0 - m_Name: SwitchDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4164427156218900 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1507299548175566} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114363050625959992 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1507299548175566} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 756c8bae0dc0a2646a22969cab1ec978, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - items: - - text: item1 - key: key1 - isOn: 0 - - text: item2 - key: key2 - isOn: 0 - - text: item3 - key: key3 - isOn: 0 - itemsTextColor: {r: 0, g: 0, b: 0, a: 1} - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveValue: 0 - saveKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - items: - localizeResource: {fileID: 0} - textID: - - key1 - - key2 - - key3 - OnResult: - m_PersistentCalls: - m_Calls: [] - OnValueChanged: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114158075793037732 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1507299548175566} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SwitchDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SwitchDialogController.prefab.meta deleted file mode 100644 index c066b152..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/SwitchDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 2bcab1f6da893104e866cd77002b0c9b -timeCreated: 1516287802 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/TimePickerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/TimePickerController.prefab deleted file mode 100644 index 3ee276ad..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/TimePickerController.prefab +++ /dev/null @@ -1,51 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1853993092778992 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4394539148818612} - - component: {fileID: 114553412566883636} - m_Layer: 0 - m_Name: TimePickerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4394539148818612 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1853993092778992} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114553412566883636 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1853993092778992} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 50b3925ef07204945800a22808c44626, type: 3} - m_Name: - m_EditorClassIdentifier: - defaultTime: - resultTimeFormat: H:mm - style: android:Theme.DeviceDefault.Light.Dialog.Alert - OnResult: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/TimePickerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/TimePickerController.prefab.meta deleted file mode 100644 index c86ae065..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/TimePickerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: dfa2aae3aeb8fc045a96123f8c107129 -timeCreated: 1516265416 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/ToastController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/ToastController.prefab deleted file mode 100644 index f78fdd00..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/ToastController.prefab +++ /dev/null @@ -1,79 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1827153286813188 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4305392664864900} - - component: {fileID: 114727748950035100} - - component: {fileID: 114834602038418410} - m_Layer: 0 - m_Name: ToastController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4305392664864900 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1827153286813188} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114727748950035100 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1827153286813188} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4316387d07040284094307887ef41918, type: 3} - m_Name: - m_EditorClassIdentifier: - message: Message - longDuration: 0 - localize: - localizeResource: {fileID: 0} - messageID: message ---- !u!114 &114834602038418410 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1827153286813188} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/ToastController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/ToastController.prefab.meta deleted file mode 100644 index e215ff90..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/ToastController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 69c7a161ddf2e1a4fafbffbf44860215 -timeCreated: 1516184361 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/VolumeSliderDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/VolumeSliderDialogController.prefab deleted file mode 100644 index 87bb83fa..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/VolumeSliderDialogController.prefab +++ /dev/null @@ -1,621 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1028568683670996 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4291976483053610} - - component: {fileID: 82860222971164460} - m_Layer: 0 - m_Name: SourceBGM - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4291976483053610 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1028568683670996} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4360876691164066} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!82 &82860222971164460 -AudioSource: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1028568683670996} - m_Enabled: 1 - serializedVersion: 4 - OutputAudioMixerGroup: {fileID: 243468808771620966, guid: faad99234e6ed19498e6589573ee3e0c, - type: 2} - m_audioClip: {fileID: 8300000, guid: 98d9a6c8e50d65f4cac6b6d29f8e0479, type: 3} - m_PlayOnAwake: 0 - m_Volume: 1 - m_Pitch: 1 - Loop: 1 - Mute: 0 - Spatialize: 0 - SpatializePostEffects: 0 - Priority: 128 - DopplerLevel: 1 - MinDistance: 1 - MaxDistance: 500 - Pan2D: 0 - rolloffMode: 0 - BypassEffects: 0 - BypassListenerEffects: 0 - BypassReverbZones: 0 - rolloffCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - panLevelCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - spreadCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - reverbZoneMixCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 ---- !u!1 &1346527827833694 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4717783507831668} - - component: {fileID: 82290708331214906} - m_Layer: 0 - m_Name: SourceVoice - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4717783507831668 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1346527827833694} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4360876691164066} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!82 &82290708331214906 -AudioSource: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1346527827833694} - m_Enabled: 1 - serializedVersion: 4 - OutputAudioMixerGroup: {fileID: 243716415859447672, guid: faad99234e6ed19498e6589573ee3e0c, - type: 2} - m_audioClip: {fileID: 8300000, guid: 105f4b07e6b58524d828265157e6d6a8, type: 3} - m_PlayOnAwake: 0 - m_Volume: 1 - m_Pitch: 1 - Loop: 0 - Mute: 0 - Spatialize: 0 - SpatializePostEffects: 0 - Priority: 0 - DopplerLevel: 1 - MinDistance: 1 - MaxDistance: 500 - Pan2D: 0 - rolloffMode: 0 - BypassEffects: 0 - BypassListenerEffects: 0 - BypassReverbZones: 0 - rolloffCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - panLevelCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - spreadCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - reverbZoneMixCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 ---- !u!1 &1953055925347818 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4579293697636616} - - component: {fileID: 82114360297723678} - m_Layer: 0 - m_Name: SourceSE - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4579293697636616 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953055925347818} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4360876691164066} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!82 &82114360297723678 -AudioSource: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1953055925347818} - m_Enabled: 1 - serializedVersion: 4 - OutputAudioMixerGroup: {fileID: 243253227821054236, guid: faad99234e6ed19498e6589573ee3e0c, - type: 2} - m_audioClip: {fileID: 8300000, guid: 8e7ecc24c82d3f146afd881ef03af779, type: 3} - m_PlayOnAwake: 0 - m_Volume: 1 - m_Pitch: 1 - Loop: 0 - Mute: 0 - Spatialize: 0 - SpatializePostEffects: 0 - Priority: 256 - DopplerLevel: 1 - MinDistance: 1 - MaxDistance: 500 - Pan2D: 0 - rolloffMode: 0 - BypassEffects: 0 - BypassListenerEffects: 0 - BypassReverbZones: 0 - rolloffCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - panLevelCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - spreadCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - reverbZoneMixCustomCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 ---- !u!1 &1961863693481162 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4360876691164066} - - component: {fileID: 114506001774474828} - - component: {fileID: 114495162055079880} - - component: {fileID: 114260262930037726} - m_Layer: 0 - m_Name: VolumeSliderDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4360876691164066 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961863693481162} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4291976483053610} - - {fileID: 4717783507831668} - - {fileID: 4579293697636616} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114506001774474828 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961863693481162} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b3eaa184c8b1f0046b75690a7b943500, type: 3} - m_Name: - m_EditorClassIdentifier: - mixer: {fileID: 24100000, guid: faad99234e6ed19498e6589573ee3e0c, type: 2} - title: Sound Volume Setting - message: You can preview play by moving the slider. - itemTextColor: {r: 0, g: 0, b: 0, a: 1} - okButton: OK - cancelButton: Cancel - style: android:Theme.DeviceDefault.Light.Dialog.Alert - showToast: 1 - saveVolume: 1 - saveKey: - items: - - key: master - text: Master - source: {fileID: 0} - volume: 100 - - key: bgm - text: Music - source: {fileID: 82860222971164460} - volume: 50 - - key: se - text: Effect - source: {fileID: 82114360297723678} - volume: 50 - - key: voice - text: Voice - source: {fileID: 82290708331214906} - volume: 50 - localize: - localizeResource: {fileID: 114495162055079880} - titleID: title - messageID: message - okButtonID: okButton - cancelButtonID: cancelButton - items: - localizeResource: {fileID: 114260262930037726} - textID: - - master - - bgm - - se - - voice ---- !u!114 &114495162055079880 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961863693481162} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u97F3\u91CF\u306E\u8A2D\u5B9A" - fontSize: 0 - - language: 40 - text: "\u97F3\u91CF\u8BBE\u7F6E" - fontSize: 0 - - language: 23 - text: "\uBCFC\uB968 \uC124\uC815" - fontSize: 0 - - language: 10 - text: Sound Volume Setting - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30B9\u30E9\u30A4\u30C0\u30FC\u3092\u52D5\u304B\u3059\u3068\u30D7\u30EC\u30D3\u30E5\u30FC\u518D\u751F\u3067\u304D\u307E\u3059\u3002" - fontSize: 0 - - language: 40 - text: "\u60A8\u53EF\u4EE5\u901A\u8FC7\u79FB\u52A8\u6ED1\u5757\u6765\u9884\u89C8\u64AD\u653E\u3002" - fontSize: 0 - - language: 23 - text: "\uC2AC\uB77C\uC774\uB354\uB97C \uC6C0\uC9C1\uC774\uBA74 \uBBF8\uB9AC - \uC7AC\uC0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4." - fontSize: 0 - - language: 10 - text: You can preview play by moving the slider. - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uC2B9\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 ---- !u!114 &114260262930037726 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961863693481162} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: master - defaultLanguage: 10 - list: - - language: 22 - text: "\u30DE\u30B9\u30BF\u30FC" - fontSize: 0 - - language: 40 - text: "\u4E3B\u97F3\u91CF" - fontSize: 0 - - language: 23 - text: "\uB9C8\uC2A4\uD130 \uBCFC\uB968" - fontSize: 0 - - language: 10 - text: Master - fontSize: 0 - - id: bgm - defaultLanguage: 10 - list: - - language: 22 - text: "\u97F3\u697D" - fontSize: 0 - - language: 40 - text: "\u97F3\u4E50" - fontSize: 0 - - language: 23 - text: "\uC74C\uC545" - fontSize: 0 - - language: 10 - text: Music - fontSize: 0 - - id: se - defaultLanguage: 10 - list: - - language: 22 - text: "\u52B9\u679C\u97F3" - fontSize: 0 - - language: 40 - text: "\u97F3\u6548" - fontSize: 0 - - language: 23 - text: "\uD6A8\uACFC\uC74C" - fontSize: 0 - - language: 10 - text: Effect - fontSize: 0 - - id: voice - defaultLanguage: 10 - list: - - language: 22 - text: "\u30DC\u30A4\u30B9" - fontSize: 0 - - language: 40 - text: "\u58F0\u97F3" - fontSize: 0 - - language: 23 - text: "\uC74C\uC131" - fontSize: 0 - - language: 10 - text: Voice - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/VolumeSliderDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/VolumeSliderDialogController.prefab.meta deleted file mode 100644 index 67899deb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/VolumeSliderDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a3bc3378cdb1f8c4195a335983b1eec0 -timeCreated: 1511235486 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoDialogController.prefab deleted file mode 100644 index e4c9e1bf..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoDialogController.prefab +++ /dev/null @@ -1,138 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1553250605343006 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4042784956935798} - - component: {fileID: 114803153249299078} - - component: {fileID: 114301398157943608} - m_Layer: 0 - m_Name: YesNoDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4042784956935798 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1553250605343006} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114803153249299078 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1553250605343006} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3fd9af66fb0e06341b18740e113c16bf, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - yesButton: OK - yesValue: yes - noButton: Cancel - noValue: no - style: android:Theme.DeviceDefault.Light.Dialog.Alert - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - yesButtonID: yesButton - noButtonID: noButton - OnYes: - m_PersistentCalls: - m_Calls: [] - OnNo: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114301398157943608 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1553250605343006} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: yesButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u306F\u3044" - fontSize: 0 - - language: 40 - text: "\u662F" - fontSize: 0 - - language: 23 - text: "\uAE0D\uC815" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: noButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u3044\u3044\u3048" - fontSize: 0 - - language: 40 - text: "\u5426" - fontSize: 0 - - language: 23 - text: "\uBD80\uC815" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoDialogController.prefab.meta deleted file mode 100644 index c73760d8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a2eabe8f70a48f9438e400a9e04fdf4a -timeCreated: 1516184368 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoWithCheckBoxDialogController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoWithCheckBoxDialogController.prefab deleted file mode 100644 index 27f05c30..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoWithCheckBoxDialogController.prefab +++ /dev/null @@ -1,161 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1961339238457894 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4446004518368066} - - component: {fileID: 114923649441718438} - - component: {fileID: 114552799914657402} - m_Layer: 0 - m_Name: YesNoWithCheckBoxDialogController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4446004518368066 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961339238457894} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114923649441718438 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961339238457894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 625ed08a6429cb6499ab86ab599b95fd, type: 3} - m_Name: - m_EditorClassIdentifier: - title: Title - message: Message - yesButton: OK - yesValue: yes - noButton: Cancel - noValue: no - defaultChecked: 0 - checkBoxText: Remember me - checkBoxTextColor: {r: 0, g: 0, b: 0, a: 1} - style: android:Theme.DeviceDefault.Light.Dialog.Alert - saveChecked: 1 - saveCondition: 1 - saveCheckedKey: - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - yesButtonID: yesButton - noButtonID: noButton - checkBoxTextID: checkBoxText - OnYes: - m_PersistentCalls: - m_Calls: [] - OnNo: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114552799914657402 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1961339238457894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: yesButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u306F\u3044" - fontSize: 0 - - language: 40 - text: "\u662F" - fontSize: 0 - - language: 23 - text: "\uAE0D\uC815" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: noButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u3044\u3044\u3048" - fontSize: 0 - - language: 40 - text: "\u5426" - fontSize: 0 - - language: 23 - text: "\uBD80\uC815" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 - - id: checkBoxText - defaultLanguage: 10 - list: - - language: 22 - text: "\u4ECA\u5F8C\u3053\u306E\u30C0\u30A4\u30A2\u30ED\u30B0\u3092\u8868\u793A\u3057\u306A\u3044" - fontSize: 0 - - language: 40 - text: "\u4E0D\u518D\u663E\u793A\u6B64\u5BF9\u8BDD\u6846" - fontSize: 0 - - language: 23 - text: "\uC774 \uCC3D\uC744 \uC790\uB3D9\uC73C\uB85C \uD45C\uC2DC\uD558\uC9C0 - \uC54A\uAE30" - fontSize: 0 - - language: 10 - text: Remember me - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoWithCheckBoxDialogController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoWithCheckBoxDialogController.prefab.meta deleted file mode 100644 index 84718b8f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Dialogs/YesNoWithCheckBoxDialogController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 593a642ff8ed9bd4cb20cbc7f6aa278e -timeCreated: 1516184412 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input.meta deleted file mode 100644 index 4701b3f5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 69dc33b224483ea48a8f936411981489 -folderAsset: yes -timeCreated: 1524142834 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongClickInput.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongClickInput.prefab deleted file mode 100644 index 21490b10..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongClickInput.prefab +++ /dev/null @@ -1,64 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1412762603929622 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4297719058580398} - - component: {fileID: 114563722258887400} - m_Layer: 0 - m_Name: LongClickInput - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4297719058580398 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1412762603929622} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114563722258887400 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1412762603929622} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2c8c9ec0e6b7a78409122059591bf826, type: 3} - m_Name: - m_EditorClassIdentifier: - validTime: 1 - validArea: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - OnLongClick: - m_PersistentCalls: - m_Calls: [] - OnStart: - m_PersistentCalls: - m_Calls: [] - OnProgress: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongClickInput.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongClickInput.prefab.meta deleted file mode 100644 index 2068f3cd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongClickInput.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: dc4a7485f77891941b0b96d63fb9d10a -timeCreated: 1524143048 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongKeyInput.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongKeyInput.prefab deleted file mode 100644 index 86c890df..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongKeyInput.prefab +++ /dev/null @@ -1,59 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1398832149414884 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4962576389444154} - - component: {fileID: 114820227280559498} - m_Layer: 0 - m_Name: LongKeyInput - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4962576389444154 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1398832149414884} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114820227280559498 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1398832149414884} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a792c72836d1a924a8134b23bc4271f2, type: 3} - m_Name: - m_EditorClassIdentifier: - targetKey: 27 - validTime: 1.5 - OnLongPress: - m_PersistentCalls: - m_Calls: [] - OnStart: - m_PersistentCalls: - m_Calls: [] - OnProgress: - m_PersistentCalls: - m_Calls: [] - OnCancel: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongKeyInput.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongKeyInput.prefab.meta deleted file mode 100644 index 9606ebc7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/LongKeyInput.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 47e0a809376679948a1e9699179c2237 -timeCreated: 1524142847 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/PinchInput.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/PinchInput.prefab deleted file mode 100644 index a099c74c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/PinchInput.prefab +++ /dev/null @@ -1,59 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1487396290555884 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4547682171864638} - - component: {fileID: 114885817415989058} - m_Layer: 0 - m_Name: PinchInput - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4547682171864638 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1487396290555884} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114885817415989058 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1487396290555884} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89c0b1539c92b3246b52794a9a5f04d6, type: 3} - m_Name: - m_EditorClassIdentifier: - isNormalized: 1 - widthReference: 1 - validArea: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - OnPinchStart: - m_PersistentCalls: - m_Calls: [] - OnPinch: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/PinchInput.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/PinchInput.prefab.meta deleted file mode 100644 index 49e1f9eb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/PinchInput.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6fd5481168f01ad4fa50dc836908c06c -timeCreated: 1524143184 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/SwipeInput.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/SwipeInput.prefab deleted file mode 100644 index 97805d11..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/SwipeInput.prefab +++ /dev/null @@ -1,57 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1250034111265138 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4758394844634630} - - component: {fileID: 114750310485896100} - m_Layer: 0 - m_Name: SwipeInput - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4758394844634630 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1250034111265138} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114750310485896100 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1250034111265138} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d1ba0e164e7576941bdd322b6fcae977, type: 3} - m_Name: - m_EditorClassIdentifier: - widthReference: 1 - validWidth: 0.25 - timeout: 0.5 - validArea: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - OnSwipe: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/SwipeInput.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/SwipeInput.prefab.meta deleted file mode 100644 index a0d4f944..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Input/SwipeInput.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: df623f1d97c225d479b2e0771faf34d6 -timeCreated: 1524143466 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors.meta deleted file mode 100644 index 09a8470f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5070d296eeb28c84f96c664545adf13a -folderAsset: yes -timeCreated: 1520650536 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AccelerometerSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AccelerometerSensorController.prefab deleted file mode 100644 index 1a2780b8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AccelerometerSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1217979674118558 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4297035725906290} - - component: {fileID: 114418382357582470} - m_Layer: 0 - m_Name: AccelerometerSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4297035725906290 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1217979674118558} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114418382357582470 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1217979674118558} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7a9dd0569619ffd41af9cc0ee31107e4, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnAccelerometerSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AccelerometerSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AccelerometerSensorController.prefab.meta deleted file mode 100644 index 850ef5d8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AccelerometerSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ec309883d465d054c806e9ed3bea9c12 -timeCreated: 1520777765 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorAccelerometerUncalibrated.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorAccelerometerUncalibrated.prefab deleted file mode 100644 index 1f58c956..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorAccelerometerUncalibrated.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1740914273289964 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4763807286525708} - - component: {fileID: 114685179898274258} - m_Layer: 0 - m_Name: AndroidSensorAccelerometerUncalibrated - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4763807286525708 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1740914273289964} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114685179898274258 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1740914273289964} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 542b2de1fdfc4ee45b01e144a26a8a08, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorType: 35 - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorAccelerometerUncalibrated.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorAccelerometerUncalibrated.prefab.meta deleted file mode 100644 index c8779ed0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorAccelerometerUncalibrated.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 4f6b31dd8f50dea4aa490cfdcb3c4dd7 -timeCreated: 1520786431 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorController.prefab deleted file mode 100644 index 199c75ad..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorController.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1314809630484324 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4771262403175070} - - component: {fileID: 114508751261507324} - m_Layer: 0 - m_Name: AndroidSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4771262403175070 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314809630484324} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114508751261507324 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314809630484324} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 542b2de1fdfc4ee45b01e144a26a8a08, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorType: 0 - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorController.prefab.meta deleted file mode 100644 index 47187838..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0edc81d13fe8712409e8269e3793b898 -timeCreated: 1520650541 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorGyroscopeUncalibrated.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorGyroscopeUncalibrated.prefab deleted file mode 100644 index 6e5d942b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorGyroscopeUncalibrated.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1712936949935600 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4511313374883542} - - component: {fileID: 114053696076726426} - m_Layer: 0 - m_Name: AndroidSensorGyroscopeUncalibrated - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4511313374883542 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1712936949935600} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114053696076726426 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1712936949935600} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 542b2de1fdfc4ee45b01e144a26a8a08, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorType: 16 - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorGyroscopeUncalibrated.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorGyroscopeUncalibrated.prefab.meta deleted file mode 100644 index 97b648b0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorGyroscopeUncalibrated.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a0ba13d3e58272546bcf13df3d615e32 -timeCreated: 1520786628 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorIntController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorIntController.prefab deleted file mode 100644 index 66be89fe..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorIntController.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1362558184619024 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4464259473180202} - - component: {fileID: 114333438086068632} - m_Layer: 0 - m_Name: AndroidSensorIntController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4464259473180202 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1362558184619024} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114333438086068632 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1362558184619024} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a37b5770554641543a278d671cfc3c36, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorType: 0 - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorIntController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorIntController.prefab.meta deleted file mode 100644 index a72254ba..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorIntController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f41d281edbe9ee843ba4b98091e43c58 -timeCreated: 1520925774 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorMagneticFieldUncalibrated.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorMagneticFieldUncalibrated.prefab deleted file mode 100644 index d21afcb3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorMagneticFieldUncalibrated.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1736739429221296 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4829631662992274} - - component: {fileID: 114767935097630076} - m_Layer: 0 - m_Name: AndroidSensorMagneticFieldUncalibrated - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4829631662992274 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1736739429221296} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114767935097630076 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1736739429221296} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 542b2de1fdfc4ee45b01e144a26a8a08, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorType: 14 - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorMagneticFieldUncalibrated.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorMagneticFieldUncalibrated.prefab.meta deleted file mode 100644 index 6a2cf833..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorMagneticFieldUncalibrated.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8d31d1e7ec554514e970e005b5bb1f92 -timeCreated: 1520786555 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorPose6DOF.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorPose6DOF.prefab deleted file mode 100644 index 35bc363c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorPose6DOF.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1765701387123174 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4811478705821492} - - component: {fileID: 114359802456478930} - m_Layer: 0 - m_Name: AndroidSensorPose6DOF - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4811478705821492 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1765701387123174} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114359802456478930 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1765701387123174} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 542b2de1fdfc4ee45b01e144a26a8a08, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorType: 28 - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorPose6DOF.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorPose6DOF.prefab.meta deleted file mode 100644 index 914c7cb7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/AndroidSensorPose6DOF.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7e759a6d7d7388a4d9e76bf710b94dd8 -timeCreated: 1520786715 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GameRotationVectorSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GameRotationVectorSensorController.prefab deleted file mode 100644 index 9aff7f60..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GameRotationVectorSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1169479181754300 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4231330864483436} - - component: {fileID: 114654545090307984} - m_Layer: 0 - m_Name: GameRotationVectorSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4231330864483436 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1169479181754300} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114654545090307984 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1169479181754300} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b7d90e0c8b4e3784f8ec96a997027bf9, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnGameRotationVectorSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GameRotationVectorSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GameRotationVectorSensorController.prefab.meta deleted file mode 100644 index 7efa74a5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GameRotationVectorSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 81309436e0073674795e6afd8629dc00 -timeCreated: 1520782794 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GeomagneticRotationVectorSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GeomagneticRotationVectorSensorController.prefab deleted file mode 100644 index 9dcede39..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GeomagneticRotationVectorSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1255369732187370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4857325351271460} - - component: {fileID: 114685637982913318} - m_Layer: 0 - m_Name: GeomagneticRotationVectorSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4857325351271460 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1255369732187370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114685637982913318 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1255369732187370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 198928ee907f6a34f93caed4ce8713ef, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnGeomagneticRotationVectorSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GeomagneticRotationVectorSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GeomagneticRotationVectorSensorController.prefab.meta deleted file mode 100644 index ebfb474c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GeomagneticRotationVectorSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cbe0203a9b5f3574284e71a623e6431c -timeCreated: 1520786055 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GravitySensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GravitySensorController.prefab deleted file mode 100644 index a5cec85b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GravitySensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1737512125036958 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4361097097487710} - - component: {fileID: 114808497097714436} - m_Layer: 0 - m_Name: GravitySensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4361097097487710 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1737512125036958} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114808497097714436 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1737512125036958} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ce92e7e3bc4f7184fb0851ecc2dd95db, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnGravitySensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GravitySensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GravitySensorController.prefab.meta deleted file mode 100644 index b56e962a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GravitySensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: fea8ecd7e9b205849a6b814837b33e0d -timeCreated: 1520696403 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GyroscopeSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GyroscopeSensorController.prefab deleted file mode 100644 index 7ca64152..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GyroscopeSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1445003327322692 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4231672594183908} - - component: {fileID: 114442729046898328} - m_Layer: 0 - m_Name: GyroscopeSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4231672594183908 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1445003327322692} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114442729046898328 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1445003327322692} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6294585cd4ddc1741aa5f8d36046ce7a, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnGyroscopeSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GyroscopeSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GyroscopeSensorController.prefab.meta deleted file mode 100644 index 20ee4851..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/GyroscopeSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 043820c70521d4c429dacd9af138cb52 -timeCreated: 1520778923 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartBeatController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartBeatController.prefab deleted file mode 100644 index c9e8bde3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartBeatController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1485746132952486 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4207288800291838} - - component: {fileID: 114043872332749330} - m_Layer: 0 - m_Name: HeartBeatController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4207288800291838 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1485746132952486} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114043872332749330 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1485746132952486} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 17741491406e7424ea301287a6ed3959, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnHeartBeatSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartBeatController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartBeatController.prefab.meta deleted file mode 100644 index cde5294c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartBeatController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 454f33d5c41b4fe4d953601a5b86b36e -timeCreated: 1520834429 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartRateController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartRateController.prefab deleted file mode 100644 index e91e2ff3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartRateController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1932845482530626 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4983127049664540} - - component: {fileID: 114737970654480342} - m_Layer: 0 - m_Name: HeartRateController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4983127049664540 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1932845482530626} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114737970654480342 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1932845482530626} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62066dd17ab62bb4db77a5f93bc4a9ee, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnHeartRateSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartRateController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartRateController.prefab.meta deleted file mode 100644 index d853a1ae..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/HeartRateController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a4bfab95d04feb44681122f36042fc1c -timeCreated: 1520831870 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LightSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LightSensorController.prefab deleted file mode 100644 index 420c3bae..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LightSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1393021961482692 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4685875431725496} - - component: {fileID: 114201691581017852} - m_Layer: 0 - m_Name: LightSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4685875431725496 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393021961482692} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114201691581017852 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1393021961482692} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e9cbfbe96746d9049be72eb59b6ce2a5, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnLightSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LightSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LightSensorController.prefab.meta deleted file mode 100644 index 48bfe8bb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LightSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ce3fe2c6d4dff3b4aa4a3c2a0f34eb13 -timeCreated: 1520654448 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LinearAccelerationSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LinearAccelerationSensorController.prefab deleted file mode 100644 index 52932f58..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LinearAccelerationSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1083971882969054 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4043820105110702} - - component: {fileID: 114912722875781578} - m_Layer: 0 - m_Name: LinearAccelerationSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4043820105110702 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1083971882969054} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114912722875781578 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1083971882969054} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 530cffc07d427274984e88bb9a232db7, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnLinearAccelerationSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LinearAccelerationSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LinearAccelerationSensorController.prefab.meta deleted file mode 100644 index 20df52db..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LinearAccelerationSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cb9ca144c261f364eaa983248e67ff7f -timeCreated: 1520779678 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LowLatencyOffbodyDetectController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LowLatencyOffbodyDetectController.prefab deleted file mode 100644 index 069becf1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LowLatencyOffbodyDetectController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1892761111590612 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4178573309410312} - - component: {fileID: 114045600426223514} - m_Layer: 0 - m_Name: LowLatencyOffbodyDetectController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4178573309410312 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1892761111590612} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114045600426223514 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1892761111590612} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ad6ed76d43415be498a3ac1b0931ac38, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnLowLatencyOffbodyDetectSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LowLatencyOffbodyDetectController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LowLatencyOffbodyDetectController.prefab.meta deleted file mode 100644 index ed1b6638..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/LowLatencyOffbodyDetectController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ddc34a3402f441442adc6ccd8b5305e9 -timeCreated: 1520834436 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MagneticFieldSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MagneticFieldSensorController.prefab deleted file mode 100644 index 1e066b59..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MagneticFieldSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1803374163658834 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4518914858247368} - - component: {fileID: 114143160766208002} - m_Layer: 0 - m_Name: MagneticFieldSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4518914858247368 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1803374163658834} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114143160766208002 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1803374163658834} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 526aa87e208ea7a4795b32ee26c74733, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnMagneticFieldSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MagneticFieldSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MagneticFieldSensorController.prefab.meta deleted file mode 100644 index 3bb33d75..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MagneticFieldSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b43e02064e2cbd54197fa62cef5e6796 -timeCreated: 1520692937 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MotionDetectController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MotionDetectController.prefab deleted file mode 100644 index 7a098e81..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MotionDetectController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1882375262743448 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4816438662617744} - - component: {fileID: 114118349078210992} - m_Layer: 0 - m_Name: MotionDetectController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4816438662617744 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1882375262743448} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114118349078210992 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1882375262743448} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2fb00b0eeea65864d8e565b8b79bee8c, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnMotionDetectSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MotionDetectController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MotionDetectController.prefab.meta deleted file mode 100644 index 5d087f18..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/MotionDetectController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a80b5f680fbd28147b2205d6fc275c96 -timeCreated: 1520832971 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/OrientationSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/OrientationSensorController.prefab deleted file mode 100644 index 5c048dca..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/OrientationSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1963806121753160 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4136040741464880} - - component: {fileID: 114315916175373130} - m_Layer: 0 - m_Name: OrientationSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4136040741464880 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1963806121753160} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114315916175373130 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1963806121753160} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a4883f1ab198c4f4cb9330c332a970a9, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnOrientationSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/OrientationSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/OrientationSensorController.prefab.meta deleted file mode 100644 index 54e6f509..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/OrientationSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 24e91089d13f64041a97a1b3e3b3f911 -timeCreated: 1523115892 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/PressureSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/PressureSensorController.prefab deleted file mode 100644 index 9a6372c9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/PressureSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1275689163282222 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4233247058864010} - - component: {fileID: 114772458596187856} - m_Layer: 0 - m_Name: PressureSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4233247058864010 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1275689163282222} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114772458596187856 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1275689163282222} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3ff5fb43aa323bc4cb16915fbda8be81, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnPressureSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/PressureSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/PressureSensorController.prefab.meta deleted file mode 100644 index 55376846..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/PressureSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0909d5a4e0f6f7b4d843a8cf2badb305 -timeCreated: 1520694070 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/ProximitySensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/ProximitySensorController.prefab deleted file mode 100644 index 493be4ec..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/ProximitySensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1989343073868702 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4555063992104468} - - component: {fileID: 114197603473290170} - m_Layer: 0 - m_Name: ProximitySensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4555063992104468 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1989343073868702} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114197603473290170 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1989343073868702} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c0952be13e83757418e4a57cb38d1be7, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnProximitySensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/ProximitySensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/ProximitySensorController.prefab.meta deleted file mode 100644 index b40e5b84..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/ProximitySensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 657714f926d12514fbd65d50439a512b -timeCreated: 1520693480 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/RotationVectorSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/RotationVectorSensorController.prefab deleted file mode 100644 index aaff32df..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/RotationVectorSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1612815499198806 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4398045654497508} - - component: {fileID: 114286256294533620} - m_Layer: 0 - m_Name: RotationVectorSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4398045654497508 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1612815499198806} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114286256294533620 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1612815499198806} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 524de95c4b7504b4b9b7f92e9ec4f135, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnRotationVectorSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/RotationVectorSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/RotationVectorSensorController.prefab.meta deleted file mode 100644 index 3d1b059a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/RotationVectorSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 98ac141fa57992443a43450fdd923742 -timeCreated: 1520782790 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/SignificantMotionController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/SignificantMotionController.prefab deleted file mode 100644 index 4c514966..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/SignificantMotionController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1624798233938002 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4719474867897714} - - component: {fileID: 114907688866857152} - m_Layer: 0 - m_Name: SignificantMotionController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4719474867897714 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1624798233938002} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114907688866857152 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1624798233938002} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 745b1f833f6e1554f8d5ecb5563a9bb2, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnSignificantMotionSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/SignificantMotionController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/SignificantMotionController.prefab.meta deleted file mode 100644 index 91e080d0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/SignificantMotionController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5fb3970a201350b49a25356c09cca8f2 -timeCreated: 1520832981 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StationaryDetectController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StationaryDetectController.prefab deleted file mode 100644 index 574bf828..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StationaryDetectController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1836614873150164 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4736009561400458} - - component: {fileID: 114278417330618200} - m_Layer: 0 - m_Name: StationaryDetectController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4736009561400458 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1836614873150164} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114278417330618200 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1836614873150164} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6b6a334c18fdaf84f91589095022c947, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnStationaryDetectSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StationaryDetectController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StationaryDetectController.prefab.meta deleted file mode 100644 index e53c32bd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StationaryDetectController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7bf2f58384adbac4ebde9352e394c441 -timeCreated: 1520832976 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepCounterSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepCounterSensorController.prefab deleted file mode 100644 index 38cfa332..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepCounterSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1068937963186832 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4092279777875446} - - component: {fileID: 114862932887849230} - m_Layer: 0 - m_Name: StepCounterSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4092279777875446 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1068937963186832} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114862932887849230 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1068937963186832} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2312becb8fafd8149a8449a9ed7f2536, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnStepCounterSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepCounterSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepCounterSensorController.prefab.meta deleted file mode 100644 index 311874fa..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepCounterSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a0e78b2e14479dd4ba0c03f08db95716 -timeCreated: 1520655257 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepDetectorSensorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepDetectorSensorController.prefab deleted file mode 100644 index 097e1f57..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepDetectorSensorController.prefab +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1324055887587632 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4713479672524156} - - component: {fileID: 114765743266582708} - m_Layer: 0 - m_Name: StepDetectorSensorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4713479672524156 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1324055887587632} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114765743266582708 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1324055887587632} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e76359ef0213b274a92bd22574a56c8c, type: 3} - m_Name: - m_EditorClassIdentifier: - sensorDelay: 3 - startListeningOnEnable: 0 - OnSensorChanged: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnStepDetectorSensorChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepDetectorSensorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepDetectorSensorController.prefab.meta deleted file mode 100644 index 9a4c0967..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Sensors/StepDetectorSensorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9086553dbf2c392488ceea51f3d52d65 -timeCreated: 1520739960 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings.meta deleted file mode 100644 index 889f0413..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 389e63faa25b76c4ca68e1c0bf21a49b -folderAsset: yes -timeCreated: 1521198350 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAPNSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAPNSettings.prefab deleted file mode 100644 index 24bf2a8d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAPNSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1336558984492332 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4120088524972018} - - component: {fileID: 114131220189863390} - m_Layer: 0 - m_Name: AndroidAPNSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4120088524972018 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1336558984492332} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114131220189863390 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1336558984492332} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.APN_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAPNSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAPNSettings.prefab.meta deleted file mode 100644 index 2a9dac04..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAPNSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 950f3d7ae7806804994364f9667fd4c1 -timeCreated: 1521292040 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAccessibilitySettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAccessibilitySettings.prefab deleted file mode 100644 index f85d0b3d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAccessibilitySettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1276573349280164 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4990028320505774} - - component: {fileID: 114388292031816310} - m_Layer: 0 - m_Name: AndroidAccessibilitySettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4990028320505774 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1276573349280164} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114388292031816310 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1276573349280164} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.ACCESSIBILITY_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAccessibilitySettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAccessibilitySettings.prefab.meta deleted file mode 100644 index a22628dd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAccessibilitySettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7262f6d566d60f34c9dcb04b3525af11 -timeCreated: 1521200060 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAddAcountSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAddAcountSettings.prefab deleted file mode 100644 index c8164ba7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAddAcountSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1200929248648124 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4367871026273174} - - component: {fileID: 114048603653653598} - m_Layer: 0 - m_Name: AndroidAddAcountSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4367871026273174 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1200929248648124} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114048603653653598 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1200929248648124} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.ADD_ACCOUNT_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAddAcountSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAddAcountSettings.prefab.meta deleted file mode 100644 index 942531f8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAddAcountSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1354dab8042fc7c4fae96a89fabe1139 -timeCreated: 1521287390 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAirplaneModeSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAirplaneModeSettings.prefab deleted file mode 100644 index 1ba43789..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAirplaneModeSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1941378173083544 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4489501523487856} - - component: {fileID: 114446915159097654} - m_Layer: 0 - m_Name: AndroidAirplaneModeSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4489501523487856 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1941378173083544} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114446915159097654 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1941378173083544} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.AIRPLANE_MODE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAirplaneModeSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAirplaneModeSettings.prefab.meta deleted file mode 100644 index c84713e3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidAirplaneModeSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d7d1769bfbaf67c43a61ee2b27952b39 -timeCreated: 1521201058 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDetailsSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDetailsSettings.prefab deleted file mode 100644 index f4b8385b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDetailsSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1806593773495216 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4872330736048454} - - component: {fileID: 114159403590337738} - m_Layer: 0 - m_Name: AndroidApplicationDetailsSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4872330736048454 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1806593773495216} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114159403590337738 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1806593773495216} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.APPLICATION_DETAILS_SETTINGS - actionType: 0 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDetailsSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDetailsSettings.prefab.meta deleted file mode 100644 index 1bc4ee08..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDetailsSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a3d606da9dd8440409f06e58ed3de6ed -timeCreated: 1521200809 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDevelopmentSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDevelopmentSettings.prefab deleted file mode 100644 index fe009787..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDevelopmentSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1870080509166622 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4509870255060206} - - component: {fileID: 114820464230900880} - m_Layer: 0 - m_Name: AndroidApplicationDevelopmentSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4509870255060206 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870080509166622} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114820464230900880 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870080509166622} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.APPLICATION_DEVELOPMENT_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDevelopmentSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDevelopmentSettings.prefab.meta deleted file mode 100644 index 9e98e278..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationDevelopmentSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ad9fda9192d8ec747b12f1c352180fe7 -timeCreated: 1521201206 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationSettings.prefab deleted file mode 100644 index 72226e3f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1298025241789870 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4284879580292314} - - component: {fileID: 114565852274414554} - m_Layer: 0 - m_Name: AndroidApplicationSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4284879580292314 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1298025241789870} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114565852274414554 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1298025241789870} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.APPLICATION_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationSettings.prefab.meta deleted file mode 100644 index 17db0a30..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidApplicationSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 232908b01cfe8e241b3b4d9486a9a3c4 -timeCreated: 1521201391 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidBatterySaverSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidBatterySaverSettings.prefab deleted file mode 100644 index 0f80e913..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidBatterySaverSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1485329327023014 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4188095091648720} - - component: {fileID: 114234991604234014} - m_Layer: 0 - m_Name: AndroidBatterySaverSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4188095091648720 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1485329327023014} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114234991604234014 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1485329327023014} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.BATTERY_SAVER_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidBatterySaverSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidBatterySaverSettings.prefab.meta deleted file mode 100644 index 801e402a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidBatterySaverSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 38a894715a1c6ee40b022ad6a24a34d0 -timeCreated: 1521201740 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCaptioningSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCaptioningSettings.prefab deleted file mode 100644 index 4989afe6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCaptioningSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1944176472295846 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4283249562252486} - - component: {fileID: 114748362491201046} - m_Layer: 0 - m_Name: AndroidCaptioningSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4283249562252486 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1944176472295846} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114748362491201046 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1944176472295846} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.CAPTIONING_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCaptioningSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCaptioningSettings.prefab.meta deleted file mode 100644 index 4eaa099e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCaptioningSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8a640fdfeebf9a6418259dcb94c04162 -timeCreated: 1521292512 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCastSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCastSettings.prefab deleted file mode 100644 index b6f083a8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCastSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1727893756404434 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4427663721964404} - - component: {fileID: 114097256822329482} - m_Layer: 0 - m_Name: AndroidCastSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4427663721964404 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1727893756404434} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114097256822329482 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1727893756404434} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.CAST_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCastSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCastSettings.prefab.meta deleted file mode 100644 index 0483fd1a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidCastSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: fba506342e6e8354e9bbd5fe8556f214 -timeCreated: 1521292651 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDataRomingSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDataRomingSettings.prefab deleted file mode 100644 index 04b68b25..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDataRomingSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1302175957142278 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4355015702646346} - - component: {fileID: 114954111101411416} - m_Layer: 0 - m_Name: AndroidDataRomingSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4355015702646346 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1302175957142278} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114954111101411416 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1302175957142278} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.DATA_ROAMING_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDataRomingSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDataRomingSettings.prefab.meta deleted file mode 100644 index 85d94270..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDataRomingSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b9f5b3d0f7083d147967cb21e9e0a571 -timeCreated: 1521201888 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDateSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDateSettings.prefab deleted file mode 100644 index 48ab03af..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDateSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1806862580764364 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4618037939092516} - - component: {fileID: 114945966617024110} - m_Layer: 0 - m_Name: AndroidDateSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4618037939092516 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1806862580764364} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114945966617024110 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1806862580764364} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.DATE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDateSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDateSettings.prefab.meta deleted file mode 100644 index df099fdf..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDateSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8be6b5dde359ce24db7e35ebedcdfb38 -timeCreated: 1521198360 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDeviceInfoSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDeviceInfoSettings.prefab deleted file mode 100644 index d75709d3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDeviceInfoSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1415525843994290 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4240132724816768} - - component: {fileID: 114082571478524444} - m_Layer: 0 - m_Name: AndroidDeviceInfoSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4240132724816768 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1415525843994290} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114082571478524444 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1415525843994290} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.DEVICE_INFO_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDeviceInfoSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDeviceInfoSettings.prefab.meta deleted file mode 100644 index c933ae92..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDeviceInfoSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 869492be159b49542af1bc01443da86f -timeCreated: 1521202120 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDisplaySettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDisplaySettings.prefab deleted file mode 100644 index 6e83407c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDisplaySettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1675607792263102 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4663165784045144} - - component: {fileID: 114003141425382438} - m_Layer: 0 - m_Name: AndroidDisplaySettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4663165784045144 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1675607792263102} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114003141425382438 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1675607792263102} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.DISPLAY_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDisplaySettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDisplaySettings.prefab.meta deleted file mode 100644 index fe6a2b12..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDisplaySettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9e31408f483a04d418a2a64d14cdd397 -timeCreated: 1521198362 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDreamSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDreamSettings.prefab deleted file mode 100644 index 68cac4e4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDreamSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1478027425783914 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4402551733278988} - - component: {fileID: 114889051650791712} - m_Layer: 0 - m_Name: AndroidDreamSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4402551733278988 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1478027425783914} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114889051650791712 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1478027425783914} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.DREAM_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDreamSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDreamSettings.prefab.meta deleted file mode 100644 index 79c8cf2d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidDreamSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 55a4226106ee53346b8bbeb37ae9ff1b -timeCreated: 1521292850 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHardKeyboardSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHardKeyboardSettings.prefab deleted file mode 100644 index 9b53fab6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHardKeyboardSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1974831146334204 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4534578718296468} - - component: {fileID: 114053047024723052} - m_Layer: 0 - m_Name: AndroidHardKeyboardSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4534578718296468 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1974831146334204} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114053047024723052 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1974831146334204} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.HARD_KEYBOARD_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHardKeyboardSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHardKeyboardSettings.prefab.meta deleted file mode 100644 index 2c84f545..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHardKeyboardSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c5c96d3dfc46d3e41971d6bff36b4ef2 -timeCreated: 1521292972 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHomeSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHomeSettings.prefab deleted file mode 100644 index e92ff66e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHomeSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1717312112533234 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4761135954218738} - - component: {fileID: 114832845332630554} - m_Layer: 0 - m_Name: AndroidHomeSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4761135954218738 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1717312112533234} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114832845332630554 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1717312112533234} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.HOME_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHomeSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHomeSettings.prefab.meta deleted file mode 100644 index 4505ab62..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidHomeSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0f2323d8b1ee3a14d8f82d155ea82b53 -timeCreated: 1521293045 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBackgroundDataRestrictionsSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBackgroundDataRestrictionsSettings.prefab deleted file mode 100644 index cc889957..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBackgroundDataRestrictionsSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1243994128759864 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4337412657492498} - - component: {fileID: 114610179421400368} - m_Layer: 0 - m_Name: AndroidIgnoreBackgroundDataRestrictionsSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4337412657492498 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1243994128759864} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114610179421400368 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1243994128759864} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS - actionType: 0 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBackgroundDataRestrictionsSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBackgroundDataRestrictionsSettings.prefab.meta deleted file mode 100644 index 634379f2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBackgroundDataRestrictionsSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1e6e7dac72195b04b8d463aedbc3e529 -timeCreated: 1521293445 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBatteryOptimizationSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBatteryOptimizationSettings.prefab deleted file mode 100644 index 69bb7ba4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBatteryOptimizationSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1401975072489710 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4937489782774994} - - component: {fileID: 114831743558453732} - m_Layer: 0 - m_Name: AndroidIgnoreBatteryOptimizationSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4937489782774994 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1401975072489710} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114831743558453732 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1401975072489710} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBatteryOptimizationSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBatteryOptimizationSettings.prefab.meta deleted file mode 100644 index c3e39ecc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidIgnoreBatteryOptimizationSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: bba19e86ee429f645b7ac254ec919d65 -timeCreated: 1521296120 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSettings.prefab deleted file mode 100644 index 85ba6d09..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1122818579521332 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4807957350536156} - - component: {fileID: 114474189842138416} - m_Layer: 0 - m_Name: AndroidInputMethodSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4807957350536156 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1122818579521332} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114474189842138416 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1122818579521332} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.INPUT_METHOD_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSettings.prefab.meta deleted file mode 100644 index fdb64a08..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 56251a9d7959f41449d5688324ae7023 -timeCreated: 1521202387 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSubtypeSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSubtypeSettings.prefab deleted file mode 100644 index 8abcfd00..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSubtypeSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1645133795453126 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4031244543392772} - - component: {fileID: 114282093081384110} - m_Layer: 0 - m_Name: AndroidInputMethodSubtypeSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4031244543392772 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1645133795453126} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114282093081384110 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1645133795453126} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.INPUT_METHOD_SUBTYPE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSubtypeSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSubtypeSettings.prefab.meta deleted file mode 100644 index 9f2beb52..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInputMethodSubtypeSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ea84b27cb467619449053e3d9ec8fcd5 -timeCreated: 1521299090 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInternalStorageSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInternalStorageSettings.prefab deleted file mode 100644 index c7e9746e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInternalStorageSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1270478190049068 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4523590384911112} - - component: {fileID: 114004730751122032} - m_Layer: 0 - m_Name: AndroidInternalStorageSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4523590384911112 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1270478190049068} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114004730751122032 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1270478190049068} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.INTERNAL_STORAGE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInternalStorageSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInternalStorageSettings.prefab.meta deleted file mode 100644 index 22a7a506..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidInternalStorageSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c69f7351938026e40afe0129cf8208b7 -timeCreated: 1521202631 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocaleSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocaleSettings.prefab deleted file mode 100644 index 6b3d3d99..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocaleSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1146693065142488 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4880978940685166} - - component: {fileID: 114798396055040268} - m_Layer: 0 - m_Name: AndroidLocaleSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4880978940685166 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1146693065142488} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114798396055040268 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1146693065142488} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.LOCALE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocaleSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocaleSettings.prefab.meta deleted file mode 100644 index 74e3fe77..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocaleSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1a2ea6060dcb238479a0c00a44a7e41c -timeCreated: 1521253262 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocationSourceSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocationSourceSettings.prefab deleted file mode 100644 index 1987b652..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocationSourceSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1657804246950088 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4581853461268988} - - component: {fileID: 114518208263480178} - m_Layer: 0 - m_Name: AndroidLocationSourceSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4581853461268988 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1657804246950088} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114518208263480178 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1657804246950088} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.LOCATION_SOURCE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocationSourceSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocationSourceSettings.prefab.meta deleted file mode 100644 index 260494da..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidLocationSourceSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 96becdd47310196499d472127ab26056 -timeCreated: 1521205418 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageAllApplicationsSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageAllApplicationsSettings.prefab deleted file mode 100644 index 1bead82d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageAllApplicationsSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1391100080912186 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4953273570963656} - - component: {fileID: 114825483274522880} - m_Layer: 0 - m_Name: AndroidManageAllApplicationsSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4953273570963656 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391100080912186} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114825483274522880 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391100080912186} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.MANAGE_ALL_APPLICATIONS_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageAllApplicationsSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageAllApplicationsSettings.prefab.meta deleted file mode 100644 index dee10c29..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageAllApplicationsSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 646e2d10718a4bf468d7a23a7599cde3 -timeCreated: 1521300780 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageApplicationsSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageApplicationsSettings.prefab deleted file mode 100644 index f0f2b8dd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageApplicationsSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1765574814898854 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4467466585104966} - - component: {fileID: 114087014538340150} - m_Layer: 0 - m_Name: AndroidManageApplicationsSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4467466585104966 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1765574814898854} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114087014538340150 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1765574814898854} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.MANAGE_APPLICATIONS_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageApplicationsSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageApplicationsSettings.prefab.meta deleted file mode 100644 index ea48fcf5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageApplicationsSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 2a41acd0ca590d643a6dc909b15573cf -timeCreated: 1521300783 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageDefaultAppsSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageDefaultAppsSettings.prefab deleted file mode 100644 index 60ad1546..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageDefaultAppsSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1657382301140064 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4803612219059646} - - component: {fileID: 114892411474254520} - m_Layer: 0 - m_Name: AndroidManageDefaultAppsSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4803612219059646 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1657382301140064} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114892411474254520 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1657382301140064} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.MANAGE_DEFAULT_APPS_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageDefaultAppsSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageDefaultAppsSettings.prefab.meta deleted file mode 100644 index 447982ae..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageDefaultAppsSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 025d83b1e6006b940bf3cc0635dfb25f -timeCreated: 1521300787 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageNetworkUsage.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageNetworkUsage.prefab deleted file mode 100644 index 6c886d93..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageNetworkUsage.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1599882386895004 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4624848728415798} - - component: {fileID: 114767204510111724} - m_Layer: 0 - m_Name: AndroidManageNetworkUsage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4624848728415798 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1599882386895004} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114767204510111724 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1599882386895004} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.MANAGE_NETWORK_USAGE - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageNetworkUsage.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageNetworkUsage.prefab.meta deleted file mode 100644 index 3e9337d9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageNetworkUsage.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: eb0d853fbb7d0494294edcbf25cf6ec4 -timeCreated: 1521369953 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageOverlayPermission.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageOverlayPermission.prefab deleted file mode 100644 index debc3234..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageOverlayPermission.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1724896797352296 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4806661323046002} - - component: {fileID: 114288207545430290} - m_Layer: 0 - m_Name: AndroidManageOverlayPermission - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4806661323046002 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724896797352296} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114288207545430290 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724896797352296} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.action.MANAGE_OVERLAY_PERMISSION - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageOverlayPermission.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageOverlayPermission.prefab.meta deleted file mode 100644 index 445642c3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageOverlayPermission.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d222de99944844344b4b63fdb11345c6 -timeCreated: 1521300928 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageWriteSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageWriteSettings.prefab deleted file mode 100644 index 7d60e4cb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageWriteSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1264521247275944 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4250160141577040} - - component: {fileID: 114386842423332752} - m_Layer: 0 - m_Name: AndroidManageWriteSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4250160141577040 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1264521247275944} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114386842423332752 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1264521247275944} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.action.MANAGE_WRITE_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: package:com.Company.ProductName - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageWriteSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageWriteSettings.prefab.meta deleted file mode 100644 index 1368e9fc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidManageWriteSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c196a436205bc8144ac0b89e7e3cbd48 -timeCreated: 1521304834 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidMemoryCardSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidMemoryCardSettings.prefab deleted file mode 100644 index 75c79d38..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidMemoryCardSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1695847867107232 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4073465269359396} - - component: {fileID: 114854792126644176} - m_Layer: 0 - m_Name: AndroidMemoryCardSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4073465269359396 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1695847867107232} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114854792126644176 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1695847867107232} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.MEMORY_CARD_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidMemoryCardSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidMemoryCardSettings.prefab.meta deleted file mode 100644 index d4d9dbf8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidMemoryCardSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 682332ccd8f31f64f82cf1966ca78179 -timeCreated: 1521305108 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCPaymentSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCPaymentSettings.prefab deleted file mode 100644 index cb3f0b19..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCPaymentSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1394337352566946 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4535784200890500} - - component: {fileID: 114708647435500234} - m_Layer: 0 - m_Name: AndroidNFCPaymentSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4535784200890500 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1394337352566946} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114708647435500234 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1394337352566946} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.NFC_PAYMENT_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCPaymentSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCPaymentSettings.prefab.meta deleted file mode 100644 index 9a2af43b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCPaymentSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 398d2ca8d24c5204cb7bb257a89f2544 -timeCreated: 1521305300 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSettings.prefab deleted file mode 100644 index f9ee3a58..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1670665709869078 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4988221917068032} - - component: {fileID: 114569360168339872} - m_Layer: 0 - m_Name: AndroidNFCSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4988221917068032 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1670665709869078} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114569360168339872 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1670665709869078} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.NFC_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSettings.prefab.meta deleted file mode 100644 index 20687324..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8090f650cee1a6644ada0120625cb917 -timeCreated: 1521305360 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSharingSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSharingSettings.prefab deleted file mode 100644 index e34c8672..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSharingSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1321151051001898 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4590094011548616} - - component: {fileID: 114918287309669224} - m_Layer: 0 - m_Name: AndroidNFCSharingSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4590094011548616 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1321151051001898} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114918287309669224 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1321151051001898} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.NFCSHARING_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSharingSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSharingSettings.prefab.meta deleted file mode 100644 index 2bf927dc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNFCSharingSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 99a31dc9be8e40a438c7f51635d2cdff -timeCreated: 1521206379 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNetworkOperatorSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNetworkOperatorSettings.prefab deleted file mode 100644 index 15dbaa6f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNetworkOperatorSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1254936773064988 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4580968488488554} - - component: {fileID: 114042315478553816} - m_Layer: 0 - m_Name: AndroidNetworkOperatorSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4580968488488554 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1254936773064988} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114042315478553816 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1254936773064988} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.NETWORK_OPERATOR_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNetworkOperatorSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNetworkOperatorSettings.prefab.meta deleted file mode 100644 index 9ce3d392..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNetworkOperatorSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 48c3cf3d247a6bf438d421ed4c378bdd -timeCreated: 1521305111 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationListenerSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationListenerSettings.prefab deleted file mode 100644 index 70a7a5f9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationListenerSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1654933046190968 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4497302022795742} - - component: {fileID: 114831483385068178} - m_Layer: 0 - m_Name: AndroidNotificationListenerSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4497302022795742 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1654933046190968} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114831483385068178 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1654933046190968} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationListenerSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationListenerSettings.prefab.meta deleted file mode 100644 index 792d815e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationListenerSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e8f5c54b21c67eb4fb41d7f0e506ba3d -timeCreated: 1521306195 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationPolicyAccessSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationPolicyAccessSettings.prefab deleted file mode 100644 index 9d470b97..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationPolicyAccessSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1363710585897602 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4312764657916644} - - component: {fileID: 114442165415624990} - m_Layer: 0 - m_Name: AndroidNotificationPolicyAccessSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4312764657916644 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1363710585897602} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114442165415624990 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1363710585897602} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.NOTIFICATION_POLICY_ACCESS_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationPolicyAccessSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationPolicyAccessSettings.prefab.meta deleted file mode 100644 index dd915c66..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidNotificationPolicyAccessSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1dcfb503162362b4b8a00c53d5306e32 -timeCreated: 1521306201 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPowerUsageSummary.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPowerUsageSummary.prefab deleted file mode 100644 index 3d0cb0ff..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPowerUsageSummary.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1242770989924342 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4090099911991970} - - component: {fileID: 114481451055362334} - m_Layer: 0 - m_Name: AndroidPowerUsageSummary - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4090099911991970 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1242770989924342} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114481451055362334 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1242770989924342} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.POWER_USAGE_SUMMARY - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPowerUsageSummary.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPowerUsageSummary.prefab.meta deleted file mode 100644 index 11070634..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPowerUsageSummary.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7813cb48c46d18742b732f0c717c57aa -timeCreated: 1522504383 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrintSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrintSettings.prefab deleted file mode 100644 index aa0305f3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrintSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1199250495762700 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4034135402862542} - - component: {fileID: 114236086682729994} - m_Layer: 0 - m_Name: AndroidPrintSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4034135402862542 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1199250495762700} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114236086682729994 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1199250495762700} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.ACTION_PRINT_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrintSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrintSettings.prefab.meta deleted file mode 100644 index db98549f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrintSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0872f11c32d788449bc8918199bba29a -timeCreated: 1521306205 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrivacySettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrivacySettings.prefab deleted file mode 100644 index 01e0e7d2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrivacySettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1556728946884800 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4463017660654822} - - component: {fileID: 114105709497247972} - m_Layer: 0 - m_Name: AndroidPrivacySettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4463017660654822 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1556728946884800} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114105709497247972 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1556728946884800} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.PRIVACY_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrivacySettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrivacySettings.prefab.meta deleted file mode 100644 index 555dbc24..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidPrivacySettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 880749407881b3744b1b3a9b120a9f19 -timeCreated: 1521206812 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSearchSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSearchSettings.prefab deleted file mode 100644 index a89a71d9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSearchSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1868590299900834 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4892484954656352} - - component: {fileID: 114601316408660588} - m_Layer: 0 - m_Name: AndroidSearchSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4892484954656352 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1868590299900834} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114601316408660588 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1868590299900834} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.search.action.SEARCH_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSearchSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSearchSettings.prefab.meta deleted file mode 100644 index 065b69de..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSearchSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: bad56814b7c7f2d46928f167f6b5b752 -timeCreated: 1521207047 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSecuritySettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSecuritySettings.prefab deleted file mode 100644 index 5cd0e006..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSecuritySettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1495070611387838 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4866513848017576} - - component: {fileID: 114899260645335088} - m_Layer: 0 - m_Name: AndroidSecuritySettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4866513848017576 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1495070611387838} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114899260645335088 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1495070611387838} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.SECURITY_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSecuritySettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSecuritySettings.prefab.meta deleted file mode 100644 index b046911b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSecuritySettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cccd6bcff167e5040a7428f5e5539a6b -timeCreated: 1521207182 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSetWallpaper.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSetWallpaper.prefab deleted file mode 100644 index f18e5d76..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSetWallpaper.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1870118895034586 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4499941443144108} - - component: {fileID: 114094951498733494} - m_Layer: 0 - m_Name: AndroidSetWallpaper - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4499941443144108 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870118895034586} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114094951498733494 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1870118895034586} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.SET_WALLPAPER - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSetWallpaper.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSetWallpaper.prefab.meta deleted file mode 100644 index 7167595a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSetWallpaper.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d7263f4ee4fe05a49a84ec78b55eb9e1 -timeCreated: 1521370194 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSettings.prefab deleted file mode 100644 index b56bf458..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1356054814760636 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4183493217812366} - - component: {fileID: 114122905309660586} - m_Layer: 0 - m_Name: AndroidSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4183493217812366 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1356054814760636} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114122905309660586 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1356054814760636} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSettings.prefab.meta deleted file mode 100644 index 267266a5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8d74de49dc116d04c93d9dbab8f82736 -timeCreated: 1521199205 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSoundSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSoundSettings.prefab deleted file mode 100644 index 7cf6e815..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSoundSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1469343089370330 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4182828198793268} - - component: {fileID: 114217008247933124} - m_Layer: 0 - m_Name: AndroidSoundSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4182828198793268 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1469343089370330} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114217008247933124 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1469343089370330} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.SOUND_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSoundSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSoundSettings.prefab.meta deleted file mode 100644 index ef04173c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSoundSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 3bee11121cd822047941343facc2e8d8 -timeCreated: 1521199368 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSyncSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSyncSettings.prefab deleted file mode 100644 index 5a98cdb2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSyncSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1335142294546712 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4911115854109822} - - component: {fileID: 114149010897453940} - m_Layer: 0 - m_Name: AndroidSyncSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4911115854109822 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1335142294546712} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114149010897453940 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1335142294546712} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.SYNC_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSyncSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSyncSettings.prefab.meta deleted file mode 100644 index 2151eebf..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidSyncSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9df4ad0ba5e993c448d7fb41a94f2300 -timeCreated: 1521362371 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidUserDictionarySettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidUserDictionarySettings.prefab deleted file mode 100644 index b3eaa8dd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidUserDictionarySettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1391702030727848 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4141207180999046} - - component: {fileID: 114711718806824976} - m_Layer: 0 - m_Name: AndroidUserDictionarySettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4141207180999046 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391702030727848} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114711718806824976 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391702030727848} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.USER_DICTIONARY_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidUserDictionarySettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidUserDictionarySettings.prefab.meta deleted file mode 100644 index 9e2f96f7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidUserDictionarySettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 53c94320f83e44548863ef0fd53a4d8d -timeCreated: 1521207557 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVPNSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVPNSettings.prefab deleted file mode 100644 index 7b036eca..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVPNSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1461146854597602 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4573080482010220} - - component: {fileID: 114569257005558516} - m_Layer: 0 - m_Name: AndroidVPNSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4573080482010220 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1461146854597602} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114569257005558516 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1461146854597602} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.VPN_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVPNSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVPNSettings.prefab.meta deleted file mode 100644 index 3ddb702d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVPNSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f32968388629a584eb0a109c60b4f9c8 -timeCreated: 1521363509 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVRListenerSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVRListenerSettings.prefab deleted file mode 100644 index 441e8fff..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVRListenerSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1848476614629186 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4772715908468528} - - component: {fileID: 114562374391436604} - m_Layer: 0 - m_Name: AndroidVRListenerSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4772715908468528 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1848476614629186} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114562374391436604 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1848476614629186} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.VR_LISTENER_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVRListenerSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVRListenerSettings.prefab.meta deleted file mode 100644 index 344ea8c2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVRListenerSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cbc510305c409bd419bf749e3bbb05df -timeCreated: 1521363628 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVoiceInputSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVoiceInputSettings.prefab deleted file mode 100644 index f25a5a9c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVoiceInputSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1976270051410118 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4232385365799752} - - component: {fileID: 114731055772788274} - m_Layer: 0 - m_Name: AndroidVoiceInputSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4232385365799752 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1976270051410118} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114731055772788274 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1976270051410118} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.VOICE_INPUT_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVoiceInputSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVoiceInputSettings.prefab.meta deleted file mode 100644 index 81ca52a7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidVoiceInputSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9c787889306b08d48b009c1a0274fc20 -timeCreated: 1521199711 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWebviewSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWebviewSettings.prefab deleted file mode 100644 index c1433681..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWebviewSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1014528043399194 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4817440360479230} - - component: {fileID: 114852060117709698} - m_Layer: 0 - m_Name: AndroidWebviewSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4817440360479230 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1014528043399194} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114852060117709698 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1014528043399194} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.WEBVIEW_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWebviewSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWebviewSettings.prefab.meta deleted file mode 100644 index e2efd94c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWebviewSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7f36d95088a503d498eeccfe76376add -timeCreated: 1521363782 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiIPSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiIPSettings.prefab deleted file mode 100644 index 47acaf49..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiIPSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1076786529246104 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4272767668912788} - - component: {fileID: 114113480782085426} - m_Layer: 0 - m_Name: AndroidWifiIPSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4272767668912788 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1076786529246104} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114113480782085426 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1076786529246104} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.WIFI_IP_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiIPSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiIPSettings.prefab.meta deleted file mode 100644 index c3169080..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiIPSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9daa634125f832f4596c27626b00097e -timeCreated: 1521208000 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiSettings.prefab deleted file mode 100644 index f406f995..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1230859047740112 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4866515131586646} - - component: {fileID: 114572820090261012} - m_Layer: 0 - m_Name: AndroidWifiSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4866515131586646 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1230859047740112} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114572820090261012 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1230859047740112} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.WIFI_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiSettings.prefab.meta deleted file mode 100644 index 79695e79..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWifiSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 200bf25ef93efa9469a289932a2d39bd -timeCreated: 1521207868 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWirelessSettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWirelessSettings.prefab deleted file mode 100644 index 1eea51ed..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWirelessSettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1004663915369676 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4425723196714688} - - component: {fileID: 114416957729479526} - m_Layer: 0 - m_Name: AndroidWirelessSettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4425723196714688 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1004663915369676} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114416957729479526 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1004663915369676} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.WIRELESS_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWirelessSettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWirelessSettings.prefab.meta deleted file mode 100644 index c13bc0aa..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidWirelessSettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 556ad867b862c7249a70228ed89b2a5d -timeCreated: 1521199871 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidZenModePrioritySettings.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidZenModePrioritySettings.prefab deleted file mode 100644 index 4115e56b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidZenModePrioritySettings.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1667680855225790 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4852008744147064} - - component: {fileID: 114460683519844756} - m_Layer: 0 - m_Name: AndroidZenModePrioritySettings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4852008744147064 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1667680855225790} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114460683519844756 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1667680855225790} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.settings.ZEN_MODE_PRIORITY_SETTINGS - actionType: -1 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidZenModePrioritySettings.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidZenModePrioritySettings.prefab.meta deleted file mode 100644 index 7f726f1b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/AndroidZenModePrioritySettings.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b26276daa6a9c9947af55914b7407f73 -timeCreated: 1521364638 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ApplicationDetailsSettingsController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ApplicationDetailsSettingsController.prefab deleted file mode 100644 index f9fe9f42..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ApplicationDetailsSettingsController.prefab +++ /dev/null @@ -1,45 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1891933888668108 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4645154972602732} - - component: {fileID: 114537673241807056} - m_Layer: 0 - m_Name: ApplicationDetailsSettingsController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4645154972602732 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1891933888668108} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114537673241807056 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1891933888668108} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 67f1812629a627a44bdc6078509a14a5, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ApplicationDetailsSettingsController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ApplicationDetailsSettingsController.prefab.meta deleted file mode 100644 index 253a7720..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ApplicationDetailsSettingsController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c304435206d6bcb43bd9a9896fed3373 -timeCreated: 1521214195 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/BluetoothSettingController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/BluetoothSettingController.prefab deleted file mode 100644 index 78ba928a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/BluetoothSettingController.prefab +++ /dev/null @@ -1,51 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1731320672358256 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4131673622231270} - - component: {fileID: 114150006702476252} - m_Layer: 0 - m_Name: BluetoothSettingController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4131673622231270 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1731320672358256} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114150006702476252 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1731320672358256} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8c8021efc7b9db04986d423381cbbb39, type: 3} - m_Name: - m_EditorClassIdentifier: - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/BluetoothSettingController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/BluetoothSettingController.prefab.meta deleted file mode 100644 index fa1573e8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/BluetoothSettingController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1ff50b3df47bd4e4cbdef3609ce2740a -timeCreated: 1518189303 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/IgnoreBackgroundDataRestrictionsSettingsController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/IgnoreBackgroundDataRestrictionsSettingsController.prefab deleted file mode 100644 index 6ef00a41..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/IgnoreBackgroundDataRestrictionsSettingsController.prefab +++ /dev/null @@ -1,45 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1612166192544424 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4204939247534364} - - component: {fileID: 114478821113772412} - m_Layer: 0 - m_Name: IgnoreBackgroundDataRestrictionsSettingsController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4204939247534364 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1612166192544424} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114478821113772412 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1612166192544424} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 74626c10e616ad04bbc79c18b3f22b96, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/IgnoreBackgroundDataRestrictionsSettingsController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/IgnoreBackgroundDataRestrictionsSettingsController.prefab.meta deleted file mode 100644 index 1a8039b1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/IgnoreBackgroundDataRestrictionsSettingsController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 172fe7bc6183d534abf73f8184d6373e -timeCreated: 1521295842 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageOverlayPermissionController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageOverlayPermissionController.prefab deleted file mode 100644 index fb04298a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageOverlayPermissionController.prefab +++ /dev/null @@ -1,46 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1669983955174520 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4968906928502146} - - component: {fileID: 114698222066559116} - m_Layer: 0 - m_Name: ManageOverlayPermissionController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4968906928502146 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1669983955174520} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114698222066559116 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1669983955174520} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 77627b03b61414848b49d661bf04ac21, type: 3} - m_Name: - m_EditorClassIdentifier: - thisApp: 1 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageOverlayPermissionController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageOverlayPermissionController.prefab.meta deleted file mode 100644 index b952d882..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageOverlayPermissionController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6ae4fe0c9f4e6e242bc7d259fdf6719a -timeCreated: 1521301238 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageWriteController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageWriteController.prefab deleted file mode 100644 index faee1515..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageWriteController.prefab +++ /dev/null @@ -1,46 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1208342582447244 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4093081034754112} - - component: {fileID: 114287331090630128} - m_Layer: 0 - m_Name: ManageWriteController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4093081034754112 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1208342582447244} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114287331090630128 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1208342582447244} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9e6b1c266fadebf458da0e138c11024b, type: 3} - m_Name: - m_EditorClassIdentifier: - thisApp: 1 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageWriteController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageWriteController.prefab.meta deleted file mode 100644 index 420556b2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/ManageWriteController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 3b33514bed0971b4f9127644908ad70e -timeCreated: 1521304840 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/WifiSettingController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/WifiSettingController.prefab deleted file mode 100644 index 46796751..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/WifiSettingController.prefab +++ /dev/null @@ -1,52 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1523699691090790 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4335795546133566} - - component: {fileID: 114853341119430292} - m_Layer: 0 - m_Name: WifiSettingController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4335795546133566 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1523699691090790} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114853341119430292 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1523699691090790} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9dd2821efa4573f4cb459c547e9a148c, type: 3} - m_Name: - m_EditorClassIdentifier: - ignoreReachableViaLocalAreaNetwork: 1 - OnClose: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/WifiSettingController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/WifiSettingController.prefab.meta deleted file mode 100644 index d713b240..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/Settings/WifiSettingController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e2c8facba0025ee4a913ec1411b57164 -timeCreated: 1518187915 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System.meta deleted file mode 100644 index 1b38dd76..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 82a7020076a9f3c47a6e37f58d1e8ffe -folderAsset: yes -timeCreated: 1506590690 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidActionControlloer.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidActionControlloer.prefab deleted file mode 100644 index fdbced1d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidActionControlloer.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1159617703586242 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4375255296446770} - - component: {fileID: 114533215855072872} - m_Layer: 0 - m_Name: AndroidActionControlloer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4375255296446770 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1159617703586242} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114533215855072872 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1159617703586242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.VIEW - actionType: 0 - title: Select the application to share this text. - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidActionControlloer.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidActionControlloer.prefab.meta deleted file mode 100644 index 8c66b0b5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidActionControlloer.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ac1e55f6777529b4ea1bdd22c74c931c -timeCreated: 1516542289 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchDialer.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchDialer.prefab deleted file mode 100644 index 961d35ed..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchDialer.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1431789166259152 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4341527428153176} - - component: {fileID: 114132495623382868} - m_Layer: 0 - m_Name: AndroidLaunchDialer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4341527428153176 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1431789166259152} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114132495623382868 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1431789166259152} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.DIAL - actionType: 0 - title: Select the application to share this text. - uri: tel:0123456789 - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchDialer.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchDialer.prefab.meta deleted file mode 100644 index 16436a38..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchDialer.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f68ada05f7a456344b6894c720f4a0a3 -timeCreated: 1521368439 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchMailer.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchMailer.prefab deleted file mode 100644 index b670572f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchMailer.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1583314096116240 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4559958427999492} - - component: {fileID: 114449960301288866} - m_Layer: 0 - m_Name: AndroidLaunchMailer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4559958427999492 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1583314096116240} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114449960301288866 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1583314096116240} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.SENDTO - actionType: 0 - title: - uri: mailto:xxx@example.com?subject=Title&body=Message - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchMailer.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchMailer.prefab.meta deleted file mode 100644 index 77a54ee8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidLaunchMailer.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 494c1e3d789f5fc46b26b05a89ebd0f7 -timeCreated: 1516543659 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenMap.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenMap.prefab deleted file mode 100644 index 74eee8ac..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenMap.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1589695082943476 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4892537302317946} - - component: {fileID: 114038809066921326} - m_Layer: 0 - m_Name: AndroidOpenMap - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4892537302317946 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1589695082943476} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114038809066921326 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1589695082943476} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.VIEW - actionType: 0 - title: - uri: geo:37.7749,-122.4194?q=restaurants - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenMap.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenMap.prefab.meta deleted file mode 100644 index 404958db..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenMap.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 67f91b5caadc0fb40a6329b346f9e2ed -timeCreated: 1516543646 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenStreetView.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenStreetView.prefab deleted file mode 100644 index f269edd6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenStreetView.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1527768412029662 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4964312510034980} - - component: {fileID: 114362321841012180} - m_Layer: 0 - m_Name: AndroidOpenStreetView - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4964312510034980 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1527768412029662} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114362321841012180 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1527768412029662} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.VIEW - actionType: 0 - title: - uri: google.streetview:cbll=29.9774614,31.1329645&cbp=0,30,0,0,-15 - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenStreetView.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenStreetView.prefab.meta deleted file mode 100644 index 52947147..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenStreetView.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 05ccfb7f6a6dd7349a63b9ff4665ed6f -timeCreated: 1516543650 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenURL.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenURL.prefab deleted file mode 100644 index a5d5f44c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenURL.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1736264469668794 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4908364987284824} - - component: {fileID: 114216048994556664} - m_Layer: 0 - m_Name: AndroidOpenURL - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4908364987284824 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1736264469668794} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114216048994556664 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1736264469668794} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.VIEW - actionType: 0 - title: - uri: http://fantom1x.blog130.fc2.com/ - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenURL.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenURL.prefab.meta deleted file mode 100644 index 4f70fd69..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidOpenURL.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: da96323909072ba40910c2977ff9d935 -timeCreated: 1516543641 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidPluginRelease.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidPluginRelease.prefab deleted file mode 100644 index ed69d2b4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidPluginRelease.prefab +++ /dev/null @@ -1,48 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1880244399252162 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4845850749988692} - - component: {fileID: 114966132230551956} - m_Layer: 0 - m_Name: AndroidPluginRelease - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4845850749988692 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1880244399252162} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114966132230551956 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1880244399252162} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f3368b5f1f2c4a1409b1f184b5d9e7eb, type: 3} - m_Name: - m_EditorClassIdentifier: - releaseOnDisable: 0 - releaseOnDestroy: 0 - releaseOnQuit: 1 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidPluginRelease.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidPluginRelease.prefab.meta deleted file mode 100644 index 21cf0bd7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidPluginRelease.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d8e2c605935ede7468b263913190e84a -timeCreated: 1516184372 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidSendText.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidSendText.prefab deleted file mode 100644 index 5d8bf93a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidSendText.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1087669680460302 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4817504370293352} - - component: {fileID: 114912529240487694} - m_Layer: 0 - m_Name: AndroidSendText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4817504370293352 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1087669680460302} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114912529240487694 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1087669680460302} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.SEND - actionType: 2 - title: Select the application to share this text. - uri: file:// - extra: android.intent.extra.TEXT - query: Message - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidSendText.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidSendText.prefab.meta deleted file mode 100644 index d6761714..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidSendText.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 017d7514dd924a14e83d28d07f6e8dda -timeCreated: 1518262100 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidShowCallButton.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidShowCallButton.prefab deleted file mode 100644 index 2e39d195..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidShowCallButton.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1722318736332238 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4286099467425256} - - component: {fileID: 114009028805693214} - m_Layer: 0 - m_Name: AndroidShowCallButton - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4286099467425256 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1722318736332238} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114009028805693214 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1722318736332238} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dd85558adcbd7c740a9624afcd3d269b, type: 3} - m_Name: - m_EditorClassIdentifier: - action: android.intent.action.CALL_BUTTON - actionType: -1 - title: Select the application to share this text. - uri: - extra: query - query: keyword - mimetype: text/plain - addExtras: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidShowCallButton.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidShowCallButton.prefab.meta deleted file mode 100644 index 8edc0d43..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AndroidShowCallButton.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6f01d7dc368ba214c8e2eb471131a975 -timeCreated: 1521368437 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppExitWithToast.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppExitWithToast.prefab deleted file mode 100644 index 54cb7987..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppExitWithToast.prefab +++ /dev/null @@ -1,120 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1098091840613254 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4516304205941978} - - component: {fileID: 114185630353597554} - m_Layer: 0 - m_Name: AppExitWithToast - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4516304205941978 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1098091840613254} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114185630353597554 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1098091840613254} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3bf6e915898f0ff45bf6e3eb139d0635, type: 3} - m_Name: - m_EditorClassIdentifier: - enableKey: 1 - exitKey: 27 - oneMoreConfirm: 1 - oneMoreDuration: 3 - exitDelay: 0 - OnFirstPressed: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114185630353597554} - m_TargetAssemblyTypeName: - m_MethodName: ShowOneMoreToast - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnSecondPressed: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114185630353597554} - m_TargetAssemblyTypeName: - m_MethodName: ShowExitToast - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnBeforeDelay: - m_PersistentCalls: - m_Calls: [] - OnBeforeExit: - m_PersistentCalls: - m_Calls: [] - showOneMoreMessage: 1 - oneMoreMessage: - id: - defaultLanguage: 10 - list: - - language: 22 - text: "\u3082\u3046\u4E00\u5EA6\u62BC\u3059\u3068\u7D42\u4E86\u3057\u307E\u3059\u3002" - fontSize: 14 - - language: 10 - text: Press again to exit. - fontSize: 14 - - language: 40 - text: "\u518D\u6B21\u6309\u4E0B\u5373\u53EF\u9000\u51FA\u3002" - fontSize: 14 - - language: 23 - text: "\uC885\uB8CC\uD558\uB824\uBA74 \uB2E4\uC2DC \uB204\uB985\uB2C8\uB2E4." - fontSize: 14 - showExitMessage: 0 - exitMessage: - id: - defaultLanguage: 10 - list: - - language: 22 - text: "\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u7D42\u4E86\u3057\u307E\u3059\u3002" - fontSize: 14 - - language: 10 - text: Exit the application. - fontSize: 14 - - language: 40 - text: "\u9000\u51FA\u5E94\u7528\u7A0B\u5E8F\u3002" - fontSize: 14 - - language: 23 - text: "\uC751\uC6A9 \uD504\uB85C\uADF8\uB7A8\uC744 \uC885\uB8CC\uD569\uB2C8\uB2E4." - fontSize: 14 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppExitWithToast.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppExitWithToast.prefab.meta deleted file mode 100644 index 6072e5f2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppExitWithToast.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5f59d4994dae04b4cbabac2f8b0ca1b7 -timeCreated: 1506590616 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppInstallCheckController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppInstallCheckController.prefab deleted file mode 100644 index 43289ab0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppInstallCheckController.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1084304368842116 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4633529356281964} - - component: {fileID: 114062524235201262} - m_Layer: 0 - m_Name: AppInstallCheckController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4633529356281964 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1084304368842116} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114062524235201262 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1084304368842116} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ddc9bc94f3730a54291995761148248b, type: 3} - m_Name: - m_EditorClassIdentifier: - packageName: com.android.vending - checkOnStart: 0 - OnInstalled: - m_PersistentCalls: - m_Calls: [] - OnNotInstalled: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppInstallCheckController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppInstallCheckController.prefab.meta deleted file mode 100644 index b82c1b6c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/AppInstallCheckController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e86efea50e0c4c345adb487afbd25484 -timeCreated: 1523508567 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/BatteryStatusController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/BatteryStatusController.prefab deleted file mode 100644 index 715f62b1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/BatteryStatusController.prefab +++ /dev/null @@ -1,49 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1026680166897524 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4201904678622466} - - component: {fileID: 114602827400848564} - m_Layer: 0 - m_Name: BatteryStatusController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4201904678622466 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1026680166897524} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114602827400848564 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1026680166897524} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f59071276b3587a459431df6ac269a62, type: 3} - m_Name: - m_EditorClassIdentifier: - startListeningOnEnable: 0 - OnStatus: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/BatteryStatusController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/BatteryStatusController.prefab.meta deleted file mode 100644 index 2a7b4531..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/BatteryStatusController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 958cb341572fd6e4580cd0e6edd0ae89 -timeCreated: 1519123255 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/CpuRateController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/CpuRateController.prefab deleted file mode 100644 index cb9dca58..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/CpuRateController.prefab +++ /dev/null @@ -1,50 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1184291014304922 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4773165207786312} - - component: {fileID: 114249287992898412} - m_Layer: 0 - m_Name: CpuRateController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4773165207786312 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1184291014304922} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114249287992898412 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1184291014304922} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c67b06b5fa1e07f4ca26e97b92d6f136, type: 3} - m_Name: - m_EditorClassIdentifier: - startListeningOnEnable: 0 - interval: 2 - OnStatus: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/CpuRateController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/CpuRateController.prefab.meta deleted file mode 100644 index a81d0428..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/CpuRateController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b6f8d8922b59d014aa0a5252c674497b -timeCreated: 1532967994 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DebugConsole.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DebugConsole.prefab deleted file mode 100644 index 99bc3197..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DebugConsole.prefab +++ /dev/null @@ -1,588 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1110198156923016 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224046473918750814} - - component: {fileID: 222174822889629796} - - component: {fileID: 114236920332586920} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224046473918750814 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1110198156923016} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 224622224807451900} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &222174822889629796 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1110198156923016} - m_CullTransparentMesh: 1 ---- !u!114 &114236920332586920 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1110198156923016} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!1 &1166978937667238 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224966809116692044} - - component: {fileID: 222479110713886148} - - component: {fileID: 114068901948257794} - - component: {fileID: 114144683932976582} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224966809116692044 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1166978937667238} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 224815145970974958} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -30, y: 0} - m_Pivot: {x: 0, y: 1} ---- !u!222 &222479110713886148 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1166978937667238} - m_CullTransparentMesh: 1 ---- !u!114 &114068901948257794 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1166978937667238} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 0 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 22 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 2 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: ---- !u!114 &114144683932976582 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1166978937667238} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 2 ---- !u!1 &1192211702148986 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224815145970974958} - - component: {fileID: 222052802139689220} - - component: {fileID: 114693288930896468} - - component: {fileID: 114903209962190170} - - component: {fileID: 114155965260915494} - m_Layer: 5 - m_Name: Panel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224815145970974958 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1192211702148986} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 224966809116692044} - - {fileID: 224113941791409962} - m_Father: {fileID: 224939638474945418} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: 0.25, y: 135} - m_SizeDelta: {x: 719.5, y: 267} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &222052802139689220 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1192211702148986} - m_CullTransparentMesh: 1 ---- !u!114 &114693288930896468 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1192211702148986} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0, b: 0, a: 0.2509804} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &114903209962190170 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1192211702148986} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} - m_Name: - m_EditorClassIdentifier: - m_ShowMaskGraphic: 1 ---- !u!114 &114155965260915494 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1192211702148986} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Content: {fileID: 224966809116692044} - m_Horizontal: 0 - m_Vertical: 1 - m_MovementType: 1 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 0} - m_HorizontalScrollbar: {fileID: 0} - m_VerticalScrollbar: {fileID: 114073330162596212} - m_HorizontalScrollbarVisibility: 0 - m_VerticalScrollbarVisibility: 0 - m_HorizontalScrollbarSpacing: 0 - m_VerticalScrollbarSpacing: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &1246138998343316 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224113941791409962} - - component: {fileID: 222910927834061120} - - component: {fileID: 114994607797018422} - - component: {fileID: 114073330162596212} - m_Layer: 5 - m_Name: Scrollbar - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224113941791409962 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1246138998343316} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 224622224807451900} - m_Father: {fileID: 224815145970974958} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -9, y: 0} - m_SizeDelta: {x: 20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &222910927834061120 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1246138998343316} - m_CullTransparentMesh: 1 ---- !u!114 &114994607797018422 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1246138998343316} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &114073330162596212 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1246138998343316} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Highlighted - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 114236920332586920} - m_HandleRect: {fileID: 224046473918750814} - m_Direction: 2 - m_Value: 0 - m_Size: 1 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &1314362829046040 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224939638474945418} - - component: {fileID: 223963798015942492} - - component: {fileID: 114880445054767600} - - component: {fileID: 225651937281205042} - - component: {fileID: 114184576359018294} - - component: {fileID: 114906985734187934} - m_Layer: 5 - m_Name: DebugConsole - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224939638474945418 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314362829046040} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 224815145970974958} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!223 &223963798015942492 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314362829046040} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!114 &114880445054767600 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314362829046040} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 1 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 720, y: 1280} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 1 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 - m_PresetInfoIsWorld: 0 ---- !u!225 &225651937281205042 -CanvasGroup: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314362829046040} - m_Enabled: 1 - m_Alpha: 1 - m_Interactable: 1 - m_BlocksRaycasts: 1 - m_IgnoreParentGroups: 0 ---- !u!114 &114184576359018294 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314362829046040} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &114906985734187934 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1314362829046040} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89194e8ae3e260f4385eab455414e6ac, type: 3} - m_Name: - m_EditorClassIdentifier: - dontDestroyOnLoad: 0 - hideOnAwake: 0 - clearOnDestory: 1 - lines: 0 - outputText: {fileID: 114068901948257794} - scrollbar: {fileID: 114073330162596212} - canvasGroup: {fileID: 225651937281205042} ---- !u!1 &1978272854106380 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224622224807451900} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224622224807451900 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1978272854106380} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 224046473918750814} - m_Father: {fileID: 224113941791409962} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DebugConsole.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DebugConsole.prefab.meta deleted file mode 100644 index a56cf805..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DebugConsole.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ef87dfcabba51bd4ebec5bbc4bad643f -timeCreated: 1485330780 -licenseType: Store -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DeviceCredentialsController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DeviceCredentialsController.prefab deleted file mode 100644 index 2336f60f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DeviceCredentialsController.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1139535754486534 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4737852399703050} - - component: {fileID: 114833954969465422} - m_Layer: 0 - m_Name: DeviceCredentialsController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4737852399703050 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1139535754486534} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114833954969465422 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1139535754486534} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 13aff3541c8d07f4da487d28b0bbf147, type: 3} - m_Name: - m_EditorClassIdentifier: - title: - message: - OnFailure: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DeviceCredentialsController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DeviceCredentialsController.prefab.meta deleted file mode 100644 index 29a049b5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DeviceCredentialsController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7108b3dae23e3d6479dd3e3279e816a9 -timeCreated: 1521823703 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DialerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DialerController.prefab deleted file mode 100644 index a5b9a955..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DialerController.prefab +++ /dev/null @@ -1,46 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1224057629251804 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4864118265299182} - - component: {fileID: 114505791507996058} - m_Layer: 0 - m_Name: DialerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4864118265299182 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1224057629251804} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114505791507996058 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1224057629251804} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f98be02f74c7e5c42ba9096e39888efe, type: 3} - m_Name: - m_EditorClassIdentifier: - phoneNumber: 0123456789 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DialerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DialerController.prefab.meta deleted file mode 100644 index 7223d37d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/DialerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5c268085918daaf409c2893fd608ae79 -timeCreated: 1521432092 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/FpsMonitor.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/FpsMonitor.prefab deleted file mode 100644 index 07a4adb9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/FpsMonitor.prefab +++ /dev/null @@ -1,208 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1098574421114586 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224843909492294552} - m_Layer: 5 - m_Name: FpsMonitor - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224843909492294552 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1098574421114586} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 224842994343455786} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -10, y: -10} - m_SizeDelta: {x: 160, y: 50} - m_Pivot: {x: 1, y: 1} ---- !u!1 &1145427833349170 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224594043453274426} - - component: {fileID: 222915483789135000} - - component: {fileID: 114928207611456288} - - component: {fileID: 114584508815157174} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224594043453274426 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145427833349170} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 224842994343455786} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &222915483789135000 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145427833349170} - m_CullTransparentMesh: 1 ---- !u!114 &114928207611456288 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145427833349170} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 0 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 26 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 2 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: FPS ---- !u!114 &114584508815157174 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145427833349170} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 214f6a9df343f91429f730866cdff633, type: 3} - m_Name: - m_EditorClassIdentifier: - targetText: {fileID: 114928207611456288} - format: '{0:F1} FPS' ---- !u!1 &1752879897139708 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 224842994343455786} - - component: {fileID: 222927063471122188} - - component: {fileID: 114737047840486826} - m_Layer: 5 - m_Name: Panel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &224842994343455786 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752879897139708} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 224594043453274426} - m_Father: {fileID: 224843909492294552} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &222927063471122188 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752879897139708} - m_CullTransparentMesh: 1 ---- !u!114 &114737047840486826 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1752879897139708} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0, b: 0, a: 0.392} - m_RaycastTarget: 0 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/FpsMonitor.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/FpsMonitor.prefab.meta deleted file mode 100644 index 1b31b456..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/FpsMonitor.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6a8bac0e0af625e46a5f1e72a77fa737 -timeCreated: 1533026093 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/GalleryPickController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/GalleryPickController.prefab deleted file mode 100644 index c2801070..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/GalleryPickController.prefab +++ /dev/null @@ -1,58 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1306689704256120 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4676204992993416} - - component: {fileID: 114276840601987088} - m_Layer: 0 - m_Name: GalleryPickController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4676204992993416 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1306689704256120} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114276840601987088 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1306689704256120} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 19d893ad925147d4fa4d474bd756c334, type: 3} - m_Name: - m_EditorClassIdentifier: - pickType: 0 - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] - OnResultVideoInfo: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/GalleryPickController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/GalleryPickController.prefab.meta deleted file mode 100644 index 6995f399..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/GalleryPickController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: fbcc9a15ae16d104ca056b261675b071 -timeCreated: 1518150939 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeController.prefab deleted file mode 100644 index d841b8c4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeController.prefab +++ /dev/null @@ -1,97 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1267231764538114 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4171721075864924} - - component: {fileID: 114582424218403482} - m_Layer: 0 - m_Name: HardVolumeController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4171721075864924 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1267231764538114} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114582424218403482 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1267231764538114} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6f2bd74b82df86941a631fc6fa090c84, type: 3} - m_Name: - m_EditorClassIdentifier: - enableHardKey: 1 - hardOperation: 0 - showUI: 0 - OnVolumeCalled: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 0} - m_TargetAssemblyTypeName: - m_MethodName: OnDisplay - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnHardVolumeKeyUp: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114582424218403482} - m_TargetAssemblyTypeName: - m_MethodName: VolumeUp - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnHardVolumeKeyDown: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114582424218403482} - m_TargetAssemblyTypeName: - m_MethodName: VolumeDown - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - debugVolume: 2 - debugIncreasement: 0 - debugVolumeUpKey: 270 - debugVolumeDownKey: 269 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeController.prefab.meta deleted file mode 100644 index f2e80159..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 73eb0ef02a572664dac8b4565636cfa8 -timeCreated: 1512219877 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeControllerWithToast.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeControllerWithToast.prefab deleted file mode 100644 index 689033f2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeControllerWithToast.prefab +++ /dev/null @@ -1,98 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1718437915171582 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4438224060330938} - - component: {fileID: 114288828488583028} - m_Layer: 0 - m_Name: HardVolumeControllerWithToast - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4438224060330938 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1718437915171582} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114288828488583028 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1718437915171582} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4943ba82bcc2aba429a8646bbedc2e9e, type: 3} - m_Name: - m_EditorClassIdentifier: - enableHardKey: 1 - hardOperation: 1 - showUI: 1 - OnVolumeCalled: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114288828488583028} - m_TargetAssemblyTypeName: - m_MethodName: DisplayVolume - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnHardVolumeKeyUp: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114288828488583028} - m_TargetAssemblyTypeName: - m_MethodName: VolumeNow - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnHardVolumeKeyDown: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 114288828488583028} - m_TargetAssemblyTypeName: - m_MethodName: VolumeNow - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - debugVolume: 2 - debugIncreasement: 1 - debugVolumeUpKey: 270 - debugVolumeDownKey: 269 - enableToast: 1 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeControllerWithToast.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeControllerWithToast.prefab.meta deleted file mode 100644 index cc6961bd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/HardVolumeControllerWithToast.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f719b7562657ace4c8002fb760b46a9f -timeCreated: 1506676494 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeLanguageChanger.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeLanguageChanger.prefab deleted file mode 100644 index 32462e94..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeLanguageChanger.prefab +++ /dev/null @@ -1,63 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1528161151500762 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4917740006620562} - - component: {fileID: 114596857419878602} - m_Layer: 0 - m_Name: LocalizeLanguageChanger - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4917740006620562 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1528161151500762} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114596857419878602 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1528161151500762} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d5f3373ded429ab4cbd398d490bb37c5, type: 3} - m_Name: - m_EditorClassIdentifier: - language: 42 - applyOnStart: 0 - defaultStrings: - - Unknown - - Default - - System - - System Language - - None - findLocalizable: 0 - localizableObjects: [] - implGameobjects: [] - saveSetting: 0 - saveKey: - OnLanguageChanged: - m_PersistentCalls: - m_Calls: [] - debugLanguage: 42 - debugApplyOnStart: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeLanguageChanger.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeLanguageChanger.prefab.meta deleted file mode 100644 index 9d508943..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeLanguageChanger.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 3ceed23bddbe21a43b3f0a9fc05b2a50 -timeCreated: 1525062958 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeStringResource.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeStringResource.prefab deleted file mode 100644 index 0b64a0df..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeStringResource.prefab +++ /dev/null @@ -1,106 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1497408026336346 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4956087763535378} - - component: {fileID: 114451045475438062} - m_Layer: 0 - m_Name: LocalizeStringResource - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4956087763535378 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1497408026336346} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114451045475438062 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1497408026336346} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 - - id: okButton - defaultLanguage: 10 - list: - - language: 22 - text: OK - fontSize: 0 - - language: 40 - text: "\u786E\u5B9A" - fontSize: 0 - - language: 23 - text: "\uD655\uC778" - fontSize: 0 - - language: 10 - text: OK - fontSize: 0 - - id: cancelButton - defaultLanguage: 10 - list: - - language: 22 - text: "\u30AD\u30E3\u30F3\u30BB\u30EB" - fontSize: 0 - - language: 40 - text: "\u53D6\u6D88" - fontSize: 0 - - language: 23 - text: "\uCDE8\uC18C" - fontSize: 0 - - language: 10 - text: Cancel - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeStringResource.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeStringResource.prefab.meta deleted file mode 100644 index 1d008df1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/LocalizeStringResource.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a92195ce88944c842818d4bcb11cb0dc -timeCreated: 1523704838 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MailerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MailerController.prefab deleted file mode 100644 index 8170179e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MailerController.prefab +++ /dev/null @@ -1,96 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1003626953492182 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4274234942131624} - - component: {fileID: 114107106216820330} - - component: {fileID: 114406560967235198} - m_Layer: 0 - m_Name: MailerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4274234942131624 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1003626953492182} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114107106216820330 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1003626953492182} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 43bf2400a9a29f841aec5402c3f47e14, type: 3} - m_Name: - m_EditorClassIdentifier: - mailAddress: xxx@example.com - subject: Title - body: Message - localize: - localizeResource: {fileID: 0} - subjecctID: subject - bodyID: body ---- !u!114 &114406560967235198 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1003626953492182} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: subject - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: body - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MailerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MailerController.prefab.meta deleted file mode 100644 index 577d9565..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MailerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cc34a5b095bd7f44ea12740775d34154 -timeCreated: 1521432940 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MarketSearchController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MarketSearchController.prefab deleted file mode 100644 index bbdef720..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MarketSearchController.prefab +++ /dev/null @@ -1,48 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1858736096646760 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4604540127260342} - - component: {fileID: 114453249411159162} - m_Layer: 0 - m_Name: MarketSearchController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4604540127260342 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1858736096646760} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114453249411159162 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1858736096646760} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2bae3da4375d55e459fed288c19761c8, type: 3} - m_Name: - m_EditorClassIdentifier: - searchType: 0 - packageName: com.google.android.tts - keyword: Google TTS diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MarketSearchController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MarketSearchController.prefab.meta deleted file mode 100644 index d968e9bc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MarketSearchController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: cc12b9cb02091094a8b13c776ddfe59d -timeCreated: 1523199381 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MediaScannerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MediaScannerController.prefab deleted file mode 100644 index 813390a6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MediaScannerController.prefab +++ /dev/null @@ -1,51 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1992382299415880 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4112041614086436} - - component: {fileID: 114311290001983996} - m_Layer: 0 - m_Name: MediaScannerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4112041614086436 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1992382299415880} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114311290001983996 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1992382299415880} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 953b10b2451a8d14d9e7bfa74c9da7c3, type: 3} - m_Name: - m_EditorClassIdentifier: - OnComplete: - m_PersistentCalls: - m_Calls: [] - OnCompleteInfo: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MediaScannerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MediaScannerController.prefab.meta deleted file mode 100644 index b8cd2cf5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/MediaScannerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9153a237050045b49bf761d23fdfab21 -timeCreated: 1518340002 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/NotificationController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/NotificationController.prefab deleted file mode 100644 index 0fea13d6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/NotificationController.prefab +++ /dev/null @@ -1,103 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1399919923384336 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4495927037528422} - - component: {fileID: 114393459771224898} - - component: {fileID: 114657603706108656} - m_Layer: 0 - m_Name: NotificationController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4495927037528422 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399919923384336} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114393459771224898 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399919923384336} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b100648c9b32a6e47b9dc72e7f300e3b, type: 3} - m_Name: - m_EditorClassIdentifier: - title: - message: Message - tapAction: 0 - url: http://fantom1x.blog130.fc2.com/ - iconName: app_icon - idTag: tag - showTimestamp: 1 - vibratorType: 0 - vibratorDuration: 0 - vibratorPattern: 00000000640000006400000064000000640000006400000064000000 - localize: - localizeResource: {fileID: 0} - titleID: - messageID: message ---- !u!114 &114657603706108656 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1399919923384336} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u30BF\u30A4\u30C8\u30EB" - fontSize: 0 - - language: 40 - text: "\u6807\u9898" - fontSize: 0 - - language: 23 - text: "\uC81C\uBAA9" - fontSize: 0 - - language: 10 - text: Title - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u30E1\u30C3\u30BB\u30FC\u30B8" - fontSize: 0 - - language: 40 - text: "\u4FE1\u606F" - fontSize: 0 - - language: 23 - text: "\uBA54\uC2DC\uC9C0" - fontSize: 0 - - language: 10 - text: Message - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/NotificationController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/NotificationController.prefab.meta deleted file mode 100644 index 582f6a8c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/NotificationController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9f6e1e17bab4de8409e4d0aa82d1e6ec -timeCreated: 1516532191 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/OrientationStatusController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/OrientationStatusController.prefab deleted file mode 100644 index 409257c8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/OrientationStatusController.prefab +++ /dev/null @@ -1,49 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1760574737527292 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4704279204918908} - - component: {fileID: 114115945599925892} - m_Layer: 0 - m_Name: OrientationStatusController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4704279204918908 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1760574737527292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114115945599925892 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1760574737527292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9cd1f63f8945158438044f5ea83da73a, type: 3} - m_Name: - m_EditorClassIdentifier: - startListeningOnEnable: 0 - OnStatusChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/OrientationStatusController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/OrientationStatusController.prefab.meta deleted file mode 100644 index 29f97237..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/OrientationStatusController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 61f94a39c2d254c49b5b028e16a8355d -timeCreated: 1520493170 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/PermissionCheckController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/PermissionCheckController.prefab deleted file mode 100644 index 486fa404..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/PermissionCheckController.prefab +++ /dev/null @@ -1,115 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1109782592208326 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4782667886744112} - - component: {fileID: 114743849219616990} - - component: {fileID: 114881299326287516} - m_Layer: 0 - m_Name: PermissionCheckController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4782667886744112 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1109782592208326} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114743849219616990 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1109782592208326} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e387d0a6bea039c4c8d44a4296b7ffd6, type: 3} - m_Name: - m_EditorClassIdentifier: - permission: android.permission.WRITE_EXTERNAL_STORAGE - checkOnStart: 0 - requestWhenNotGranted: 0 - title: To use this function, you need "xxx" permission. - message: "This permission is used for:\r\n\xB7 Description 1.\r\n\xB7 Description - 2.\r\n\xB7 Description 3." - style: android:Theme.DeviceDefault.Light.Dialog.Alert - localize: - localizeResource: {fileID: 0} - titleID: title - messageID: message - OnResult: - m_PersistentCalls: - m_Calls: [] - OnGranted: - m_PersistentCalls: - m_Calls: [] - OnDenied: - m_PersistentCalls: - m_Calls: [] - OnAllowed: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &114881299326287516 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1109782592208326} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: title - defaultLanguage: 10 - list: - - language: 22 - text: "\u3053\u306E\u6A5F\u80FD\u3092\u4F7F\u3046\u306B\u306F\u300Cxxx\u300D\u6A29\u9650\u304C\u5FC5\u8981\u3067\u3059\u3002" - fontSize: 0 - - language: 40 - text: "\u8981\u4F7F\u7528\u6B64\u529F\u80FD\uFF0C\u60A8\u9700\u8981\u201Cxxx\u201D\u6743\u9650\u3002" - fontSize: 0 - - language: 23 - text: "\uC774 \uAE30\uB2A5\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 \"xxx\"\uAD8C\uD55C\uC774 - \uC788\uC5B4\uC57C\uD569\uB2C8\uB2E4." - fontSize: 0 - - language: 10 - text: To use this function, you need "xxx" permission. - fontSize: 0 - - id: message - defaultLanguage: 10 - list: - - language: 22 - text: "\u3053\u306E\u6A29\u9650\u306F\u4EE5\u4E0B\u306B\u5229\u7528\u3055\u308C\u307E\u3059\uFF1A\r\n\u30FB\u30B9\u30C8\u30EC\u30FC\u30B8\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u60C5\u5831\u3092\u53D6\u5F97\u3057\u307E\u3059\u3002\r\n\u30FB\u30B9\u30C8\u30EC\u30FC\u30B8\u306B\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3057\u307E\u3059\u3002\r\n\u30FB\u30B9\u30C8\u30EC\u30FC\u30B8\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u30D1\u30B9\u3092\u53D6\u5F97\u3057\u307E\u3059\u3002" - fontSize: 0 - - language: 40 - text: "\u6B64\u6743\u9650\u7528\u4E8E\uFF1A\r\n\xB7\u8BF4\u660E1\u3002\n\xB7\u8BF4\u660E2\u3002\r\n\xB7\u8BF4\u660E3\u3002" - fontSize: 0 - - language: 23 - text: "\uC774 \uAD8C\uD55C\uC740 \uB2E4\uC74C\uC5D0 \uC0AC\uC6A9\uB429\uB2C8\uB2E4 - :\r\n\xB7 \uC124\uBA85 1.\n\xB7 \uC124\uBA85 2.\n\xB7 \uC124\uBA85 3." - fontSize: 0 - - language: 10 - text: "This permission is used for:\r\n\xB7 Description 1.\r\n\xB7 Description - 2.\r\n\xB7 Description 3." - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/PermissionCheckController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/PermissionCheckController.prefab.meta deleted file mode 100644 index 75928820..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/PermissionCheckController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 4d8f3e9f34657a84cb348599699394c3 -timeCreated: 1524109441 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/QRCodeScannerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/QRCodeScannerController.prefab deleted file mode 100644 index 4ea1ff07..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/QRCodeScannerController.prefab +++ /dev/null @@ -1,48 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1641641859521414 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4864885602173080} - - component: {fileID: 114934575786900130} - m_Layer: 0 - m_Name: QRCodeScannerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4864885602173080 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1641641859521414} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114934575786900130 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1641641859521414} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1726525528a5c374ca6bb027fcc6262e, type: 3} - m_Name: - m_EditorClassIdentifier: - OnResult: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/QRCodeScannerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/QRCodeScannerController.prefab.meta deleted file mode 100644 index 4c622162..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/QRCodeScannerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a800039fe59be3344b151f935ef44610 -timeCreated: 1523095121 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SceneLoadWithKey.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SceneLoadWithKey.prefab deleted file mode 100644 index 2ccd316f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SceneLoadWithKey.prefab +++ /dev/null @@ -1,61 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1347564824056704 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4017365672703974} - - component: {fileID: 114340784465541404} - m_Layer: 0 - m_Name: SceneLoadWithKey - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4017365672703974 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1347564824056704} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114340784465541404 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1347564824056704} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c36d3bf416ef9214eb576c8d30d4edb6, type: 3} - m_Name: - m_EditorClassIdentifier: - sceneBuildIndex: 0 - useName: 0 - sceneName: Title - isAdditive: 0 - enableKey: 0 - loadKey: 27 - loadDelay: 0 - OnKeyPressed: - m_PersistentCalls: - m_Calls: [] - OnBeforeDelay: - m_PersistentCalls: - m_Calls: [] - OnBeforeLoad: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SceneLoadWithKey.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SceneLoadWithKey.prefab.meta deleted file mode 100644 index 6ecd9f2d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SceneLoadWithKey.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5d75c534ea5eeab4c8bd99bc8aae740c -timeCreated: 1506834859 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/Screenshot.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/Screenshot.prefab deleted file mode 100644 index b3fc29b6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/Screenshot.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1597155386122824 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4507768995156986} - - component: {fileID: 114648231206530326} - m_Layer: 0 - m_Name: Screenshot - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4507768995156986 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1597155386122824} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114648231206530326 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1597155386122824} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 47a2219ccab0fbb40bccdb540bfb155c, type: 3} - m_Name: - m_EditorClassIdentifier: - filePrefix: screenshot_ - toExternalStorageOnAndroid: 1 - OnComplete: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/Screenshot.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/Screenshot.prefab.meta deleted file mode 100644 index bd36b1e2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/Screenshot.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: bb57d057c40b9614aaafd92c87136d88 -timeCreated: 1524411001 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SendTextController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SendTextController.prefab deleted file mode 100644 index 89e06b9e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SendTextController.prefab +++ /dev/null @@ -1,81 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1197460469346516 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4615849156439108} - - component: {fileID: 114557187139399544} - - component: {fileID: 114976573644790868} - m_Layer: 0 - m_Name: SendTextController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4615849156439108 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1197460469346516} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114557187139399544 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1197460469346516} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 286fde40ed388ea4ca8616408093c72d, type: 3} - m_Name: - m_EditorClassIdentifier: - targetText: {fileID: 0} - selectionType: 1 - chooserTitle: Select the application to share this text. - localize: - localizeResource: {fileID: 114976573644790868} - chooserTitleID: chooserTitle ---- !u!114 &114976573644790868 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1197460469346516} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: acf18b9b5c452e74689b2f9e1b4ee78b, type: 3} - m_Name: - m_EditorClassIdentifier: - items: - - id: chooserTitle - defaultLanguage: 10 - list: - - language: 22 - text: "\u3053\u306E\u30C6\u30AD\u30B9\u30C8\u3092\u5171\u6709\u3059\u308B\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044" - fontSize: 0 - - language: 40 - text: "\u8BF7\u9009\u62E9\u5171\u4EAB\u6B64\u6587\u672C\u7684\u5E94\u7528\u7A0B\u5E8F" - fontSize: 0 - - language: 23 - text: "\uC774 \uD14D\uC2A4\uD2B8\uB97C \uACF5\uC720 \uD560 \uC751\uC6A9 \uD504\uB85C\uADF8\uB7A8\uC744 - \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624" - fontSize: 0 - - language: 10 - text: Select the application to share this text. - fontSize: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SendTextController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SendTextController.prefab.meta deleted file mode 100644 index 886ce046..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SendTextController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 102d1e45e80a4504fb176c65d1f17a01 -timeCreated: 1518426098 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SpeechRecognizerController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SpeechRecognizerController.prefab deleted file mode 100644 index d531cb74..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SpeechRecognizerController.prefab +++ /dev/null @@ -1,60 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1106151005298522 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4090190133040554} - - component: {fileID: 114708088418969148} - m_Layer: 0 - m_Name: SpeechRecognizerController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4090190133040554 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1106151005298522} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114708088418969148 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1106151005298522} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 29c9ddd870bfbf245a9cb2c4ed682f21, type: 3} - m_Name: - m_EditorClassIdentifier: - locale: - saveSetting: 0 - saveKey: - OnReady: - m_PersistentCalls: - m_Calls: [] - OnBegin: - m_PersistentCalls: - m_Calls: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SpeechRecognizerController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SpeechRecognizerController.prefab.meta deleted file mode 100644 index 77a6c494..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/SpeechRecognizerController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6f248dd9eeba46942a9b103405cc58d7 -timeCreated: 1516886627 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageLoadTextController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageLoadTextController.prefab deleted file mode 100644 index 398dd104..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageLoadTextController.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1054681205857478 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4121560510831300} - - component: {fileID: 114937668728719866} - m_Layer: 0 - m_Name: StorageLoadTextController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4121560510831300 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1054681205857478} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114937668728719866 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1054681205857478} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: faf4046a144a7b048a273d384b09398b, type: 3} - m_Name: - m_EditorClassIdentifier: - mimeTypes: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - targetText: {fileID: 0} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageLoadTextController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageLoadTextController.prefab.meta deleted file mode 100644 index 94c8a846..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageLoadTextController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0abe949c91ba8744283625d6c8ebbfb0 -timeCreated: 1518416789 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenAudioController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenAudioController.prefab deleted file mode 100644 index ce9d26e3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenAudioController.prefab +++ /dev/null @@ -1,55 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1419451056479664 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4562753461680414} - - component: {fileID: 114455233711443774} - m_Layer: 0 - m_Name: StorageOpenAudioController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4562753461680414 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1419451056479664} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114455233711443774 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1419451056479664} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8a3f3b19b060b7247b9a9f121d0caf99, type: 3} - m_Name: - m_EditorClassIdentifier: - mimeTypes: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenAudioController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenAudioController.prefab.meta deleted file mode 100644 index e160089b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenAudioController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d40e7ba5051511f48808f374ab8f59ee -timeCreated: 1527858179 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFileController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFileController.prefab deleted file mode 100644 index 20674ff5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFileController.prefab +++ /dev/null @@ -1,55 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1395043986656196 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4062460260264118} - - component: {fileID: 114957109753704856} - m_Layer: 0 - m_Name: StorageOpenFileController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4062460260264118 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1395043986656196} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114957109753704856 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1395043986656196} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 81ef0c1a686c0b9479c7c3a582096e27, type: 3} - m_Name: - m_EditorClassIdentifier: - mimeTypes: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFileController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFileController.prefab.meta deleted file mode 100644 index a2f3a2f0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFileController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 80c8358dbc53640479677c86bf480254 -timeCreated: 1527858170 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFolderController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFolderController.prefab deleted file mode 100644 index 4d84372e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFolderController.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1470758198772812 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4217761632356658} - - component: {fileID: 114310881668082002} - m_Layer: 0 - m_Name: StorageOpenFolderController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4217761632356658 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1470758198772812} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114310881668082002 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1470758198772812} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7b93cf59be168d54f841879a8bf142ed, type: 3} - m_Name: - m_EditorClassIdentifier: - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFolderController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFolderController.prefab.meta deleted file mode 100644 index 225d0fde..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenFolderController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 567f5b51777c920459adef817d7c57d7 -timeCreated: 1527858174 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenImageController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenImageController.prefab deleted file mode 100644 index 15d7b71d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenImageController.prefab +++ /dev/null @@ -1,55 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1541482879289708 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4238546892161466} - - component: {fileID: 114616829223620816} - m_Layer: 0 - m_Name: StorageOpenImageController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4238546892161466 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1541482879289708} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114616829223620816 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1541482879289708} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 950b227461e43f54694375017bd7cb92, type: 3} - m_Name: - m_EditorClassIdentifier: - mimeTypes: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenImageController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenImageController.prefab.meta deleted file mode 100644 index bb699e43..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenImageController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1303f36b4d897f84288f0768b64fc3fb -timeCreated: 1527960580 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenVideoController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenVideoController.prefab deleted file mode 100644 index 7978ad23..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenVideoController.prefab +++ /dev/null @@ -1,55 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1108211248837940 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4982977891995530} - - component: {fileID: 114098941229017732} - m_Layer: 0 - m_Name: StorageOpenVideoController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4982977891995530 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1108211248837940} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114098941229017732 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1108211248837940} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4443f7cb6fd462a4b9959cde28d28169, type: 3} - m_Name: - m_EditorClassIdentifier: - mimeTypes: [] - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenVideoController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenVideoController.prefab.meta deleted file mode 100644 index ac673b5d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageOpenVideoController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 774efd37e33893f42972b4f1128e3ab3 -timeCreated: 1527960576 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveFileController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveFileController.prefab deleted file mode 100644 index 40a5d984..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveFileController.prefab +++ /dev/null @@ -1,60 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1695357626098330 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4069781791879276} - - component: {fileID: 114978277431098370} - m_Layer: 0 - m_Name: StorageSaveFileController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4069781791879276 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1695357626098330} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114978277431098370 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1695357626098330} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e53f9abff1bf20f458d6cad5b0b1181d, type: 3} - m_Name: - m_EditorClassIdentifier: - fileName: NewDocument - mimeTypes: - - '*/*' - syncExtension: 1 - saveValue: 0 - saveKey: - OnResult: - m_PersistentCalls: - m_Calls: [] - OnResultInfo: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveFileController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveFileController.prefab.meta deleted file mode 100644 index 40f3f335..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveFileController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 115695566c7861f4ea39dbf7f77da68d -timeCreated: 1527952152 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveTextController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveTextController.prefab deleted file mode 100644 index 640d12c0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveTextController.prefab +++ /dev/null @@ -1,58 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1655883574357242 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4933813985973732} - - component: {fileID: 114565306007515722} - m_Layer: 0 - m_Name: StorageSaveTextController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4933813985973732 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1655883574357242} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114565306007515722 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1655883574357242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a17a5d249e195fc40a7c838a25ceaafe, type: 3} - m_Name: - m_EditorClassIdentifier: - targetText: {fileID: 0} - fileName: NewDocument.txt - mimeTypes: - - text/plain - syncExtension: 1 - saveValue: 0 - saveKey: - OnResult: - m_PersistentCalls: - m_Calls: [] - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveTextController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveTextController.prefab.meta deleted file mode 100644 index 6d4c73a3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/StorageSaveTextController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1f80604e6cda0704f88a18409a063094 -timeCreated: 1518416785 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/TextToSpeechController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/TextToSpeechController.prefab deleted file mode 100644 index 0f6cf3d5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/TextToSpeechController.prefab +++ /dev/null @@ -1,70 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1908624318804832 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4226116137107048} - - component: {fileID: 114137152281808436} - m_Layer: 0 - m_Name: TextToSpeechController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4226116137107048 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1908624318804832} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114137152281808436 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1908624318804832} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a0b312d8e1384144eb7656e34f95c392, type: 3} - m_Name: - m_EditorClassIdentifier: - locale: - speed: 1 - speedStep: 0.05 - pitch: 1 - pitchStep: 0.05 - saveSetting: 0 - saveKey: - OnStart: - m_PersistentCalls: - m_Calls: [] - OnDone: - m_PersistentCalls: - m_Calls: [] - OnStop: - m_PersistentCalls: - m_Calls: [] - OnStatus: - m_PersistentCalls: - m_Calls: [] - OnSpeedChanged: - m_PersistentCalls: - m_Calls: [] - OnPitchChanged: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/TextToSpeechController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/TextToSpeechController.prefab.meta deleted file mode 100644 index 3f828d20..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/TextToSpeechController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d25efbcf6086225498acfe63315b3c60 -timeCreated: 1516958934 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/VibratorController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/VibratorController.prefab deleted file mode 100644 index 82658fc8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/VibratorController.prefab +++ /dev/null @@ -1,51 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1255925228401160 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4045845286286866} - - component: {fileID: 114634131382853504} - m_Layer: 0 - m_Name: VibratorController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4045845286286866 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1255925228401160} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114634131382853504 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1255925228401160} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: df6fbb4d96dfd1745836727f9f72f218, type: 3} - m_Name: - m_EditorClassIdentifier: - vibratorType: 0 - duration: 1000 - pattern: 00000000640000006400000064000000640000006400000064000000 - OnError: - m_PersistentCalls: - m_Calls: [] diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/VibratorController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/VibratorController.prefab.meta deleted file mode 100644 index 4a865196..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/VibratorController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 174bd0c0120849f429837d12d10f65fa -timeCreated: 1518849804 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/WebSearchController.prefab b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/WebSearchController.prefab deleted file mode 100644 index 735aed56..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/WebSearchController.prefab +++ /dev/null @@ -1,46 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1457495243789838 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4046355405640556} - - component: {fileID: 114950279704087474} - m_Layer: 0 - m_Name: WebSearchController - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4046355405640556 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457495243789838} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114950279704087474 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1457495243789838} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 515d9af933f6f5241990da4352de0b32, type: 3} - m_Name: - m_EditorClassIdentifier: - keyword: keyword diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/WebSearchController.prefab.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/WebSearchController.prefab.meta deleted file mode 100644 index e744618e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs/System/WebSearchController.prefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d93464b922ec7924996945bf42bcf073 -timeCreated: 1516543224 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera.meta deleted file mode 100644 index a0e0aa97..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 26e76b1abb75c8d4f94aaf70c3e4991d -folderAsset: yes -timeCreated: 1515335047 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera/SmoothFollow3.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera/SmoothFollow3.cs deleted file mode 100644 index de465e84..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera/SmoothFollow3.cs +++ /dev/null @@ -1,474 +0,0 @@ -using System; -using UnityEngine; - -namespace FantomLib -{ - /// - /// SmoothFollow added right/left rotation angle, height and distance, - /// and added a corresponding to pinch (PinchInput) and swipe (SwipeInput) (originally StandardAssets) - /// http://fantom1x.blog130.fc2.com/blog-entry-289.html - /// (Usage) - ///·You can use it by attaching to a GameObject such as a camera and registering an object as a viewpoint from the inspector to target. - /// (Specification) - ///·It recognizes the whole screen as (0,0) - (1,1) and clicks with the touch or mouse in the valid area (Valid Area). - ///·The touch operation is effective only for one finger (and the first one) (More than 2 -> When it is 1 does not recognize). - ///·In order to separate drag and swipe operations with fingers, If it is larger than the value of AngleOperation.dragWidthLimit (ratio by screen width) - /// (= finger quickly moved) it is not recognized as a drag (Swipe is recognized by the value of SwipeInput.validWidth). - ///·Since the touch device is UNITY_ANDROID, UNITY_IOS, if you want to add other devices, add a device to the #if conditional statement (only those that can be acquired by Input.touchCount). - /// - /// - /// SmoothFollow に左右回転アングルと高さと距離の遠近機能を追加したもの - /// かつ、ピンチ(PinchInput)とスワイプ(SwipeInput)に対応させた(元は StandardAssets の SmoothFollow) - /// http://fantom1x.blog130.fc2.com/blog-entry-289.html - ///(使い方) - ///・カメラなどの GameObject にアタッチして、インスペクタから target に視点となるオブジェクトを登録すれば使用可。 - ///(仕様説明) - ///・画面全体を(0,0)-(1,1)とし、有効領域内(Valid Area)でタッチまたはマウスでクリックしたとき認識する。 - ///・タッチ操作は指1本のみ(かつ最初の1本)の操作が有効となる(2本以上→1本になったときは認識しない)。 - ///・指でのドラッグとスワイプ操作を分けるため、AngleOperation.dragWidthLimit の値(画面幅による比率)より大きいときは(=指を素早く動かしたときは) - /// ドラッグとして認識しない(スワイプは SwipeInput.validWidth の値で認識)。 - ///・タッチデバイスを UNITY_ANDROID, UNITY_IOS としているので、他のデバイスも加えたい場合は #if の条件文にデバイスを追加する(Input.touchCount が取得できるもののみ)。 - /// - public class SmoothFollow3 : MonoBehaviour - { -#region Inspector settings Section - - //Inspector Settings - public Transform target; //Object to follow //追従するオブジェクト - - public bool autoInitOnPlay = true; //Automatically calculates distance, height, preAngle from target position at startup //distance, height, preAngle を起動時に target 位置から自動算出する - public float distance = 2.0f; //Distance of XZ plane //XZ平面の距離 - public float height = 0f; //Y axis height //Y軸の高さ - public float preAngle = 0f; //Initial value of camera angle //カメラアングル初期値 - - public bool widthReference = true; //Make the screen width (Screen.width) size the standard of the ratio (false: based on height (Screen.height)) //画面幅(Screen.width)サイズを比率の基準にする(false=高さ(Screen.height)を基準) - - //Area on screen to recognize: 0.0~1.0 [(0,0):Bottom left of screen, (1,1):Upper right of screen] - //認識する画面領域(0.0~1.0)[(0,0):画面左下, (1,1):画面右上] - public Rect validArea = new Rect(0, 0, 1, 1); - - - //Rotation operation - //回転操作 - [Serializable] - public class AngleOperation - { - public float damping = 3.0f; //Smooth moving speed of left and right rotation //左右回転のスムーズ移動速度 - - //Key input //キー入力 - public bool keyEnable = true; //ON/OFF of rotation key operation //回転のキー操作の ON/OFF - public float keySpeed = 45f; //Speed by key operation //左右回転速度 - public KeyCode keyLeft = KeyCode.Z; //Left rotation key //左回転キー - public KeyCode keyRight = KeyCode.X; //Right rotation key //右回転キー - - //Drag //ドラッグ - public bool dragEnable = true; //ON/OFF of rotation drag operation //回転のドラッグ操作の ON/OFF - public float dragSpeed = 10f; //Speed by drag operation //ドラッグ操作での回転速度 - public float dragWidthLimit = 0.1f; //Limit width that can be recognized as a drag (0: unlimited ~ 1: Screen.width [when widthReference=true]). Not recognize more than this width (to distinguish it from swipe). //ドラッグとして認識できる幅(0 のとき制限なし ~ 1 のとき画面幅)。この幅以上は認識しない(スワイプと区別するため)。 - } - public AngleOperation angleOperation; - - - //Turn operation (constant angle rotation) - //旋回(一定角度回転) - [Serializable] - public class TurnOperation - { - public float angle = 90f; //Angle of turn //旋回の角度 - - //Key input //キー入力 - public bool keyEnable = true; //ON/OFF of rotation key operation //旋回キーの ON/OFF - public KeyCode keyLeft = KeyCode.KeypadMinus; //Left rotation key //左旋回キー - public KeyCode keyRight = KeyCode.KeypadPlus; //Right rotation key //右旋回キー - - //Swipe //スワイプ - public bool swipeEnable = true; //ON/OFF of rotation swipe operation //スワイプで旋回の ON/OFF - } - public TurnOperation turnOperation; - - - //Height operation - //高さの操作 - [Serializable] - public class HeightOperation - { - public float damping = 2.0f; //Smooth moving speed of height //上下高さのスムーズ移動速度 - - //Key input //キー入力 - public bool keyEnable = true; //ON/OFF of height key operation //高さのキー操作の ON/OFF - public float keySpeed = 1.5f; //Speed by key operation //キー操作での移動速度 - public KeyCode keyUp = KeyCode.C; //Key height up //高さ上へキー - public KeyCode keyDown = KeyCode.V; //Keys height down //高さ下へキー - - //Drag //ドラッグ - public bool dragEnable = true; //ON/OFF of height drag operation //高さのドラッグ操作での ON/OFF - public float dragSpeed = 0.5f; //Speed by drag operation //ドラッグ操作での高さ移動速度 - } - public HeightOperation heightOperation; - - - //Distance operation - //距離の操作 - [Serializable] - public class DistanceOperation - { - public float damping = 1.0f; //Smooth moving speed of distance //距離のスムーズ移動速度(キーとホイール) - public float min = 1.0f; //Minimum distance on XZ plane //XZ平面での最小距離 - - //キー入力 - public bool keyEnable = true; //ON/OFF of distance key operation //距離のキー操作の ON/OFF - public float keySpeed = 0.5f; //Speed by key operation //距離の移動速度 - public KeyCode keyNear = KeyCode.B; //Key distance near //近くへキー - public KeyCode keyFar = KeyCode.N; //Key distance far //遠くへキー - - //ホイール - public bool wheelEnable = true; //ON/OFF of distance wheel operation //距離のホイール操作の ON/OFF - public float wheelSpeed = 7f; //Speed by wheel operation //ホイール1目盛りの速度 - - //ピンチ - public bool pinchEnable = true; //ON/OFF of distance pinch operation //ピンチで距離を操作する - public float pinchDamping = 5f; //Smooth moving speed of distance at pinch //ピンチでの距離のスムーズ移動速度(キーとホイールでの操作と分けるため) - public float pinchSpeed = 40f; //Speed by pinch operation //ピンチでの距離の変化速度 - } - public DistanceOperation distanceOperation; - - - //Initial reset operation - //初期状態リセット操作 - [Serializable] - public class ResetOperation - { - public bool keyEnable = true; //ON/OFF of reset key operation //初期状態リセットキーの ON/OFF - public KeyCode key = KeyCode.KeypadPeriod; //Key reset //初期状態リセットキー - } - public ResetOperation resetOperation; - -#endregion Inspector settings Section - -#region Properties and Local values Section - - //Local Values - float angle; //Camera angle (XZ plane) //カメラアングル(XZ平面) - Vector3 startPos; //Mouse movement start point //マウス移動始点 - float wantedDistance; //Destination distance //変化先距離 - float resetDistance; //For initial distance //初期距離保存用 - float resetHeight; //For initial height //初期位置高さ保存用 - bool pinched = false; //Flag operated with pinch (switch between distanceDamping and pinchDistanceDamping) //ピンチで操作したフラグ(distanceDamping と pinchDistanceDamping を切り替える) - bool dragging = false; //Drag operation flag //ドラッグの操作中フラグ - - - //Initial reset - //状態リセット(初期状態に戻す) - public void ResetOperations() - { - height = resetHeight; - distance = wantedDistance = resetDistance; - angle = preAngle; - } - -#endregion Properties and Local values Section - -#region Unity life cycle Section - - // Use this for initialization - void Start() - { - if (autoInitOnPlay && target != null) - { - height = transform.position.y - target.position.y; - Vector3 dir = Vector3.ProjectOnPlane(target.position - transform.position, Vector3.up); - distance = dir.magnitude; - preAngle = AngleXZWithSign(target.forward, dir); - } - - angle = preAngle; - resetDistance = wantedDistance = distance; - resetHeight = height; - } - - // Update is called once per frame - void Update() - { -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch //タッチで取得したいプラットフォームのみ(モバイル等) - if (Input.touchCount != 1 || Input.touches[0].fingerId != 0) //Limit to operation of the first finger //最初の指1本の操作に限定する - { - dragging = false; - return; - } -#endif - //Rotation operation - //回転のキー操作 - if (angleOperation.keyEnable) - { - if (Input.GetKey(angleOperation.keyLeft)) - angle = Mathf.Repeat(angle + angleOperation.keySpeed * Time.deltaTime, 360f); - - if (Input.GetKey(angleOperation.keyRight)) - angle = Mathf.Repeat(angle - angleOperation.keySpeed * Time.deltaTime, 360f); - } - - //Turn operation (constant angle rotation) - //旋回(一定角度回転)キー操作 - if (turnOperation.keyEnable) - { - if (Input.GetKeyDown(turnOperation.keyLeft)) - TurnLeft(); - - if (Input.GetKeyDown(turnOperation.keyRight)) - TurnRight(); - } - - //Height operation - //高さのキー操作 - if (heightOperation.keyEnable) - { - if (Input.GetKey(heightOperation.keyUp)) - height += heightOperation.keySpeed * Time.deltaTime; - - if (Input.GetKey(heightOperation.keyDown)) - height -= heightOperation.keySpeed * Time.deltaTime; - } - - //Rotation or height operation by drag - //ドラッグ操作 - if (angleOperation.dragEnable || heightOperation.dragEnable) - { - Vector3 movePos = Vector3.zero; - - if (!dragging && Input.GetMouseButtonDown(0)) - { - startPos = Input.mousePosition; - if (validArea.xMin * Screen.width <= startPos.x && startPos.x <= validArea.xMax * Screen.width && - validArea.yMin * Screen.height <= startPos.y && startPos.y <= validArea.yMax * Screen.height) - { - dragging = true; - } - } - else if (dragging) - { - if (Input.GetMouseButton(0)) - { - movePos = Input.mousePosition - startPos; - startPos = Input.mousePosition; - - //Restrict by drag width (to separate from swipe) - //ドラッグ幅で制限する(スワイプと分別するため) - if (angleOperation.dragWidthLimit > 0) - { - float limit = (widthReference ? Screen.width : Screen.height) * angleOperation.dragWidthLimit; - float d = Mathf.Max(Mathf.Abs(movePos.x), Mathf.Abs(movePos.y)); //大きい方で判定 - if (d > limit) - { - movePos = Vector3.zero; //To disable drag //操作を無効にする - dragging = false; - } - } - } - else //Input.GetMouseButtonUp(0), exit - { - dragging = false; - } - } - - if (movePos != Vector3.zero) - { - //Rotation drag operation - //回転のドラッグ操作 - if (angleOperation.dragEnable) - angle = Mathf.Repeat(angle + movePos.x * angleOperation.dragSpeed * Time.deltaTime, 360f); - - //Heigh drag operation - //高さのドラッグ操作 - if (heightOperation.dragEnable) - height -= movePos.y * heightOperation.dragSpeed * Time.deltaTime; - } - } - - //Distance operation - //距離のキー操作 - if (distanceOperation.keyEnable) - { - if (Input.GetKey(distanceOperation.keyNear)) - { - wantedDistance = Mathf.Max(distanceOperation.min, distance - distanceOperation.keySpeed); - pinched = false; - } - - if (Input.GetKey(distanceOperation.keyFar)) - { - wantedDistance = distance + distanceOperation.keySpeed; - pinched = false; - } - } - - //Distance operation by wheel - //距離のホイール遠近 - if (distanceOperation.wheelEnable) - { - float mw = Input.GetAxis("Mouse ScrollWheel"); //-0.1f, 0f, 0.1f - if (mw != 0) - { - wantedDistance = Mathf.Max(distanceOperation.min, distance - mw * distanceOperation.wheelSpeed); //0.1 x n times - pinched = false; - } - } - - //Initial reset operation - //初期状態リセット - if (resetOperation.keyEnable) - { - if (Input.GetKeyDown(resetOperation.key)) - ResetOperations(); - } - } - - void LateUpdate() - { - if (target == null) - return; - - //Follower position - //追従先位置 - float wantedRotationAngle = target.eulerAngles.y + angle; - float wantedHeight = target.position.y + height; - - //Current position - //現在位置 - float currentRotationAngle = transform.eulerAngles.y; - float currentHeight = transform.position.y; - - //Smooth movement distance (direction) to following destination - //追従先へのスムーズ移動距離(方向) - currentRotationAngle = Mathf.LerpAngle(currentRotationAngle, wantedRotationAngle, - angleOperation.damping * Time.deltaTime); - currentHeight = Mathf.Lerp(currentHeight, wantedHeight, heightOperation.damping * Time.deltaTime); - distance = Mathf.Lerp(distance, wantedDistance, - (pinched ? distanceOperation.pinchDamping : distanceOperation.damping) * Time.deltaTime); - - //Camera movement - //カメラの移動 - var currentRotation = Quaternion.Euler(0, currentRotationAngle, 0); - Vector3 pos = target.position - currentRotation * Vector3.forward * distance; - pos.y = currentHeight; - transform.position = pos; - - transform.LookAt(target); - } - -#endregion Unity life cycle Section - -#region Pinch, Swipe operation Section - - //width: distance of two fingers of pinch - //center: The coordinates of the center of two fingers of a pinch - // - //width: ピンチ幅 - //center: ピンチの2本指の中心の座標 - public void OnPinchStart(float width, Vector2 center) - { - //Not used - } - - - //Pinch to operate distance (for mobile) - //(*) use PinchInput.OnPinch callback handler - //http://fantom1x.blog130.fc2.com/blog-entry-288.html - //width: distance of two fingers of pinch - //delta: The difference in pinch width just before - //ratio: Stretch ratio from the start of pinch width (1:At the start of pinch, Expand by 1 or more, lower than 1 (1/2, 1/3, ...) - // - //ピンチで距離を操作(モバイル等) - //http://fantom1x.blog130.fc2.com/blog-entry-288.html - //・PinchInput.OnPinch のコールバックハンドラ - //width: ピンチ幅 - //delta: 直前のピンチ幅の差 - //ratio: ピンチ幅の開始時からの伸縮比 (1:ピンチ開始時, 1以上拡大, 1より下(1/2,1/3,...)縮小) - public void OnPinch(float width, float delta, float ratio) - { - if (!distanceOperation.pinchEnable) - return; - - if (delta != 0) - { - wantedDistance = Mathf.Max(distanceOperation.min, distance - delta * distanceOperation.pinchSpeed); - pinched = true; - } - } - - - //Swipe to operate turn - //(*) SwipeInput.OnSwipe callback handler - //http://fantom1x.blog130.fc2.com/blog-entry-250.html - // - //スワイプで旋回 - //・SwipeInput.OnSwipe のコールバックハンドラ - //http://fantom1x.blog130.fc2.com/blog-entry-250.html - public void OnSwipe(Vector2 dir) - { - if (!turnOperation.swipeEnable) - return; - - if (dir == Vector2.left) - TurnLeft(); - else if (dir == Vector2.right) - TurnRight(); - } - - - //Turn left operation (constant angle rotation) - //左旋回(一定角度旋回) - public void TurnLeft() - { - angle = Mathf.Repeat(MultipleCeil(angle - turnOperation.angle, turnOperation.angle), 360f); - } - - //Turn right operation (constant angle rotation) - //右旋回(一定角度旋回) - public void TurnRight() - { - angle = Mathf.Repeat(MultipleFloor(angle + turnOperation.angle, turnOperation.angle), 360f); - } - -#endregion Pinch, Swipe operation Section - -#region Other static method Section - - //Calculate a smaller multiple - //より小さい倍数を求める(倍数で切り捨てられるような値) - //http://fantom1x.blog130.fc2.com/blog-entry-248.html - static float MultipleFloor(float value, float multiple) - { - return Mathf.Floor(value / multiple) * multiple; - } - - //Calculate a larger multiple - //より大きい倍数を求める(倍数で繰り上がるような値) - static float MultipleCeil(float value, float multiple) - { - return Mathf.Ceil(value / multiple) * multiple; - } - - //Angle between direction vectors in 2D (XY plane) with sign (degrees) - //2D(XY平面)での方向ベクトル同士の角度を符号付きで返す(度) - //http://fantom1x.blog130.fc2.com/blog-entry-253.html#AngleWithSign - static float AngleXZWithSign(Vector3 from, Vector3 to) - { - Vector3 projFrom = from; - Vector3 projTo = to; - projFrom.y = projTo.y = 0; //Ignore y axis (project on XZ plane) //y軸を無視する(XZ平面に投影する) - float angle = Vector3.Angle(projFrom, projTo); - float cross = CrossXZ(projFrom, projTo); - return (cross != 0) ? angle * -Mathf.Sign(cross) : angle; //Invert the sign of the 2D outer product //2D外積の符号を反転する - } - - //Outer product in 2D (XY plane) - //2Dでの外積を求める(XY平面) - //http://fantom1x.blog130.fc2.com/blog-entry-253.html#Cross2D - static float CrossXZ(Vector3 a, Vector3 b) - { - return a.x * b.z - a.z * b.x; - } - -#endregion Other static method Section - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example.meta deleted file mode 100644 index 43842924..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b5b64dd232706bd4f8dc183d09c1d3ac -folderAsset: yes -timeCreated: 1530438043 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example/EasyMusicPlayer.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example/EasyMusicPlayer.cs deleted file mode 100644 index 2760489a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example/EasyMusicPlayer.cs +++ /dev/null @@ -1,1762 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.Networking; -using UnityEngine.UI; -using Random = UnityEngine.Random; - -namespace FantomLib.Example -{ - /// - /// Easy Music Player - /// - /// A sample that realizes simple music player function by using information acquisition of audio file and dialogs. - ///·For 'Next()', 'Prev()', the playback mode is 'one song loop' / 'continuous playback' is list order, and when it is 'shuffle' it is randomly arranged. - ///·Shuffle table is initialized when there are changes such as playback mode, setting options, song deletion etc. - ///·Preset songs are not included in saving playlist. Preset songs are added to the playlist at startup. - /// - /// オーディオファイルの情報取得とダイアログを利用して、簡単な音楽プレイヤー機能を実現するサンプル。 - ///・Next(), Prev() は再生モード(mode)が1曲ループ/連続再生はリスト順、シャッフルのときはランダムな並びになる。 - ///・再生モード、設定オプション、曲の削除など変化があった場合、シャッフルテーブルは初期化される。 - ///・プレイリスト保存にはプリセット曲は含まれない。プリセット曲は起動時にプレイリストに追加される。 - /// - public class EasyMusicPlayer : MonoBehaviour, ILocalizable - { -#region Inspector settings Section - - //Inspector Settings - [Serializable] - public enum Mode - { - Loop, //1 song loop //1曲ループ - Next, //Sequentially in the playlist //連続再生 - Shuffle, //Shuffle order in the playlist //シャッフル - } - - [SerializeField] private Mode mode = Mode.Loop; //Playback mode - - [SerializeField] private bool exceptPresets = false; //When Next or Shuffle mode, exclude preset songs. //連続再生、シャッフルモードのとき、プリセット曲を含める。 - [SerializeField] private bool autoPlaylistOnError = true; //Automatically remove from playlist when song errors. //曲のエラー時にリストから自動的に削除する。 - [SerializeField] private bool autoSettingOnError = true; //Automatically correct setting errors. //設定のエラーを自動的に修正する。 - - public bool playOnAwake = false; //Play song at startup - - public Text displayTitle; //Display song title - public string titlePrefix = "♪ "; //Dispalay "Prefix + Title" - public Text displayArtist; //Display song artist - public string artistUnknown = ""; //Alternate name when empty - - [SerializeField] private string[] mimeTypes; //MIME types for storage - - //Key operation (Mainly for debug) - public bool useKey = false; //Use key operation - public KeyCode nextKey = KeyCode.PageUp; //Play next song in playlist - public KeyCode prevKey = KeyCode.PageDown; //Play prev song in playlist - - - public bool saveSetting = true; //Save setting - public bool savePlaylist = true; //Save playlist - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. - - public AudioSource audioSource; - - [Serializable] - public class PlayItem - { - public AudioClip clip; - public string path; //also key ("#~" = preset song, "/storage/~" = added song) - public string title; - public string artist; - - public PlayItem() { } - - public PlayItem(string path, string title, string artist) - : this (null, path, title, artist) { } - - public PlayItem(AudioClip clip, string path, string title, string artist) - { - this.clip = clip; - this.path = path; - this.title = title; - this.artist = artist; - } - - public override string ToString() - { - return JsonUtility.ToJson(this); //For debug - } - } - - public List presets; //Preset songs (internal songs) - private List playlist; //Customizable playlist at runtime (including preset songs at startup) - - - //Callbacks - [Serializable] public class SongChangedHandler : UnityEvent { } - public SongChangedHandler OnSongChanged; - - [Serializable] public class SongIntChangedHandler : UnityEvent { } - public SongIntChangedHandler OnSongIntChanged; - - [Serializable] public class PlaybackModeChangedHandler : UnityEvent { } - public PlaybackModeChangedHandler OnPlaybackModeChanged; - - [Serializable] public class PlaybackModeIntChangedHandler : UnityEvent { } //Converted 'Mode' to int type - public PlaybackModeIntChangedHandler OnPlaybackModeIntChanged; - - //Callback when error. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error message - public ErrorHandler OnError; - -#endregion Inspector settings Section - -#region PlayerPrefs Section - - const string SETTING_PREF = "_setting"; - const string PLAYLIST_PREF = "_playlist"; - - public string SaveSettingKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SETTING_PREF : saveKey + SETTING_PREF; } - } - - public string SavePlaylistKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + PLAYLIST_PREF : saveKey + PLAYLIST_PREF; } - } - - //設定のロード - public void LoadSetting() - { - Param param = Param.GetPlayerPrefs(SaveSettingKey); - if (param != null) - { - index = Mathf.Clamp(param.GetInt(KEY_SONG, index), 0, Mathf.Max(0, playlist.Count - 1)); //(*) It needs to be initialized with InitPlaylist() first. //※先に InitPlaylist() で初期化されている必要がある。 - exceptPresets = param.GetBool(KEY_EXCEPT_PRESETS, exceptPresets); - autoPlaylistOnError = param.GetBool(KEY_AUTO_PLAYLIST, autoPlaylistOnError); - autoSettingOnError = param.GetBool(KEY_AUTO_SETTING, autoSettingOnError); - SetMode(param.GetString(KEY_MODE, mode.ToString())); //(*) Here the state is updated. //※ここで状態が更新される。 - } - } - - //設定の保存 - public void SaveSetting() - { - Param param = new Param(); - param.Set(KEY_SONG, index); - param.Set(KEY_MODE, mode); //to string - param.Set(KEY_EXCEPT_PRESETS, exceptPresets); - param.Set(KEY_AUTO_PLAYLIST, autoPlaylistOnError); - param.Set(KEY_AUTO_SETTING, autoSettingOnError); - Param.SetPlayerPrefs(SaveSettingKey, param); - PlayerPrefs.Save(); - } - - //Save the playlist as an array (JSON data are saved). - //プレイリストを配列として保存する(保存されるのはJSONデータ) - private void SavePlaylist() - { - XPlayerPrefs.SetArray(SavePlaylistKey, playlist.Where((e, i) => i >= presets.Count).ToArray()); //Exclude preset songs - PlayerPrefs.Save(); - } - - //Loading and initializing playlists - //・Internal songs (presets) have "#key" in place of path.) - //・If the original data is empty, the key is prefixed with '#' + index number or '#' at the beginning of the existing character string (keys can not be duplicated). - //・Internal songs (presets) are always added to the playlist. - //・Something with a "#" at the beginning of the saved path is always ignored (because it is confused with the preset song, not usually). - // - //プレイリストのロードと初期化 - //・内部の楽曲(presets)は path の代わりに "#key" を持たせておく。 - //・キーは元のデータが空の場合、'#'+インデクス番号、または既存の文字列の先頭に '#' が付加される(キーは重複不可)。 - //・常に内部の楽曲(presets)はプレイリストに追加される。 - //・保存されているパスの頭に"#"が付いているものは常に無視される(プリセット曲と混同するため。通常は無い)。 - private void InitPlaylist() - { - if (playlist == null) - playlist = new List(); - - playlist.Clear(); - - //Add preset songs - for (int i = 0; i < presets.Count; i++) - { - string key = presets[i].path; - if (string.IsNullOrEmpty(key)) - key = "#" + i; //like "#0", "#1", ... - if (key[0] != '#') - key = "#" + key; //like "#key" - - playlist.Add(new PlayItem(presets[i].clip, key, presets[i].title, presets[i].artist)); - } - - //Add saved playlist - PlayItem[] items = XPlayerPrefs.GetArray(SavePlaylistKey); - if (items != null) - { - for (int i = 0; i < items.Length; i++) - { - string path = items[i].path; - if (!string.IsNullOrEmpty(path) && path[0] != '#') //Ignore "#~" songs in the saved playlist (Normaly not) - { - items[i].clip = null; - playlist.Add(items[i]); - } - } - } - } - -#endregion PlayerPrefs Section - -#region Properties and Local values Section - - private string DefaultMimeType { - get { return AndroidMimeType.Audio.All; } - } - - //Multiple MIME type specifications. - //(*) Note that valid MIME type by provider (storage) is different and may not apply. - // - //複数の MIME type 指定。 - //※プロバイダ(ストレージ)によって有効な MIME type は異なり、適用されない場合もあるので注意。 - public string[] MimeTypes { - get { - if (mimeTypes == null || mimeTypes.Length == 0) - mimeTypes = new string[] { DefaultMimeType }; - - return mimeTypes; - } - set { - if (value != null && value.Length > 0) - mimeTypes = value; - else - mimeTypes = new string[] { DefaultMimeType }; - } - } - - //Set up as a single MIME type. However, it is internally managed by array. - //(*) Acquisition returns [0]. When multiple MIME types are set, it is desirable that [0] is the main one. - //(*) Note that valid MIME type by provider (storage) is different and may not apply. - // - //単一で MIME type 設定。ただし、内部では配列で管理される。 - //※取得は [0] が返される。複数の MIME type がセットされてる場合、[0] が主要なものであることが望ましい。 - //※プロバイダ(ストレージ)によって有効な MIME type は異なり、適用されない場合もあるので注意。 - public string MimeType { - get { - return MimeTypes[0]; - } - set { - string mimeType = value; - if (string.IsNullOrEmpty(mimeType)) - mimeType = DefaultMimeType; - - if (mimeTypes != null && mimeTypes.Length == 1) - mimeTypes[0] = mimeType; - else - mimeTypes = new string[]{ mimeType }; - } - } - - - //Current index in playlist (When illegal = -1) - private int index = 0; - - //Current index in playlist (When illegal = -1) - //現在のプレイリスト内でのインデクス(不正のとき = -1) - public int CurrentIndex { - get { return index; } - set { - Play(value); - } - } - - //Is it playing? - //再生中かどうか? - public bool IsPlaying { - get { return (audioSource != null && audioSource.isPlaying); } - } - - //Whether the index is in a valid range for the playlist. - //インデクスがプレイリストの有効な範囲にあるか? - private bool IsValidIndex(int idx) { - return (playlist != null && 0 <= idx && idx < playlist.Count); - } - - //Whether the index is in a valid range for the presets. - //インデクスがプリセットの有効な範囲にあるか? - private bool IsPresetIndex(int idx) { - return (presets != null && 0 <= idx && idx < presets.Count); - } - - //Whether the AudioClip of the index is valid (Not null? Mainly used for preset song judgment) - //インデクスの AudioClip が有効(null 以外)か?(主にプリセット曲判別に使う) - private bool IsValidClip(int idx) - { - return (IsValidIndex(idx) && playlist[idx].clip != null); - } - - //Get index by the path (key) from 'playlist'. (Forward sequential search) - //・"/storage/~" (Preset songs have "#~" in place of path.) - // - //プレイリストから、パス(キー)でインデクス取得(前方逐次検索) - //・プリセット曲は path の代わりに "#~" を持たせてある。 - private int IndexOfPlaylist(string path) - { - if (playlist == null) - return -1; //nothing - - for (int i = 0; i < playlist.Count; i++) //(*) Because it is a sequential search, when there are a large number, efficiency is not good, attention. //※逐次検索のため、大量にある場合は効率が良くないので注意。 - { - if (path == playlist[i].path) - return i; - } - return -1; //not found - } - - //Get index by the path (key) from 'playlist'. (Backward sequential search) - //・"/storage/~" (Preset songs have "#~" in place of path.) - // - //プレイリストから、パス(キー)でインデクス取得(後方逐次検索) - //・プリセット曲は path の代わりに "#~" を持たせてある。 - private int LastIndexOfRangePlaylist(string path, int from = -1, int to = -1) //It must be 'from >= to'. - { - if (playlist == null) - return -1; //nothing - - int sidx = (0 <= from && from < playlist.Count) ? from : playlist.Count - 1; - int eidx = (0 <= to && to < playlist.Count) ? to : 0; - for (int i = sidx; i >= eidx; i--) //(*) Because it is a sequential search, when there are a large number, efficiency is not good, attention. //※逐次検索のため、大量にある場合は効率が良くないので注意。 - { - if (path == playlist[i].path) - return i; - } - return -1; //not found - } - - //Generate arrays of keys and titles from 'playlist'. - //プレイリストからキーとタイトルの配列を生成する - private void GetPlaylistKeyAndTitleArrays(out string[] keys, out string[] titles, bool addPresets = true) - { - int len = addPresets ? playlist.Count : (playlist.Count - presets.Count); - keys = new string[len]; //path - titles = new string[len]; - - int sidx = addPresets ? 0 : presets.Count; - for (int i = sidx, p = 0; i < playlist.Count; i++, p++) - { - keys[p] = playlist[i].path; - titles[p] = playlist[i].title; - } - } - - //'Next' or 'Shuffle' mode also includes preset songs [* Update only when there is change and save setting] - //連続再生, シャッフルモードのときプリセット曲も含む [※変化があったときのみ更新と設定保存] - public bool IsExceptPresets { - get { return exceptPresets; } - set { - if (exceptPresets != value) - { - exceptPresets = value; - InitShuffleTable(); - - if (saveSetting) - SaveSetting(); - } - } - } - - //First index to be played back (Mainly used in 'Next' or 'Shuffle' mode) - //再生対象の最初のインデクス(主に 'Next' または 'Shuffle' モードで使う) - private int TargetSongFirstIndex - { - get { return exceptPresets ? presets.Count : 0; } - } - - //Number of songs to be played back (Mainly used in 'Next' or 'Shuffle' mode) - //再生対象の曲数(主に 'Next' または 'Shuffle' モードで使う) - private int TargetSongCount - { - get { return exceptPresets ? Mathf.Max(0, playlist.Count - presets.Count) : playlist.Count; } - } - - - //Playback mode setting (Property) [* Update only when there is a change] - //再生モードの設定(プロパティ)[※変化があったときのみ更新] - public Mode PlaybackMode { - get { return mode; } - set { - if (mode != value) - SetMode(value); - } - } - - //Playback mode setting (Specify by int type [index]) [* Update only when there is a change] - //再生モードの設定(int 型 [インデクス] で指定する)[※変化があったときだけ更新] - public void SetPlaybackMode(int idx) - { - PlaybackMode = (Mode)Enum.ToObject(typeof(Mode), idx); - } - - //Playback mode setting (Specify by string type) [* Update only when there is a change] - //再生モードの設定(文字列型で指定する)[※変化があったときだけ更新] - private void SetPlaybackMode(string str) - { - PlaybackMode = (Mode)Enum.Parse(typeof(Mode), str); - } - - //Playback mode setting [* Always update] - //再生モードの設定 [※常に更新] - private void SetMode(Mode md) - { - if (mode != md) - { - mode = md; - - if (OnPlaybackModeChanged != null) - OnPlaybackModeChanged.Invoke(mode); - if (OnPlaybackModeIntChanged != null) - OnPlaybackModeIntChanged.Invoke((int)mode); - - if (saveSetting) - SaveSetting(); - } - - if (mode == Mode.Loop) - { - StopSongFinishCheck(); - - if (audioSource != null) - audioSource.loop = true; - } - else - { - if (audioSource != null) - audioSource.loop = false; - - StartSongFinishCheck(); - } - - InitShuffleTable(); - } - - //Playback mode setting (string character overload) - //再生モードの設定(文字列のオーバーロード) - private void SetMode(string str) - { - SetMode((Mode)Enum.Parse(typeof(Mode), str)); - } - - - //Reset settings and delete saved data (*'index' remains as it is) - //設定のリセットと保存データの削除(※ただし index はそのまま) - private void ResetSetting() - { - exceptPresets = initExceptPresets; - autoPlaylistOnError = initAutoPlaylistOnError; - autoSettingOnError = initAutoSettingOnError; - SetMode(initMode); //Update here - PlayerPrefs.DeleteKey(SaveSettingKey); - } - - //Reset playlist and delete saved data - //プレイリストのリセットと保存データの削除 - private void ResetPlaylist() - { - if (!IsPresetIndex(index)) - Stop(); - - PlayerPrefs.DeleteKey(SavePlaylistKey); - InitPlaylist(); - InitShuffleTable(); - - Play(IsPresetIndex(index) ? index : 0); - } - - //Reset playlist and settings (use this when both resetting) - //プレイリストと設定のリセット(両方リセットする時にはこれを使う) - private void ResetPlaylistAndSetting() - { - if (!IsPresetIndex(index)) - Stop(); - - PlayerPrefs.DeleteKey(SavePlaylistKey); - InitPlaylist(); - ResetSetting(); //Update here - - Play(IsPresetIndex(index) ? index : 0); - } - - //The values for reset. - private Mode initMode; - private bool initExceptPresets; - private bool initAutoPlaylistOnError; - private bool initAutoSettingOnError; - - //Store the values of the inspector. - private void StoreInitValue() - { - initMode = mode; - initExceptPresets = exceptPresets; - initAutoPlaylistOnError = autoPlaylistOnError; - initAutoSettingOnError = autoSettingOnError; - } - - - //Check empty or other errors. - private void CheckForErrors() - { - if (!exceptPresets && presets.Count == 0) - { - //Since it is reset to preset songs, such as file reading failed / setting error etc. - //ファイルの読み込み失敗/設定エラーのときなどプリセット曲に再設定されることがあるため - Debug.LogWarning("Preset songs is empty (It is better to have one song as possible)."); - } - else - { - HashSet set = new HashSet(); //duplicate check - for (int i = 0; i < playlist.Count; i++) - set.Add(playlist[i].path); - - if (set.Count != playlist.Count) - Debug.LogError("There are duplicate keys (path) in the 'presets' or 'playlist'."); - } - } - -#endregion Properties and Local values Section - -#region Unity life cycle section - - private void OnApplicationPause(bool pause) - { - if (pause) - SaveSetting(); - } - - private void OnApplicationQuit() - { - SaveSetting(); - } - - - // Use this for initialization - private void Awake() - { - if (localize == null) - localize = new LocalizeData(); - - StoreInitValue(); - - if (audioSource == null) - { - audioSource = GetComponent(); - if (audioSource == null) - audioSource = gameObject.AddComponent(); - } - audioSource.playOnAwake = false; - - if (mimeTypes == null || mimeTypes.Length == 0) - MimeType = DefaultMimeType; - } - - private void Start() - { - InitPlaylist(); - - if (saveSetting) - LoadSetting(); - - if (playOnAwake) - Play(); - -#if UNITY_EDITOR - CheckForErrors(); //Check empty or other errors (Editor only) -#endif - } - - // Update is called once per frame - private void Update() - { - if (useKey) - { - if (Input.GetKeyUp(nextKey)) - { - Next(); - return; - } - if (Input.GetKeyUp(prevKey)) - { - Prev(); - return; - } - } - - switch (mode) - { - case Mode.Loop: - break; - - case Mode.Next: - case Mode.Shuffle: - if (IsSongFinished()) - { - StopSongFinishCheck(); - Next(); - } - break; - } - } - -#endregion Unity life cycle section - -#region Music Player Section - - bool isFinishChecking = false; //Checking end of song - - //Note that it can not be detected unless audioSource.loop = false. - //※audioSource.loop = false でないと検出できないことに注意。 - private bool IsSongFinished() - { - return (isFinishChecking && audioSource.clip != null - && !audioSource.isPlaying && audioSource.timeSamples == 0); - } - - //Start of music end detection (* music must already be played) - //楽曲終了検出開始(※曲が既に再生されている必要がある) - private void StartSongFinishCheck() - { - if (IsPlaying) - isFinishChecking = true; - } - - //Stop detection of song completion - //楽曲終了検出停止 - private void StopSongFinishCheck() - { - isFinishChecking = false; - } - - //Index of shuffled songs (Index only for playback target range). - //シャッフルされた曲のインデクス(再生対象のみのインデクス) - List shuffleTable; - - //Position in the current shuffle table (Shuffle again when you go to the end). - //現在のシャッフルテーブルでの位置(最後まで行くと再度シャッフルされる) - int shufflePtr = 0; - - //Initialize the music sequence table (index number) for shuffling - //(*) When adding / deleting a song, changing play mode, etc., it is necessary to regenerate. - //シャッフル用の曲順テーブル(インデクス番号)を初期化する - //※曲の追加・削除、再生モードの変更されたときなどは、必ず再生成する必要がある。 - private void InitShuffleTable(int idx = -1) //idx: Search inside the shuffleTable and set shufflePtr / -1: Search the current index / int.MinValue: Not search (to be shufflePtr = -1) - { - if (mode != Mode.Shuffle) - { - shuffleTable = null; - return; - } - - if (shuffleTable == null) - shuffleTable = new List(); - - shuffleTable.Clear(); - - for (int i = TargetSongFirstIndex; i < playlist.Count; i++) - shuffleTable.Add(i); - - Shuffle(shuffleTable); - if (idx == int.MinValue) //Do not search the current index - shufflePtr = -1; //next to be always 0 - else - shufflePtr = shuffleTable.IndexOf(idx >= 0 ? idx : index); //not found = -1 (next to be always 0) - } - - //Move the 'shufflePtr' forward in the 'shuffleTable' (shuffle the table again when it goes to the end) - //shuffleTable 内で、shufflePtr を次へ進ませる(最後まで行ったら、再度テーブルをシャッフルする) - private void ShuffleNext() - { - if (AutoSettingCheckAndExecute()) - return; - - if (shuffleTable == null || shuffleTable.Count == 0) - return; - - shufflePtr = Mathf.Max(0, ++shufflePtr); - if (shufflePtr >= shuffleTable.Count) - { - int last = shuffleTable.Last(); - Shuffle(shuffleTable); - - //If the end of the previous table and the beginning of the table shuffled become the same song, change it randomly (so that it does not repeat). - //以前のテーブルの最後とシャッフルしたテーブルの先頭が同じ曲になった場合、ランダムで入れ替える(繰り返しに聴こえないように) - if (shuffleTable.Count > 2 && last == shuffleTable[0]) //Only when there are 3 or more songs //3曲以上あるときのみ - { - int r = Random.Range(1, shuffleTable.Count); //[1]~[n-1] - Swap(shuffleTable, 0, r); - } - - shufflePtr = 0; - } - - Play(shuffleTable[shufflePtr], 1); - } - - //Move the 'shufflePtr' backward in the 'shuffleTable' - //shuffleTable 内で、shufflePtr を前へ進ませる - private void ShufflePrev() - { - if (AutoSettingCheckAndExecute()) - return; - - if (shuffleTable == null || shuffleTable.Count == 0) - return; - - shufflePtr = Repeat(--shufflePtr, 0, shuffleTable.Count); - Play(shuffleTable[shufflePtr], -1); - } - - - //Mainly from the outside "Forward" operation - //主に外部からの「次へ」操作 - public void Next() - { - if (AutoSettingCheckAndExecute()) - return; - - if (mode == Mode.Shuffle) - ShuffleNext(); - else - Next(index); - } - - //Specify index + 1 in the playlist range (Beyond the last, go to the first). - //(*) It does not come here when shuffling. - // - //プレイリスト範囲内で指定インデクス +1 する(最後の次は最初に戻る) - //※シャッフル時はここには来ない - private void Next(int idx) //idx: current index - { - Play(Repeat(idx + 1, mode == Mode.Loop ? 0 : TargetSongFirstIndex, playlist.Count), 1); - } - - //Mainly from the outside "Backward" operation - //主に外部からの「前へ」操作 - public void Prev() - { - if (AutoSettingCheckAndExecute()) - return; - - if (mode == Mode.Shuffle) - ShufflePrev(); - else - Prev(index); - } - - //Specify index - 1 in the playlist range (Below the first, go to the last). - //(*) It does not come here when shuffling. - // - //プレイリスト範囲内で指定インデクス -1 する(最初の次は最後になる) - //※シャッフル時はここには来ない - private void Prev(int idx) //idx: current index - { - Play(Repeat(idx - 1, mode == Mode.Loop ? 0 : TargetSongFirstIndex, playlist.Count), -1); - } - - - //Mainly from the outside "Playback" operation - //主に外部からの「再生」操作 - public void Play() - { - Play(index); - } - - private void Play(string key, int dir = 0) //key is same as path - { - Play(IndexOfPlaylist(key), dir); - } - - public void Play(int idx, int dir = 0) //dir: 1=next, 0=stay, -1:prev (Mainly next direction at error occurrence) - { - if (!IsValidIndex(idx)) - return; - - if (playlist[idx].clip == null) - StartCoroutine(LoadAudio(playlist[idx].path, idx, LoadAudioComplete, dir)); - else - PlayClip(idx); - } - - int retry = 0; //load fail count - - //When Load is successful, play AudioClip - //ロードが成功したとき、AudioClipを再生する - private void PlayClip(int idx) - { - if (!IsValidIndex(idx)) - return; - - if (playlist[idx].clip == null || audioSource == null) - return; - - if (!audioSource.isPlaying || audioSource.clip != playlist[idx].clip) - { - Stop(); //Here 'StopSongFinishCheck()' is executed //ここで StopSongFinishCheck() が実行される - audioSource.clip = playlist[idx].clip; - audioSource.Play(); - - if (mode != Mode.Loop) - StartSongFinishCheck(); - - index = idx; //For callback sync - if (OnSongChanged != null) - OnSongChanged.Invoke(playlist[index]); - if (OnSongIntChanged != null) - OnSongIntChanged.Invoke(index); - } - - index = idx; - retry = 0; - DisplayInfo(); - - if (saveSetting) - SaveSetting(); //save index -#if UNITY_EDITOR - Debug.Log("PlayClip : index = " + index + ", title = " + playlist[index].title + ", artist = " + playlist[index].artist); -#endif - } - - //Stop playback - public void Stop() - { - if (IsPlaying) - { - StopSongFinishCheck(); - audioSource.Stop(); - - if (IsValidIndex(index)) - { - PlayItem data = playlist[index]; - if (data != null && data.path[0] != '#') //Added song ("#~" is preset song) - data.clip = null; - } - } - } - - //Check current status and settings and correct them - //現在の状態と設定のチェックと自動修正 - private bool AutoSettingCheckAndExecute() - { - //When the preset song is not included and there are no additional songs etc. - //プリセット曲を含まず、追加曲がないとき等 - if (TargetSongCount == 0) - { - string mes; - if (autoSettingOnError) - { - IsExceptPresets = false; //Ignored when there is no change //変化がないときには無視される - mes = localize.Text(localize.errorSongNotFound) - + "\n" + localize.Text(localize.optionalAutoExceptPresets); - } - else - { - mes = localize.Text(localize.errorSongNotFound) - + "\n" + localize.Text(localize.confirmSetting); - } - ShowToast(mes); - - Play(IsPresetIndex(index) ? index : 0); - - return true; - } - return false; - } - -#endregion Music Player Section - -#region Load AudioClip Section - - enum LoadedState - { - None, - Success, //Load success //ロード成功 - NotExist, //File not found //ファイルが存在しない - LoadFailure, //Read failed //読み込み失敗 - } - - LoadedState loadedState = LoadedState.None; //Loaded status //読み込み状態ステータス - AudioClip loadedClip; //Loaded AudioClip //読み込まれた AudioClip - - //Load song from file into AudioClip - //ファイルから楽曲を AudioClip にロードする - IEnumerator LoadAudio(string path, int idx, Action completeCallback, int dir = 0) - { - loadedClip = null; - loadedState = LoadedState.None; - - if (!File.Exists(path)) { - string mes = localize.Text(localize.errorNotExist) - + "\n" + path; - if (autoPlaylistOnError) - { - RemoveSongOnError(idx); - mes += "\n" + localize.Text(localize.optionalAutoPlaylist); - } - ShowToast(mes, true); - - loadedState = LoadedState.NotExist; - completeCallback(idx, dir); - yield break; - } - - yield return StartCoroutine(LoadToAudioClip(path)); - - if (loadedClip == null || loadedClip.loadState != AudioDataLoadState.Loaded) - { - string mes = localize.Text(localize.errorLoadFailure) - + "\n" + path; - if (autoPlaylistOnError) - { - RemoveSongOnError(idx); - mes += "\n" + localize.Text(localize.optionalAutoPlaylist); - } - ShowToast(mes, true); - - loadedState = LoadedState.LoadFailure; - loadedClip = null; - completeCallback(idx, dir); - yield break; - } - - loadedState = LoadedState.Success; - completeCallback(idx, dir); - } - - //Download the file as AudioClip - //ファイルを AudioClip としてダウンロードする - IEnumerator LoadToAudioClip(string path) - { - UnityWebRequest request = - UnityWebRequestMultimedia.GetAudioClip( - "file://" + path, AudioType.UNKNOWN); - yield return request.SendWebRequest(); - loadedClip = DownloadHandlerAudioClip.GetContent( - request); - } - - //Load processing complete callback handler - //ロード処理完了コールバックハンドラ - private void LoadAudioComplete(int idx, int dir = 1) - { - if (loadedState == LoadedState.Success) - { - if (IsValidIndex(idx)) - { - playlist[idx].clip = loadedClip; - PlayClip(idx); - } - } - else - { - //NotExist, LoadFailure //パス取得失敗, ロード失敗 - bool overLimit = autoPlaylistOnError ? (TargetSongCount == 0) : (++retry >= TargetSongCount); - if (overLimit) - { - //If the number of tracks to be played fails, forcibly set to preset or stop. - //再生対象曲数の回数失敗したら、強制的にプリセット曲または停止する - if (IsPresetIndex(index) || IsValidClip(0)) //preset song exists - { - if (autoSettingOnError) //Automatic correction of setting error //設定エラーの自動修正 - { - IsExceptPresets = false; //Ignored when there is no change //変化がないときには無視される - } - - Play(IsPresetIndex(index) ? index : 0); - } - else - { - Stop(); - } - } - else - { - switch (mode) - { - case Mode.Loop: - case Mode.Next: - if (dir != 0) - Stop(); //Release current - - //When 'autoPlaylistOnError = true', 'idx' is automatically deleted with an error. - //autoPlaylistOnError = true のとき、'idx'はエラーで自動削除されている。 - if (autoPlaylistOnError) - { - if (dir > 0) - Next(index); - else if (dir < 0) - Prev(index); - } - else - { - if (dir > 0) - Next(idx); - else if (dir < 0) - Prev(idx); - } - break; - - case Mode.Shuffle: - if (dir != 0) - Stop(); //Release current - - //If deleted due to an error, a new shuffle table is generated. - //エラーで削除された場合、新たなシャッフルテーブルが生成されている。 - if (dir > 0) - ShuffleNext(); - else if (dir < 0) - ShufflePrev(); - break; - } - } - } - } - - //Delete songs from playlist on file error - //ファイルエラー時にプレイリストから曲を削除 - private void RemoveSongOnError(int idx) - { - if (!IsValidIndex(idx)) - return; - - if (idx == index) //Current song - Stop(); - - string key = IsValidIndex(index) ? playlist[index].path : ""; //same as path - - playlist.RemoveAt(idx); - - index = string.IsNullOrEmpty(key) ? -1 : IndexOfPlaylist(key); //Not found = -1 - InitShuffleTable(IsValidIndex(index) ? index : int.MinValue); //-1 -> Do not search the current index - - if (savePlaylist) - SavePlaylist(); - } - -#endregion Load AudioClip Section - -#region Android Dialog Section - - const string KEY_SONG = "song"; - const string KEY_MODE = "mode"; - const string KEY_EXCEPT_PRESETS = "exceptPresets"; - const string KEY_AUTO_PLAYLIST = "autoPlaylist"; - const string KEY_AUTO_SETTING = "autoSetting"; - const string KEY_RESET_SETTING = "resetSetting"; - const string KEY_RESET_PLAYLIST = "resetPlaylist"; - -#pragma warning disable 0219 //'items' is never used. But it is used at runtime. - - //Open playlist and setting dialog - public void OpenSongDialog() - { -#if UNITY_ANDROID - string[] songKeys; string[] songTitles; - GetPlaylistKeyAndTitleArrays(out songKeys, out songTitles); - ToggleItem toggleItem = new ToggleItem( - songTitles, - KEY_SONG, - songKeys, - index, - 0, - "PreviewSong"); - - DivisorItem divisorItem = new DivisorItem(1); - - ToggleItem toggleMode = new ToggleItem( - localize.GetPlaybackCaptionArray(), - KEY_MODE, - Enum.GetNames(typeof(Mode)), - mode.ToString(), - 0); - - - CheckItem checkExceptPresets = new CheckItem(localize.Text(localize.exceptPresetsCaption), KEY_EXCEPT_PRESETS, exceptPresets, 0); - TextItem textExceptPresets = new TextItem(localize.Text(localize.exceptPresetsExplanation), Color.red); - - CheckItem checkAutoPlaylist = new CheckItem(localize.Text(localize.autoPlaylistCaption), KEY_AUTO_PLAYLIST, autoPlaylistOnError, 0); - CheckItem checkAutoSetting = new CheckItem(localize.Text(localize.autoSettingCaption), KEY_AUTO_SETTING, autoSettingOnError, 0); - - SwitchItem switchResetPlaylist = new SwitchItem(localize.Text(localize.resetPlaylistCaption), KEY_RESET_PLAYLIST, false, Color.blue); - SwitchItem switchResetSetting = new SwitchItem(localize.Text(localize.resetSettingCaption), KEY_RESET_SETTING, false, Color.blue); - - TextItem textReset = new TextItem(localize.Text(localize.resetExplanation), Color.red); - - DialogItem[] items = new DialogItem[] { - toggleItem, - divisorItem, - toggleMode, - checkExceptPresets, - textExceptPresets, - divisorItem, - checkAutoPlaylist, - checkAutoSetting, - divisorItem, - switchResetPlaylist, - switchResetSetting, - textReset, - }; -#endif - -#if UNITY_ANDROID && !UNITY_EDITOR - AndroidPlugin.ShowCustomDialog( - localize.Text(localize.songDialogTitle), "", - items, gameObject.name, "OnReceiveResult", false, - localize.Text(localize.songDialogOK), - localize.Text(localize.songDialogCancel)); -#endif - } - -#pragma warning restore 0219 //'items' is never used. But it is used at runtime. - - //「決定」時のコールバックハンドラ(主に設定を反映する) - private void OnReceiveResult(string message) - { - if (!string.IsNullOrEmpty(message)) - { - Param param = Param.Parse(message); - if (param != null) - { - bool resetSetting = param.GetBool(KEY_RESET_SETTING, false); //Reset settings //設定のリセット - bool resetPlaylist = param.GetBool(KEY_RESET_PLAYLIST, false); //Reset playlist //プレイリストのリセット - - if (resetSetting && resetPlaylist) - { - ResetPlaylistAndSetting(); - ShowToast(localize.Text(localize.messageResetBoth)); - } - else if (resetSetting) - { - ResetSetting(); - ShowToast(localize.Text(localize.messageResetSetting)); - } - else - { - if (resetPlaylist) - { - ResetPlaylist(); - ShowToast(localize.Text(localize.messageResetPlaylist)); - } - - IsExceptPresets = param.GetBool(KEY_EXCEPT_PRESETS, exceptPresets); - autoPlaylistOnError = param.GetBool(KEY_AUTO_PLAYLIST, autoPlaylistOnError); - autoSettingOnError = param.GetBool(KEY_AUTO_SETTING, autoSettingOnError); - SetPlaybackMode(param.GetString(KEY_MODE, mode.ToString())); - - if (saveSetting) - SaveSetting(); - } - } - } - } - - //Song preview playback callback handler (Mainly apply songs to be played). - //楽曲プレビュー再生コールバックハンドラ(主に再生する曲を反映する) - private void PreviewSong(string message) - { - if (!string.IsNullOrEmpty(message)) - { - Param param = Param.Parse(message); - if (param != null) - { - string path = param.GetString(KEY_SONG); //"song=path" - if (!string.IsNullOrEmpty(path)) - { - int idx = IndexOfPlaylist(path); - if (idx >= 0) - { - Play(path); - - if (mode == Mode.Shuffle) - shufflePtr = shuffleTable.IndexOf(idx); - } - else - ShowToast(localize.Text(localize.errorNotExist)); - } - } - } - } - - - //(*) Call the Storage Access Framework (API 19 [Android 4.4] or higher). - //Open storage to add song - public void OpenStorageToAdd() - { -#if UNITY_EDITOR - Debug.Log("OpenStorageToAdd called."); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageAudio(MimeTypes, gameObject.name, "ReceiveAddResult", "ReceiveAddError"); //Always json -#endif - } - - const string ErrorNotGetPathMessage = "Failed to get path."; - - //Callback handler when receive result - private void ReceiveAddResult(string result) - { - if (result[0] == '{') //Json - { - AudioInfo info = JsonUtility.FromJson(result); - if (!string.IsNullOrEmpty(info.path)) - AddSong(info); - else - ReceiveAddError(ErrorNotGetPathMessage); - } - else - ReceiveAddError(result); - } - - //Callback handler when receive error - private void ReceiveAddError(string message) - { - if (OnError != null) - OnError.Invoke(message); - } - - - //Extension that can be played - HashSet availableExtType = new HashSet() - { - ".mp3", ".ogg", ".wav" - }; - - //========================================================== - //(*) Callback handler from 'StorageOpenAudioController.OnResultInfo' - //========================================================== - //Add a new song file - //新しく楽曲ファイルを追加する - public void AddSong(AudioInfo info) - { - //Check if the path is not empty - //パスが空でないかをチェック - if (string.IsNullOrEmpty(info.path)) - { - ShowToast(localize.Text(localize.errorNotGetPath)); - return; - } - - //Available extension check - //利用できる拡張子チェック - string ext = Path.GetExtension(info.path).ToLower(); - if (!availableExtType.Contains(ext)) - { - ShowToast(localize.Text(localize.errorNotAvailableType)); - return; - } - - //Registered file (path) check - //登録済みファイル(パス)チェック - int idx = IndexOfPlaylist(info.path); - if (idx >= 0) - { - ShowToast(localize.Text(localize.errorDuplicateSong)); - return; - } - - AddToPlaylist(info); //Add at the end - SavePlaylist(); - InitShuffleTable(playlist.Count - 1); - - StartCoroutine(LoadAudio(info.path, playlist.Count - 1, LoadAudioComplete)); - } - - //Add to playlist as data (Add at the end) - //プレイリストにデータとして追加する(最後に追加) - private void AddToPlaylist(AudioInfo info) - { - PlayItem data = new PlayItem( - info.path, string.IsNullOrEmpty(info.title) ? info.name : info.title, info.artist); - playlist.Add(data); - } - - //Open a dialog for deletion - //削除用のダイアログを開く - public void OpenRemoveDialog() - { - string[] songKeys; string[] songTitles; - GetPlaylistKeyAndTitleArrays(out songKeys, out songTitles, false); - - if (songKeys.Length > 0) - { -#if UNITY_EDITOR - Debug.Log("OpenRemoveDialog called."); -#elif UNITY_ANDROID - AndroidPlugin.ShowMultiChoiceDialog( - localize.Text(localize.removeDialogTitle), - songTitles, null, - gameObject.name, "ReceiveRemoveResult", songKeys, - localize.Text(localize.removeDialogOK), - localize.Text(localize.removeDialogCancel)); -#endif - } - else - { - ShowToast(localize.Text(localize.errorRemoveNotFound)); - } - } - - //Callback handler for deletion dialog - //削除用のダイアログのコールバックハンドラ - private void ReceiveRemoveResult(string result) - { - if (string.IsNullOrEmpty(result)) - return; - - string[] paths = result.Split('\n'); - if (paths.Length > 0) - RemoveSong(paths); - } - - //Remove songs from playlist (* Preset songs are ignored) - //プレイリストから複数曲を削除(※プリセット曲は無視される) - public void RemoveSong(string[] paths) - { - string key = IsValidIndex(index) ? playlist[index].path : ""; - int lastIdx = -1; - int moveIdx = index; //Destination index when the number smaller than the original number is deleted - int deleted = 0; //Deleted count - - for (int i = paths.Length - 1; i >= 0; i--) - { - string path = paths[i]; - if (!string.IsNullOrEmpty(path) && path[0] != '#') - { - int idx = LastIndexOfRangePlaylist(path, lastIdx, presets.Count); //Range of added songs - if (idx >= 0) - { - if (idx == index) //Current song - Stop(); - else if (idx < index) //'presets.Count <= idx' is known. - moveIdx--; - - playlist.RemoveAt(idx); - lastIdx = idx - 1; - deleted++; - } - } - } - - int toIndex = string.IsNullOrEmpty(key) ? -1 : IndexOfPlaylist(key); //not found = -1 (Normally not) - InitShuffleTable(IsValidIndex(toIndex) ? toIndex : int.MinValue); //Do not search the current index - - if (savePlaylist) - SavePlaylist(); - - if (deleted > 0) - ShowToast(string.Format(localize.Text(localize.messageRemoved), deleted)); - - switch (mode) - { - case Mode.Loop: - case Mode.Next: - if (IsValidIndex(toIndex)) - Play(toIndex); //for update index and SaveSetting - else - Play(Mathf.Clamp(moveIdx, TargetSongCount > 0 ? TargetSongFirstIndex : 0, playlist.Count - 1)); - break; - - case Mode.Shuffle: - if (IsValidIndex(toIndex)) - Play(toIndex); //for update index and SaveSetting - else - ShuffleNext(); - break; - } - } - -#endregion Android Dialog Section - -#region UI etc. Section - - //Display message on Toast - private void ShowToast(string message, bool longDuration = false) - { - if (string.IsNullOrEmpty(message)) - return; -#if UNITY_EDITOR - Debug.Log("ShowToast called : " + message); -#elif UNITY_ANDROID - AndroidPlugin.ShowToast(message, longDuration); -#endif - } - - //Display song title etc. - private void DisplayInfo() - { - if (IsValidIndex(index) && playlist[index] != null) - { - if (displayTitle != null) - { - string title = playlist[index].title; - if (string.IsNullOrEmpty(title) && playlist[index].clip != null) - title = playlist[index].clip.name; - displayTitle.text = titlePrefix + title; - } - - if (displayArtist != null) - { - string artist = string.IsNullOrEmpty(playlist[index].artist) ? artistUnknown : playlist[index].artist; - displayArtist.text = artist; - } - } - } - -#endregion UI etc. Section - -#region Other static method etc. Section - - //Shuffle list elements (Fisher-Yates shuffle) - //リスト要素のシャッフル - static void Shuffle(List list) - { - for (int i = list.Count - 1; i > 0; i--) { - int j = Random.Range(0, i + 1); //[0]~[i] - Swap(list, i, j); - } - } - - //Element swap - //要素のスワップ - static void Swap(List list, int i, int j) - { - if (i != j) - { - T tmp = list[i]; - list[i] = list[j]; - list[j] = tmp; - } - } - - //Apply lower limit (inclusive) to upper limit (exclusive) to Mathf.Repeat(). - //Mathf.Repeat() に下限(含む)~上限(除く)を付ける - static int Repeat(int value, int min, int max) //min: inclusive, max: exclusive - { - return (int)Mathf.Repeat(value - min, max - min) + min; - } - -#endregion Other static method etc. Section - -#region Localize Section - - [Serializable] - public class LocalizeData - { - public SystemLanguage language = SystemLanguage.Unknown; //Current localize language - - //========================================================== - //Dialog captions - - public LocalizeString songDialogTitle = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Song selection and setting options"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "曲の選択と設定オプション"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "乐曲选择和设置选项"), - new LocalizeString.Data(SystemLanguage.Korean, "곡 선택 및 설정 옵션"), - }); - - public LocalizeString songDialogOK = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Apply"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "決定"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "应用"), - new LocalizeString.Data(SystemLanguage.Korean, "대다"), - }); - - public LocalizeString songDialogCancel = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Cancel"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "キャンセル"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "取消"), - new LocalizeString.Data(SystemLanguage.Korean, "취소"), - }); - - public LocalizeString exceptPresetsCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "All song play / shuffle, except for preset songs"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "連続再生/シャッフルのとき、プリセット曲を除く"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "所有歌曲播放/随机播放,除了预设歌曲"), - new LocalizeString.Data(SystemLanguage.Korean, "전곡 재생 / 셔플 때 프리셋 곡을 제외"), - }); - - public LocalizeString exceptPresetsExplanation = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "* If there are no additional songs, it will be invalid."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "※追加曲がない場合は無効になります。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "*如果没有其他歌曲,它将无效。"), - new LocalizeString.Data(SystemLanguage.Korean, "※ 추가 곡이없는 경우는 무효가됩니다."), - }); - - public LocalizeString autoPlaylistCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "If not find a song, delete it from the playlist automatically"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "曲が見つからない場合、自動でプレイリストから削除する"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "如果您找不到歌曲,请自动将其从播放列表中删除"), - new LocalizeString.Data(SystemLanguage.Korean, "곡이 없으면 자동으로 재생 목록에서 삭제"), - }); - - public LocalizeString autoSettingCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Automatically modify options on error"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "エラー時にオプションを自動で修正する"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "自动修改错误选项"), - new LocalizeString.Data(SystemLanguage.Korean, "오류시 옵션을 자동으로 수정"), - }); - - public LocalizeString resetPlaylistCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Reset playlist"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "プレイリストのリセット"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "重置播放列表"), - new LocalizeString.Data(SystemLanguage.Korean, "재생 목록 재설정"), - }); - - public LocalizeString resetSettingCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Reset settings"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "設定のリセット"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "重置设置"), - new LocalizeString.Data(SystemLanguage.Korean, "설정 재설정"), - }); - - public LocalizeString resetExplanation = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "* All saved settings will be erased when reset."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "※リセットすると保存された設定が全て消去されます。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "*所有保存的设置将在复位时被删除。"), - new LocalizeString.Data(SystemLanguage.Korean, "※ 재설정하면 저장된 설정이 모두 삭제됩니다."), - }); - - - public LocalizeString oneSongCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "1 song"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "1曲再生"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "1首歌曲播放"), - new LocalizeString.Data(SystemLanguage.Korean, "1 곡 재생"), - }); - - public LocalizeString allSongCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "All songs"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "連続再生"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "所有歌曲播放"), - new LocalizeString.Data(SystemLanguage.Korean, "전곡 재생"), - }); - - public LocalizeString shuffleCaption = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Shuffle"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "シャッフル"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "拖曳"), - new LocalizeString.Data(SystemLanguage.Korean, "셔플"), - }); - - public string[] GetPlaybackCaptionArray() - { - return new string[] { - oneSongCaption.TextByLanguage(language), - allSongCaption.TextByLanguage(language), - shuffleCaption.TextByLanguage(language), - }; - } - - - public LocalizeString removeDialogTitle = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Select songs to delete from the playlist"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "プレイリストから削除する曲を選択"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "选择要从播放列表中删除的歌曲"), - new LocalizeString.Data(SystemLanguage.Korean, "재생 목록에서 삭제하는 곡을 선택"), - }); - - public LocalizeString removeDialogOK = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Delete"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "削除"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "删除"), - new LocalizeString.Data(SystemLanguage.Korean, "삭제"), - }); - - public LocalizeString removeDialogCancel = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Cancel"), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "キャンセル"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "取消"), - new LocalizeString.Data(SystemLanguage.Korean, "취소"), - }); - - - //========================================================== - //Toast messages - - public LocalizeString messageResetSetting = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "The setting was reset."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "設定がリセットされました。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "该设置被重置。"), - new LocalizeString.Data(SystemLanguage.Korean, "설정이 초기화되었습니다."), - }); - - public LocalizeString messageResetPlaylist = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "The playlist has been reset."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "プレイリストがリセットされました。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "该列表已被重置。"), - new LocalizeString.Data(SystemLanguage.Korean, "목록이 재설정되었습니다."), - }); - - public LocalizeString messageResetBoth = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Playlist and settings reset."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "プレイリストと設定がリセットされました。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "播放列表和设置重置。"), - new LocalizeString.Data(SystemLanguage.Korean, "재생 목록 설정이 재설정되었습니다."), - }); - - public LocalizeString messageRemoved = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "The file of {0} song(s) has been deleted from the playlist."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "{0}曲のファイルがプレイリストから削除されました。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "已从播放列表中删除{0}首歌曲的文件。"), - new LocalizeString.Data(SystemLanguage.Korean, "{0} 음악 파일이 재생 목록에서 삭제되었습니다."), - }); - - public LocalizeString errorNotGetPath = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Path acquisition failed.\nFor cloud storage, please download it."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "パスの取得に失敗しました。\nクラウドストレージの場合、ダウンロードして下さい。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "路径获取失败。\n对于云存储,请下载。"), - new LocalizeString.Data(SystemLanguage.Korean, "경로의 취득에 실패했습니다.\n클라우드 스토리지의 경우 다운로드하십시오."), - }); - - public LocalizeString errorDuplicateSong = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "It is already registered in the playlist."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "既にプレイリストに登録されています。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "它已经在播放列表中注册。"), - new LocalizeString.Data(SystemLanguage.Korean, "이미 재생 목록에 등록되어 있습니다."), - }); - - public LocalizeString errorNotAvailableType = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Audio format is not available."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "利用できないオーディオ形式です。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "音频格式不可用。"), - new LocalizeString.Data(SystemLanguage.Korean, "사용할 수없는 오디오 형식입니다."), - }); - - public LocalizeString errorNotExist = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "File not found.\nIt may have been moved or deleted."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "ファイルが見つかりません。\n移動または削除された可能性があります。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "未找到文件。\n它可能已被移动或删除。"), - new LocalizeString.Data(SystemLanguage.Korean, "파일을 찾을 수 없습니다.\n이동 또는 삭제 된 수 있습니다."), - }); - - public LocalizeString errorLoadFailure = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Failed to read the file.\nAudio data is invalid."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "ファイルの読み込みに失敗しました。\nオーディオデータが不正です。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "无法读取文件。\n音频数据无效。"), - new LocalizeString.Data(SystemLanguage.Korean, "파일의 읽기에 실패했습니다.\n오디오 데이터가 잘못되었습니다."), - }); - - public LocalizeString errorRemoveNotFound = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "There are no songs that can be deleted."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "削除可能な楽曲がありません。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "没有可以删除的歌曲。"), - new LocalizeString.Data(SystemLanguage.Korean, "제거 가능한 악곡이 없습니다."), - }); - - public LocalizeString errorSongNotFound = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "There is no song that can be played."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "再生可能な楽曲がありません。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "没有音乐可以播放。"), - new LocalizeString.Data(SystemLanguage.Korean, "재생 가능한 악곡이 없습니다."), - }); - - public LocalizeString confirmSetting = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "Please check the current setting."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "現在の設定を確認して下さい。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "请检查当前设置。"), - new LocalizeString.Data(SystemLanguage.Korean, "현재 설정을 확인하십시오."), - }); - - public LocalizeString optionalAutoPlaylist = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "It was deleted automatically from the playlist."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "自動でプレイリストから削除されました。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "它已从播放列表中自动删除。"), - new LocalizeString.Data(SystemLanguage.Korean, "자동으로 재생 목록에서 삭제되었습니다."), - }); - - public LocalizeString optionalAutoExceptPresets = new LocalizeString(SystemLanguage.English, - new List() - { - new LocalizeString.Data(SystemLanguage.English, "The exclusion setting of the preset songs was turned off."), //default language - new LocalizeString.Data(SystemLanguage.Japanese, "プリセット曲の除外設定をオフに修正しました。"), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "预设歌曲的排除设置已关闭。"), - new LocalizeString.Data(SystemLanguage.Korean, "프리셋 곡의 제외 설정을 해제 수정했습니다."), - }); - - //Text according to 'language' field - public string Text(LocalizeString localizeString) - { - return localizeString.TextByLanguage(language); - } - } - public LocalizeData localize; - - //ILocalizable implementation - public void ApplyLocalize(SystemLanguage language) - { - if (localize == null) - localize = new LocalizeData(); - - localize.language = language; - } - -#endregion Localize Section - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics.meta deleted file mode 100644 index d0e9f07e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: aa1539497a833db4392bf4a6f7d992fd -folderAsset: yes -timeCreated: 1510763038 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/AndroidColor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/AndroidColor.cs deleted file mode 100644 index c20c6e67..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/AndroidColor.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace FantomLib -{ - /// - /// Android Colors (AARRGGBB format: int32) - /// - /// Android の色定数(ARGB 形式の int 値) - /// https://developer.android.com/reference/android/graphics/Color.html#BLACK - /// - public static class AndroidColor - { - public const int BLACK = 0x000000 | (0xff << 24); - public const int BLUE = 0x0000ff | (0xff << 24); - public const int CYAN = 0x00ffff | (0xff << 24); - public const int DKGRAY = 0x444444 | (0xff << 24); - public const int GRAY = 0x888888 | (0xff << 24); - public const int GREEN = 0x00ff00 | (0xff << 24); - public const int LTGRAY = 0xcccccc | (0xff << 24); - public const int MAGENTA = 0xff00ff | (0xff << 24); - public const int RED = 0xff0000 | (0xff << 24); - public const int TRANSPARENT = 0x000000 | (0xff << 24); - public const int WHITE = 0xffffff | (0xff << 24); - public const int YELLOW = 0xffff00 | (0xff << 24); - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/Screenshot.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/Screenshot.cs deleted file mode 100644 index d08b8ca0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/Screenshot.cs +++ /dev/null @@ -1,150 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Create Screenshot (full screen) and save file (png) - /// - public class Screenshot : MonoBehaviour - { - //Inspector Settings - public string filePrefix = "screenshot_"; //Prefix of filename to be saved. - public bool toExternalStorageOnAndroid = true; //Save to external storage (for Android) - - - //Callbacks - [Serializable] public class CompleteHandler : UnityEvent { } //path - public CompleteHandler OnComplete; - - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - - -#region Properties and Local values Section - - //Busy flag. Ignore while saving. - public bool IsSaving { - get; private set; - } - -#endregion - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Run screenshot with automatic path - public void StartScreenshot() - { - string fileName = filePrefix + DateTime.Now.ToString("yyMMdd_HHmmss") + ".png"; - string dir = Application.persistentDataPath; - - //I think that you may add processing for each platform here. -#if UNITY_EDITOR - dir = Application.dataPath + "/.."; -#elif UNITY_ANDROID - if (toExternalStorageOnAndroid) - { - if (!AndroidPlugin.CheckPermission("android.permission.WRITE_EXTERNAL_STORAGE")) - { - if (OnError != null) - OnError.Invoke("'WRITE_EXTERNAL_STORAGE' permission denied."); - return; - } - - dir = AndroidPlugin.GetExternalStorageDirectoryPictures(); - if (string.IsNullOrEmpty(dir)) - dir = AndroidPlugin.GetExternalStorageDirectory(); - } -#endif - string path = dir + "/" + fileName; - StartScreenshot(path); - } - - //Run screenshot with specified path - public void StartScreenshot(string path) - { - if (IsSaving) - { - if (OnError != null) - OnError.Invoke("Screenshot is currently busy."); - return; //Ignore while saving. - } - - StartCoroutine(RunScreenshot(path)); - } - - - //Hide the UI and execute the screenshot. If save the screenshot successfully, run MeidaScanner. - private IEnumerator RunScreenshot(string path) - { - IsSaving = true; - - yield return StartCoroutine(SaveScreenshotPng(path)); - - if (IsSaving) //If an error occurs, it is false on 'SaveScreenshotPng()'. - { - if (OnComplete != null) - OnComplete.Invoke(path); - } - - IsSaving = false; - } - - - //(*)To write to External Storage on Android, you need permission in the 'AndroidManifest.xml' file. - //※Android で External Storage に書き込みをするには、「AndroidManifest.xml」にパーミッションが必要。 - //Required: '' in 'AndroidManifest.xml' - // - //・The script referred to the following. - // https://docs.unity3d.com/jp/540/ScriptReference/Texture2D.EncodeToPNG.html - private IEnumerator SaveScreenshotPng(string path) - { - // We should only read the screen buffer after rendering is complete - yield return new WaitForEndOfFrame(); - - // Create a texture the size of the screen, RGB24 format - int width = Screen.width; - int height = Screen.height; - Texture2D tex = new Texture2D(width, height, TextureFormat.RGB24, false); - - // Read screen contents into the texture - tex.ReadPixels(new Rect(0, 0, width, height), 0, 0); - tex.Apply(); - - // Encode texture into PNG - byte[] bytes = tex.EncodeToPNG(); - DestroyImmediate(tex); - - //For testing purposes, also write to a file in the project folder - try - { - File.WriteAllBytes(path, bytes); - } - catch (Exception e) - { - IsSaving = false; //It also serves as an error flag - if (OnError != null) - OnError.Invoke(e.ToString()); - } - - yield return new WaitForEndOfFrame(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/XColor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/XColor.cs deleted file mode 100644 index f396a693..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/XColor.cs +++ /dev/null @@ -1,379 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Text.RegularExpressions; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Color format conversion of Unity and Android (AARRGGBB: int32) - /// [Unity.Color] https://docs.unity3d.com/ja/current/ScriptReference/Color.html - /// [Android Color(=int32)] https://developer.android.com/reference/android/graphics/Color.html - /// - public static class XColor - { - /// - /// Unity Color -> AARRGGBB format: int32 - /// - /// UnityEngine.Color - /// AARRGGBB format: int32 - public static int ToIntARGB(this Color color) - { - //string htmlColor = ColorUtility.ToHtmlStringRGBA(color); //"RRGGBBAA" - //int r = RedValue(htmlColor); - //int g = GreenValue(htmlColor); - //int b = BlueValue(htmlColor); - //int a = AlphaValue(htmlColor); - int r = RedValue(color); - int g = GreenValue(color); - int b = BlueValue(color); - int a = AlphaValue(color); - return (a << 24) | (r << 16) | (g << 8) | b; //AARRGGBB - } - - - /// - /// HTML Color ("#RRGGBBAA" etc.) -> AARRGGBB format: int32 - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff", "ffff", "fff" (8, 6, 4, 3 characters) - /// - /// UnityEngine.Color - /// AARRGGBB format: int32 - public static int ToIntARGB(string htmlString) - { - int r = RedValue(htmlString); - int g = GreenValue(htmlString); - int b = BlueValue(htmlString); - int a = AlphaValue(htmlString); - return (a << 24) | (r << 16) | (g << 8) | b; //AARRGGBB - } - - - /// - /// Each color part(0~255) -> AARRGGBB format: int32 - /// - /// Red part (0~255) - /// Green part (0~255) - /// Blue part (0~255) - /// Alpha part (0~255) - /// AARRGGBB format: int32 - public static int ToIntARGB(int r, int g, int b, int a = 255) - { - return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); //AARRGGBB - } - - - /// - /// Unity Color -> extract Red part: int - /// - /// UnityEngine.Color - /// Red part: int (0~255) - public static int RedValue(this Color color) - { - //string htmlColor = ColorUtility.ToHtmlStringRGBA(color); //"RRGGBBAA" - //return RedValue(htmlColor); - return Mathf.RoundToInt(color.r * 255); - } - - - /// - /// Unity Color -> extract Green part: int - /// - /// UnityEngine.Color - /// Green part: int (0~255) - public static int GreenValue(this Color color) - { - //string htmlColor = ColorUtility.ToHtmlStringRGBA(color); //"RRGGBBAA" - //return GreenValue(htmlColor); - return Mathf.RoundToInt(color.g * 255); - } - - - /// - /// Unity Color -> extract Blue part: int - /// - /// UnityEngine.Color - /// Blue part: int (0~255) - public static int BlueValue(this Color color) - { - //string htmlColor = ColorUtility.ToHtmlStringRGBA(color); //"RRGGBBAA" - //return BlueValue(htmlColor); - return Mathf.RoundToInt(color.b * 255); - } - - - /// - /// Unity Color > extract Alpha part: int - /// - /// UnityEngine.Color - /// Alpha part: int (0~255) - public static int AlphaValue(this Color color) - { - //string htmlColor = ColorUtility.ToHtmlStringRGBA(color); //"RRGGBBAA" - //return AlphaValue(htmlColor); - return Mathf.RoundToInt(color.a * 255); - } - - - - /// - /// Extract the Color part - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff", "ffff", "fff" (8, 6, 4, 3 characters) - /// - /// HTML Color - /// Extracted color part ("ffffffff", "ffffff", "ffff", "fff" etc.) / nothing -> "" - public static string GetColorCodeString(string htmlString) - { - if (htmlString.ToLower().StartsWith("0x")) - htmlString = htmlString.Substring(2); - else if (htmlString.StartsWith("#")) - htmlString = htmlString.Substring(1); - - if (!Regex.IsMatch(htmlString, "^[0-9a-fA-F]{3,8}$")) - return ""; - if (htmlString.Length == 5 || htmlString.Length == 7) - return ""; - - return htmlString; - } - - - /// - /// HTML Color ("#RRGGBBAA" etc.) -> extract Red part: int - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff", "ffff", "fff" (8, 6, 4, 3 characters) - /// - /// HTML Color - /// Red part: int (0~255) / nothing -> 0 - public static int RedValue(string htmlString) - { - htmlString = GetColorCodeString(htmlString); - if (string.IsNullOrEmpty(htmlString)) - return 0; - - if (htmlString.Length == 8 || htmlString.Length == 6) //"RRGGBBAA" or "RRGGBB" - { - string hex = htmlString.Substring(0, 2); - return Convert.ToInt32(hex, 16); - } - if (htmlString.Length == 4 || htmlString.Length == 3) //"RGBA" or "RGB" - { - string hex = htmlString.Substring(0, 1); - return Convert.ToInt32(hex + hex, 16); - } - return 0; - } - - - /// - /// HTML Color ("#RRGGBBAA" etc.)-> extract Green part: int - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff", "ffff", "fff" (8, 6, 4, 3 characters) - /// - /// HTML Color - /// Green part: int (0~255)/nothing -> 0 - public static int GreenValue(string htmlString) - { - htmlString = GetColorCodeString(htmlString); - if (string.IsNullOrEmpty(htmlString)) - return 0; - - if (htmlString.Length == 8 || htmlString.Length == 6) //"RRGGBBAA" or "RRGGBB" - { - string hex = htmlString.Substring(2, 2); - return Convert.ToInt32(hex, 16); - } - if (htmlString.Length == 4 || htmlString.Length == 3) //"RGBA" or "RGB" - { - string hex = htmlString.Substring(1, 1); - return Convert.ToInt32(hex + hex, 16); - } - return 0; - } - - - /// - /// HTML Color ("#RRGGBBAA" etc.)-> extract Blue part: int - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff", "ffff", "fff" (8, 6, 4, 3 characters) - /// - /// HTML Color - /// Blue part: int (0~255) / nothing -> 0 - public static int BlueValue(string htmlString) - { - htmlString = GetColorCodeString(htmlString); - if (string.IsNullOrEmpty(htmlString)) - return 0; - - if (htmlString.Length == 8 || htmlString.Length == 6) //"RRGGBBAA" or "RRGGBB" - { - string hex = htmlString.Substring(4, 2); - return Convert.ToInt32(hex, 16); - } - if (htmlString.Length == 4 || htmlString.Length == 3) //"RGBA" or "RGB" - { - string hex = htmlString.Substring(2, 1); - return Convert.ToInt32(hex + hex, 16); - } - return 0; - } - - - /// - /// HTML Color ("#RRGGBBAA" etc.)-> extract Alpha part: int - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff" (8, 4文字) / "ffff", "fff" (6, 3 characters -> 255) - /// - /// HTML Color - /// Alpha part: int (0~255) / nothing -> 0 - public static int AlphaValue(string htmlString) - { - htmlString = GetColorCodeString(htmlString); - if (string.IsNullOrEmpty(htmlString)) - return 0; - - if (htmlString.Length == 6 || htmlString.Length == 3) //"RRGGBB", "RGB" - { - return 0xff; - } - if (htmlString.Length == 8) //"RRGGBBAA" - { - string hex = htmlString.Substring(6, 2); - return Convert.ToInt32(hex, 16); - } - if (htmlString.Length == 4) //"RGBA" - { - string hex = htmlString.Substring(3, 1); - return Convert.ToInt32(hex + hex, 16); - } - return 0; - } - - - - /// - /// AARRGGBB format: int32 -> Unity Color - /// - /// AARRGGBB format: int32 - /// Unity Color format (Conversion failure -> Color.clear) - public static Color ToColor(int argb) - { - //string htmlString = ToHtmlString(argb); - //Color color; - //if (ColorUtility.TryParseHtmlString(htmlString, out color)) - // return color; - //return Color.clear; - - int r = RedValue(argb); - int g = GreenValue(argb); - int b = BlueValue(argb); - int a = AlphaValue(argb); - return new Color(r / 255f, g / 255f, b / 255f, a / 255f); - } - - - /// - /// Each color part(0~255) -> Unity Color - /// - /// Red part (0~255) - /// Green part (0~255) - /// Blue part (0~255) - /// Alpha part (0~255) - /// Unity Color format - public static Color ToColor(int r, int g, int b, int a = 255) - { - //return ToColor(ToIntARGB(r, g, b, a)); - return new Color(r / 255f, g / 255f, b / 255f, a / 255f); - } - - - /// - /// HTML Color ("#RRGGBBAA" etc.)-> Unity Color - /// (Format) - /// [StartsWith] "0x~", "#~", (nothing) - /// [Color part] "ffffffff", "ffffff", "ffff", "fff" (8, 6, 4, 3 characters) - /// - /// AARRGGBB format: int32 - /// Unity Color format - public static Color ToColor(string htmlString) - { - //return ToColor(ToIntARGB(htmlString)); - - int r = RedValue(htmlString); - int g = GreenValue(htmlString); - int b = BlueValue(htmlString); - int a = AlphaValue(htmlString); - return new Color(r / 255f, g / 255f, b / 255f, a / 255f); - } - - - /// - /// AARRGGBB format: int32 -> HTML Color - /// - /// AARRGGBB format: int32 - /// Add '#' to the head and return it (default) - /// HTML Color ("#ffffffff", "ffffffff" etc.) - public static string ToHtmlString(int argb, bool addSharp = true) - { - int r = RedValue(argb); - int g = GreenValue(argb); - int b = BlueValue(argb); - int a = AlphaValue(argb); - string htmlString = r.ToString("x2") + g.ToString("x2") + b.ToString("x2") + a.ToString("x2"); //"RRGGBBAA" - return addSharp ? ("#" + htmlString) : htmlString; - } - - - /// - /// AARRGGBB format: int32 -> extract Red part: int - /// - /// AARRGGBB format: int32 - /// Red part: int (0~255) - public static int RedValue(int argb) - { - return ((argb & 0x00ff0000) >> 16); - } - - - /// - /// AARRGGBB format: int32 -> extract Green part: int - /// - /// AARRGGBB format: int32 - /// Green part: int (0~255) - public static int GreenValue(int argb) - { - return ((argb & 0x0000ff00) >> 8); - } - - - /// - /// AARRGGBB format: int32-> extract Blue part: int - /// - /// AARRGGBB format: int32 - /// Blue part: int (0~255) - public static int BlueValue(int argb) - { - return (argb & 0x000000ff); - } - - - /// - /// AARRGGBB format: int32-> extract Alpha part: int - /// - /// AARRGGBB format: int32 - /// Alpha part: int (0~255) - public static int AlphaValue(int argb) - { - return ((argb >> 24) & 0x000000ff); - } - - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/XColor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/XColor.cs.meta deleted file mode 100644 index c92d35f9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/XColor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bdf0a0a0255181e4884625d32e7a10dd -timeCreated: 1510763054 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input.meta deleted file mode 100644 index ddbcd876..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 261a53f5feb3ae044a4feeb9abb502b5 -folderAsset: yes -timeCreated: 1515335047 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickEventTrigger.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickEventTrigger.cs deleted file mode 100644 index c00cafb8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickEventTrigger.cs +++ /dev/null @@ -1,144 +0,0 @@ -using System; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.EventSystems; - -namespace FantomLib -{ - /// - /// Get long press and call back (Suitable for judgment on UI, 'EventSystem' and 'Graphics Raycaster' are required) - /// http://fantom1x.blog130.fc2.com/blog-entry-251.html - /// (Usage) - ///・You can use it by attaching to a GameObject that has a UI such as Image, Text, Button, etc. and registering a function callback to 'OnLongClick' (no argument) from the inspector. - ///・There is an 'EventSystem' in the scene, and 'Graphics Raycaster' is attached to the (root) Canvas. - /// (Specification) - ///・Events (OnPointerDown, OnPointerUp, OnPointerExit) from the EventSystem are acquired, and if it is kept pressed for a certain time (Valid Time), long press is recognized. - ///・It is invalid when going out of the effective area (out of the UI) or releasing your finger on the way. - ///・Only the first finger recognition (In the case of multiple fingers, it is invalid because there is a possibility of pinching). - ///・Since the touch device is UNITY_ANDROID, UNITY_IOS, if you want to add other devices, add the device to the '#if' conditional statement (only those that can be acquired by 'Input.touchCount'). - ///(*) If it is a smartphone, it is not possible to recognize well when UI is transparent, so be careful (opaque image is as good as possible). - /// - /// - /// 長押しを取得してコールバックする(UI上での判定に向いている。EventSystem と Graphics Raycaster が必要) - /// http://fantom1x.blog130.fc2.com/blog-entry-251.html - ///(使い方) - ///・Image や Text, Button などの UI を持つ GameObject にアタッチして、インスペクタから OnLongClick(引数なし)にコールバックする関数を登録すれば使用可。 - ///・シーンに EventSystem、(ルート)Canvas に Graphics Raycaster がアタッチされている必要がある。 - ///(仕様説明) - ///・EventSystem からのイベント(OnPointerDown, OnPointerUp, OnPointerExit)を取得し、一定時間(Valid Time)押下され続けていたら長押しと認識する。 - ///・途中で有効領域外(UIから外れる)へ出たり、指を離したりしたときは無効。 - ///・はじめの指のみ認識(複数指の場合、ピンチの可能性があるため無効とする)。 - ///・タッチデバイスを UNITY_ANDROID, UNITY_IOS としているので、他のデバイスも加えたい場合は #if の条件文にデバイスを追加する(Input.touchCount が取得できるもののみ)。 - ///※スマホだとUIを透過にしていると、上手く認識できないようなので注意(なるべく不透明画像が良い)。 - /// - public class LongClickEventTrigger : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerExitHandler - { -#region Inspector settings and Local values Section - - //Inspector Settings - public float validTime = 1.0f; //Time to recognize as long press (to recognize it as a long press with longer time) //長押しとして認識する時間(これより長い時間で長押しとして認識する) - - - //Long press event occurred call back - //長押しイベント発生コールバック - public UnityEvent OnLongClick; - - //Long press/progress start event callback - //長押し進捗開始のイベントコールバック - public UnityEvent OnStart; - - //Progress event callback - //進捗中のイベントコールバック - [Serializable] public class ProgressHandler : UnityEvent { } //Progress 0 to 1f (0~100%) //進捗 0~1f(0~100%) - public ProgressHandler OnProgress; - - //Progress interrupted event callback - //進捗中断のイベントコールバック - public UnityEvent OnCancel; - - - //Local Values - float requiredTime; //Long press recognition time (recognize it as long press after this time) //長押し認識時刻(この時刻を超えたら長押しとして認識する) - bool pressing = false; //Pressing flag (also used for acquiring only a single finger) //押下中フラグ(単一指のみの取得としても利用) - -#endregion Inspector settings and Local values Section - -#region LongClick operation Section - - //When it becomes active, initialize (reset when the application interrupt etc.) - //アクティブになったら、初期化する(アプリの中断などしたときはリセットする) - void OnEnable() - { - pressing = false; - } - - // Update is called once per frame - void Update() - { - if (pressing) //Only the finger that pushed first //はじめに押した指のみとなる - { - if (requiredTime < Time.time) //Recognized after a certain period of time //一定時間過ぎたら認識 - { - if (OnLongClick != null) - OnLongClick.Invoke(); //UnityEvent - - pressing = false; //Invalid after long press //長押し完了したら無効にする - } - else - { - if (OnProgress != null) - { - float amount = Mathf.Clamp01(1f - (requiredTime - Time.time) / validTime); //0~1f - OnProgress.Invoke(amount); - } - } - } - } - - //Press in the UI area - //UI領域内で押下 - public void OnPointerDown(PointerEventData data) - { - if (!pressing) //To make it unique //ユニークにするため - { - pressing = true; - requiredTime = Time.time + validTime; - - if (OnStart != null) - OnStart.Invoke(); //UnityEvent - } - else - { - pressing = false; //In the case of two or more fingers, since there is a possibility of pinching, it is made ineffective //2本以上の指の場合、ピンチの可能性があるため無効にする - } - } - - //(*) If it is a smartphone and it is transparent to the UI, it will react even if you move your finger a little. - //※スマホだとUIを透過にしていると、指を少し動かしただけでも反応してしまうので注意 - public void OnPointerUp(PointerEventData data) - { - if (pressing) //Only the finger that pushed first //はじめに押した指のみとなる - { - if (OnCancel != null) - OnCancel.Invoke(); //UnityEvent - - pressing = false; - } - } - - //Invalid it if it is outside the UI area - //UI領域から外れたら無効にする - public void OnPointerExit(PointerEventData data) - { - if (pressing) //Only the finger that pushed first //はじめに押した指のみとなる - { - if (OnCancel != null) - OnCancel.Invoke(); //UnityEvent - - pressing = false; //Invalid it when it is out of the area //領域から外れたら無効にする - } - } - -#endregion LongClick operation Section - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickEventTrigger.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickEventTrigger.cs.meta deleted file mode 100644 index 1f2561b2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickEventTrigger.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0022a3950109f9d41b08b9aea53682ab -timeCreated: 1515227633 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickInput.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickInput.cs deleted file mode 100644 index b0e70f35..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickInput.cs +++ /dev/null @@ -1,161 +0,0 @@ -using System; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Get long press and call back (Suitable for judgment in whole screen area and partial area of screen) - /// http://fantom1x.blog130.fc2.com/blog-entry-251.html - /// (Usage) - ///・You can use it by attaching to an appropriate GameObject and registering a function callback to 'OnLongClick' (no argument) from the inspector. - ///・Or you can monitor the property 'LongClickInput.IsLongClick' on per frame (including false in this case). - /// (Specification) - ///・Let the entire screen be (0,0)-(1,1) and recognize it when it is pressed for a certain time (Valid Time) within the valid area (Valid Area). - ///・It is invalid when going out of the effective area on the way or releasing your finger. - ///・Only the first finger recognition (In the case of multiple fingers, it is invalid because there is a possibility of pinching). - ///・Since the touch device is UNITY_ANDROID, UNITY_IOS, if you want to add other devices, add the device to the '#if' conditional statement (only those that can be acquired by 'Input.touchCount'). - /// - /// - /// 長押しを取得してコールバックする(画面全域や画面の一部領域などでの判定に向いている) - /// http://fantom1x.blog130.fc2.com/blog-entry-251.html - ///(使い方) - ///・適当な GameObject にアタッチして、インスペクタから OnLongClick(引数なし)にコールバックする関数を登録すれば使用可。 - ///・またはプロパティ LongClickInput.IsLongClick をフレーム毎監視しても良い(こちらの場合は false も含まれる)。 - ///(仕様説明) - ///・画面全体を(0,0)-(1,1)とし、有効領域内(Valid Area)で一定時間(Valid Time)押下されていたら認識する。 - ///・途中で有効領域外へ出たり、指を離したりしたときは無効。 - ///・はじめの指のみ認識(複数の指の場合、ピンチの可能性があるため無効とする)。 - ///・タッチデバイスを UNITY_ANDROID, UNITY_IOS としているので、他のデバイスも加えたい場合は #if の条件文にデバイスを追加する(Input.touchCount が取得できるもののみ)。 - /// - public class LongClickInput : MonoBehaviour - { -#region Inspector settings Section - - //Inspector Settings - - //Time to recognize as long press (to recognize it as a long press with longer time) - //長押しとして認識する時間(これより長い時間で長押しとして認識する) - public float validTime = 1.0f; - - //Area on screen to recognize: 0.0~1.0 [(0,0):Bottom left of screen, (1,1):Upper right of screen] - //長押しとして認識する画面領域(0.0~1.0)[(0,0):画面左下, (1,1):画面右上] - public Rect validArea = new Rect(0, 0, 1, 1); - - - //Long press event callback - //長押しイベントコールバック(インスペクタ用) - public UnityEvent OnLongClick; //no arguments //引数なし - - //Long press/progress start event callback - //長押し・進捗開始のイベントコールバック - public UnityEvent OnStart; - - //Progress event callback - //進捗のイベントコールバック - [Serializable] public class ProgressHandler : UnityEvent { } //Amount at progress: 0~1f //進捗 0~1f - public ProgressHandler OnProgress; - - //Progress interrupted event callback - //進捗中断のイベントコールバック - public UnityEvent OnCancel; - -#endregion Inspector settings Section - -#region Properties and Local values Section - - //Long press detection property (For each frame acquisition) - //長押検出プロパティ(フレーム毎取得用) - public bool IsLongClick { - get; private set; - } - - - //Local Values - Vector2 minPos = Vector2.zero; //Long press recognition pixel minimum coordinate. //長押し認識ピクセル最小座標 - Vector2 maxPos = Vector2.one; //Long press recognition pixel maximum coordinate. //長押し認識ピクセル最大座標 - float requiredTime; //Long press recognition time (recognize it as long press after this time). //長押し認識時刻(この時刻を超えたら長押しとして認識する) - bool pressing; //Pressing flag (also used for acquiring only one finger) //押下中フラグ(単一指のみの取得にするため) - -#endregion Properties and Local values Section - -#region LongClick operation Section - - //When it becomes active, initialize (reset when the application interrupt etc.) - //アクティブになったら、初期化する(アプリの中断などしたときはリセットする) - void OnEnable() - { - pressing = false; - } - - // Update is called once per frame - void Update() - { - IsLongClick = false; //Reset per frame //フレーム毎にリセット - -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch. //タッチで取得したいプラットフォームのみ - if (Input.touchCount == 1) //Multiple fingers are impossible (because there is a possibility of pinching in case of two or more fingers). //複数の指は不可とする(※2つ以上の指の場合はピンチの可能性もあるため) -#endif - { - if (!pressing && Input.GetMouseButtonDown(0)) //When pressed (left click / touch can be acquired). //押したとき(左クリック/タッチが取得できる) - { - Vector2 pos = Input.mousePosition; - minPos.Set(validArea.xMin * Screen.width, validArea.yMin * Screen.height); - maxPos.Set(validArea.xMax * Screen.width, validArea.yMax * Screen.height); - if (minPos.x <= pos.x && pos.x <= maxPos.x && minPos.y <= pos.y && pos.y <= maxPos.y) //Within recognition area //認識エリア内 - { - pressing = true; - requiredTime = Time.time + validTime; - - if (OnStart != null) - OnStart.Invoke(); - } - } - if (pressing) //When already pressed //既に押されている - { - if (Input.GetMouseButton(0)) //Continue pressing (* This function can not distinguish which finger when touching two or more) //押下継続(※この関数は2つ以上タッチの場合、どの指か判別できない) - { - if (requiredTime < Time.time) //Recognized after a certain period of time //一定時間過ぎたら認識 - { - Vector2 pos = Input.mousePosition; - if (minPos.x <= pos.x && pos.x <= maxPos.x && minPos.y <= pos.y && pos.y <= maxPos.y) //認識エリア内 - { - IsLongClick = true; - - if (OnLongClick != null) - OnLongClick.Invoke(); - } - - pressing = false; //Invalid after long press //長押し完了したら無効にする - } - else - { - if (OnProgress != null) - { - float amount = Mathf.Clamp01(1f - (requiredTime - Time.time) / validTime); //0~1f - OnProgress.Invoke(amount); - } - } - } - else //MouseButtonUp, MouseButtonDown - { - if (pressing) - { - if (OnCancel != null) - OnCancel.Invoke(); - } - - pressing = false; - } - } - } -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch. //タッチで取得したいプラットフォームのみ - else //Invalid it when there is not one touch (since there is also a possibility of pinching in case of two or more fingers). //タッチが1つでないときは無効にする(※2つ以上の指の場合はピンチの可能性もあるため) - { - pressing = false; - } -#endif - } -#endregion LongClick operation Section - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickInput.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickInput.cs.meta deleted file mode 100644 index bef4c5e4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongClickInput.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2c8c9ec0e6b7a78409122059591bf826 -timeCreated: 1515227633 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongKeyInput.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongKeyInput.cs deleted file mode 100644 index 6868d460..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongKeyInput.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Get long key press and call back - /// - public class LongKeyInput : MonoBehaviour - { -#region Inspector settings Section - - //Inspector Settings - public KeyCode targetKey = KeyCode.Escape; //target key code - - public float validTime = 1.5f; //Time to recognize as long press (to recognize it as a long press with longer time) //長押しとして認識する時間(これより長い時間で長押しとして認識する) - - //Callbacks - //Long press complete event callback //長押し完了イベントコールバック - public UnityEvent OnLongPress; - - //Long press/progress start event callback //長押し/進捗開始のイベントコールバック - public UnityEvent OnStart; - - //Progress event callback //進捗のイベントコールバック - [Serializable] public class ProgressHandler : UnityEvent { } //Amount at progress: 0~1f //進捗 0~1f - public ProgressHandler OnProgress; - - //Progress interrupted event callback //進捗中断のイベントコールバック - public UnityEvent OnCancel; - -#endregion Inspector settings Section - -#region Properties and Local values Section - - //Local Values - float requiredTime; //Long press recognition time (recognize it as long press after this time) //長押し認識時刻(この時刻を超えたら長押しとして認識する) - bool pressing; //Pressing flag (also used for acquiring only one press) //押下中フラグ(単一のみの取得にするため) - - //Long press detection property (For each frame acquisition) - //長押検出プロパティ(フレーム毎取得用) - public bool IsLongPress { - get; private set; - } - -#endregion - -#region LongPress operation Section - - //アクティブになったら、初期化する(アプリの中断などしたときはリセットする) - void OnEnable() - { - pressing = false; - } - - // Update is called once per frame - void Update() - { - IsLongPress = false; //Reset per frame - - if (!pressing && Input.GetKeyDown(targetKey)) - { - pressing = true; - requiredTime = Time.time + validTime; - - if (OnStart != null) - OnStart.Invoke(); //progress start event - } - if (pressing) - { - if (Input.GetKey(targetKey)) - { - if (requiredTime < Time.time) - { - IsLongPress = true; - pressing = false; - - if (OnLongPress != null) - OnLongPress.Invoke(); //complete event - } - else - { - if (OnProgress != null) - { - float amount = Mathf.Clamp01(1f - (requiredTime - Time.time) / validTime); //0~1f - OnProgress.Invoke(amount); //progress event - } - } - } - if (Input.GetKeyUp(targetKey)) - { - pressing = false; - - if (OnCancel != null) - OnCancel.Invoke(); //progress cancel event - } - } - } - -#endregion LongPress operation Section - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongKeyInput.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongKeyInput.cs.meta deleted file mode 100644 index cbc1ae26..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/LongKeyInput.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a792c72836d1a924a8134b23bc4271f2 -timeCreated: 1524117430 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchInput.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchInput.cs deleted file mode 100644 index 3780bc94..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchInput.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Get pinch and call back - /// http://fantom1x.blog130.fc2.com/blog-entry-288.html - /// (Usage) - ///·You can use it by attaching to an appropriate GameObject and registering functions callback from inspector to 'OnPinchStart' and 'OnPinch'. - ///·The property IsPinching, Width, Delta, Ratio may be monitored on a frame-by-frame basis (In this case, it is also not used (IsPinching = false, Width = 0, Delta = 0, Ratio = 1)). - /// (Specification) - ///·Internally acquire the interval between two fingers touched on the screen in pixel units. However, you can choose whether to return the return value by normalized value divided by screen width and pixel itself (isNormalized). - ///·Pinch operation is recognized only when 1 -> 2. Invalid when 3 or more -> 2. - ///・Since the touch device is UNITY_ANDROID, UNITY_IOS, if you want to add other devices, add the device to the '#if' conditional statement (only those that can be acquired by 'Input.touchCount'). - /// - /// - /// ピンチ操作を取得してコールバックする - /// http://fantom1x.blog130.fc2.com/blog-entry-288.html - ///(使い方) - ///・適当な GameObject にアタッチして、インスペクタから OnPinchStart, OnPinch にコールバックする関数を登録すれば使用可。 - ///・またはプロパティ IsPinching, Width, Delta, Ratio をフレーム毎監視しても良い(こちらの場合は使用してない状態(IsPinching=false, Width=0, Delta=0, Ratio=1)も含まれる)。 - ///(仕様説明) - ///・内部的には画面でタッチされた2本の指の間隔をピクセル単位で取得する。ただし戻り値は画面幅で割った正規化された値とピクセルそのもので返すかを選べる(isNormalized)。 - ///・ピンチの操作は1本→2本となったときのみ認識する。3本以上→2本になったときは無効。 - ///・タッチデバイスを UNITY_ANDROID, UNITY_IOS としているので、他のデバイスも加えたい場合は #if の条件文にデバイスを追加する(Input.touchCount が取得できるもののみ)。 - /// - public class PinchInput : MonoBehaviour - { -#region Inspector settings Section - - //Call back with the normalized value with screen width (or height) (false = returned in pixels) - //画面幅(or 高さ)で正規化した値でコールバックする(false=ピクセル単位で返す) - public bool isNormalized = true; - - //When isNormalized=true, based on the screen width (Screen.width) (when false based on height (Screen.height)) [unit becomes like px/Screen.width] - //isNormalized=true のとき、画面幅(Screen.width)を基準にする(false=高さ(Screen.height)を基準)[単位が px/Screen.width のようになる] - public bool widthReference = true; - - //Area on screen to recognize: 0.0~1.0 [(0,0):Bottom left of screen, (1,1):Upper right of screen] - //認識する画面上の領域(0.0~1.0)[(0,0):画面左下, (1,1):画面右上] - public Rect validArea = new Rect(0, 0, 1, 1); - - - //Pinch start callback - //ピンチ開始コールバック - [Serializable] - public class PinchStartHandler : UnityEvent { } //Width, center (Center coordinates between two fingers) //(2指間の中心座標) - public PinchStartHandler OnPinchStart; - - //Pinching callback (expansion ratio and difference) - //ピンチ中コールバック(伸縮率とその差分) - [Serializable] - public class PinchHandler : UnityEvent { } //Width, Delta, Ratio - public PinchHandler OnPinch; - -#endregion Inspector settings Section - -#region Properties and Local values Section - - //Pinching detection properties (For each frame acquisition) - //·Pinch operation in progress flag (only 2 fingers, 3 ~ disabled). - // - //ピンチ検出プロパティ(フレーム毎取得用) - //・ピンチ操作中フラグ(指2本のみ。3~は無効)。 - public bool IsPinching { - get; private set; - } - - //Pinch width (distance) property (For each frame acquisition) - //·When isNormalized=true, it is normalized with the screen width, and when it is false, it becomes px unit. - // - //ピンチ幅(距離) プロパティ(フレーム毎取得用) - //・isNormalized=true のときは画面幅で正規化した値で、false のときは px 単位になる。 - public float Width { - get; private set; - } - - //Difference property from just before pinch width (distance) (For each frame acquisition) - //·When isNormalized=true, it is normalized with the screen width, and when it is false, it becomes px unit. - //·It becomes like a linear relative quantity (good for relative movement operation etc). - // - //ピンチ幅(距離)の直前との差分 プロパティ(フレーム毎取得用) - //・isNormalized=true のときは画面幅で正規化した値で、false のときは px 単位になる。 - //・線形的な相対量のようになる(相対移動操作などに良い)。 - public float Delta { - get; private set; - } - - //Change ratio property of pinching width (distance) property (For each frame acquisition) - //·Open the finger -> 1.0 or more (1, 2, 3, ...[including decimal] / finger closing -> lower than 1.0 (1/2, 1/3, 1/4, ... [not negative])) - //(*) Note that closing fingers is easier than opening fingers physically (good for scale operation etc). - // - //ピンチ幅(距離)の変化比 プロパティ(フレーム毎取得用) - //・ピンチ開始時の幅(距離)を1とし、現在の幅の比を返す(指を開く→ 1.0以上(1,2,3,...倍[小数含む]/指を閉じる→ 1.0より下(1/2, 1/3, 1/4,...倍[負にはならない])) - //※物理的に指を開くより指を閉じる方が変化しやすいので注意(スケール操作などに良い)。 - public float Ratio { - get; private set; - } - -#pragma warning disable 0169 //'startDistance', 'oldDistance' is never used. (However, it is used in the Android platform) - - //Local Values - float startDistance; //ピンチ開始時の指の距離(px) - float oldDistance; //直前の伸縮距離(px) - -#endregion Properties and Local values Section - -#region Pinch operation Section - - //When it becomes active, initialize (reset when the application interrupt etc.) - //アクティブになったら、初期化する(アプリの中断などしたときはリセットする) - void OnEnable() - { - IsPinching = false; - } - - // Update is called once per frame - void Update() - { - //Property reset for each frame - //プロパティはフレーム毎にリセット - Width = 0; Delta = 0; Ratio = 1; - -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch //タッチで取得したいプラットフォームのみ - if (Input.touchCount == 2) //Operation with pinch (2 fingers only) //ピンチでの操作(2本指のみ) - { - //(*) The index of fingerId and touches[] does not necessarily match, so get fingerId = 1 (to make it possible when 1 finger -> 2) - //※fingerId と touches[] のインデクスは必ずしも一致しないらしいので fingerId=1 となっている方を取得(指1本→2本になったとき可能とするため) - Touch touch = (Input.touches[1].fingerId == 1) ? Input.touches[1] : Input.touches[0]; - if (!IsPinching && touch.phase == TouchPhase.Began) //Only when newly recognized //新しく認識したときのみ - { - //Is it within the area on the screen to recognize? (Based on the coordinates of the center of two fingers) - //認識する画面上の領域内か?(2本の指の中心の座標を基準にする) - Vector2 center = (Input.touches[0].position + Input.touches[1].position) / 2; - if (validArea.xMin * Screen.width <= center.x && center.x <= validArea.xMax * Screen.width && - validArea.yMin * Screen.height <= center.y && center.y <= validArea.yMax * Screen.height) - { - IsPinching = true; //Pinch start //ピンチ開始 - - //fingerId = 0 to 1 only (always the first and second fingers). 3 fingers -> 2 (0 - 2 etc.) are not allowed. - //fingerId=0~1 のみ(必ず最初と2本目の指)。指3本→2本(0-2 など)は不可とする。 - Width = startDistance = oldDistance = Vector2.Distance(Input.touches[0].position, Input.touches[1].position); - if (isNormalized) - { - float unit = widthReference ? Screen.width : Screen.height; - Width /= unit; //If it is normalized by screen width, it becomes independent of resolution. //画面幅で正規化すれば、解像度に依存しなくなる - center /= unit; - } - - if (OnPinchStart != null) - OnPinchStart.Invoke(Width, center); //Delta = 0 and Ratio = 1 at the start. //開始時は必ず Delta=0, Ratio=1 となる - } - } - else if (IsPinching) //Only when it is already recognized: When 3 -> 2, it becomes invalid. //既に認識されているときのみ:3本→2本になったときは無効になる - { - float endDistance = Vector2.Distance(Input.touches[0].position, Input.touches[1].position); - Width = endDistance; - Delta = endDistance - oldDistance; //Difference from immediately before //直前との差分 - Ratio = endDistance / startDistance; //The magnification is based on the pinch width at the start (px distance). //開始時のピンチ幅(px距離)を基準にした倍率になる - oldDistance = endDistance; - - if (isNormalized) - { - float unit = widthReference ? Screen.width : Screen.height; - Width /= unit; //If it is normalized by screen width, it becomes independent of resolution. //画面幅で正規化すれば、解像度に依存しなくなる - Delta /= unit; - } - - if (OnPinch != null) - OnPinch.Invoke(Width, Delta, Ratio); - } - } - else //Invalid all when there are not two touch. //タッチが2つでないときは全て無効にする -#endif - { - IsPinching = false; - } - } - -#endregion Pinch operation Section - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchInput.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchInput.cs.meta deleted file mode 100644 index 3bdb8eb5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchInput.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 89c0b1539c92b3246b52794a9a5f04d6 -timeCreated: 1515227633 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToDistance.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToDistance.cs deleted file mode 100644 index 8998a35c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToDistance.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Pinch to operate distance - /// (*) use PinchInput callbacks - /// http://fantom1x.blog130.fc2.com/blog-entry-288.html - /// (Usage) - ///·You can use it by attaching to a GameObject such as a camera and registering PinchInput callbacks from the inspector. - ///·Distance is a straight line distance from target. - /// - /// ピンチで距離を操作する - /// http://fantom1x.blog130.fc2.com/blog-entry-288.html - ///(使い方) - ///・カメラなどの GameObject にアタッチして、インスペクタから PinchInput のコールバックを登録すれば使用可。 - ///・距離は target からの直線距離となる。 - /// - public class PinchToDistance : MonoBehaviour - { -#region Inspector settings Section - - //Inspector Settings - public Transform target; //Object to be a viewpoint //視点となるオブジェクト - public float speed = 2f; //Rate of change //変化速度 - public float minDistance = 1.0f; //Minimum distance to approach //近づける最小距離 - public bool lookAt = true; //Look at the object //オブジェクトの方を向く - - //LocalValues - float initDistance; //Initial distance (for reset) //起動初期距離(リセット用) - -#endregion Inspector settings Section - -#region Unity life cycle Section - - // Use this for initialization - private void Start() - { - if (target != null) - { - Vector3 dir = target.position - transform.position; - initDistance = dir.magnitude; - if (lookAt) - transform.LookAt(target.position); - } - } - - // Update is called once per frame - //private void Update() - //{ - - //} - -#endregion Unity life cycle Section - -#region Pinch operation Section - - //width: distance of two fingers of pinch - //center: The coordinates of the center of two fingers of pinch - // - //width: ピンチ幅 - //center: ピンチの2本指の中心の座標 - public void OnPinchStart(float width, Vector2 center) - { - //Not used - } - - //width: distance of two fingers of pinch - //delta: The difference in pinch width just before - //ratio: Stretch ratio from the start of pinch width (1:At the start of pinch, Expand by 1 or more, lower than 1 (1/2, 1/3, ...) - // - //width: ピンチ幅 - //delta: 直前のピンチ幅の差 - //ratio: ピンチ幅の開始時からの伸縮比(1:ピンチ開始時, 1以上拡大, 1より下(1/2,1/3,...)縮小) - public void OnPinch(float width, float delta, float ratio) - { - if (target == null) - return; - - Vector3 dir = target.position - transform.position; - float distance = Math.Max(minDistance, dir.magnitude - delta * speed); - Vector3 pos = target.position - dir.normalized * distance; - transform.position = pos; - if (lookAt) - transform.LookAt(target.position); - } - - //Restore the initial distance - //初期の距離に戻す - public void ResetDistance() - { - if (target == null) - return; - - Vector3 dir = target.position - transform.position; - Vector3 pos = target.position - dir.normalized * initDistance; - transform.position = pos; - if (lookAt) - transform.LookAt(target.position); - } - -#endregion Pinch operation Section - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToDistance.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToDistance.cs.meta deleted file mode 100644 index 5038c0b3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToDistance.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: beba68f025ba1474b8c06ea9f0752ca0 -timeCreated: 1515227633 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToScale.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToScale.cs deleted file mode 100644 index cfad1920..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToScale.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Change the scale with a pinch (local scale) - /// http://fantom1x.blog130.fc2.com/blog-entry-288.html - /// (Usage) - ///・Attach to the GameObject that you want to stretch and then use it if you register PinchInput callbacks from the inspector - /// - /// ピンチでスケールを変化させる(ローカルスケール) - /// http://fantom1x.blog130.fc2.com/blog-entry-288.html - ///(使い方) - ///・伸縮したい GameObject にアタッチして、インスペクタから PinchInput のコールバックを登録すれば使用可。 - /// - public class PinchToScale : MonoBehaviour - { -#region Inspector settings and Local values Section - - //Inspector Settings - public Transform target; //Object to be changed in scale //スケール変化させるオブジェクト - - //Local Values - Vector3 startScale; //Scale at pinch start //ピンチ開始時スケール - Vector3 initScale; //Initial scale (for reset) //起動初期スケール(リセット用) - -#endregion Inspector settings and Local values Section - -#region Unity life cycle Section - - // Use this for initialization - private void Start() - { - if (target == null) - target = gameObject.transform; //指定がないときは自身を対象とする - - initScale = target.localScale; - } - - // Update is called once per frame - //private void Update () { - - //} - -#endregion Unity life cycle Section - -#region Pinch operation Section - - //width: distance of two fingers of pinch - //center: The coordinates of the center of two fingers of pinch - // - //width: ピンチ幅 - //center: ピンチの2本指の中心の座標 - public void OnPinchStart(float width, Vector2 center) - { - if (target != null) - startScale = target.localScale; - } - - //width: distance of two fingers of pinch - //delta: The difference in pinch width just before - //ratio: Stretch ratio from the start of pinch width (1:At the start of pinch, Expand by 1 or more, lower than 1 (1/2, 1/3, ...) - // - //width: ピンチ幅 - //delta: 直前のピンチ幅の差 - //ratio: ピンチ幅の開始時からの伸縮比(1:ピンチ開始時, 1以上拡大, 1より下(1/2,1/3,...)縮小) - public void OnPinch(float width, float delta, float ratio) - { - if (target != null) - target.localScale = startScale * ratio; - } - - //Restore the initial scale - //スケールを元に戻す - public void ResetScale() - { - if (target != null) - target.localScale = initScale; - } - -#endregion Pinch operation Section - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToScale.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToScale.cs.meta deleted file mode 100644 index 75cc32e9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/PinchToScale.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2478246f0548a4e45b1544d2085fa0f9 -timeCreated: 1515227633 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeEventTrigger.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeEventTrigger.cs deleted file mode 100644 index ef5ef599..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeEventTrigger.cs +++ /dev/null @@ -1,163 +0,0 @@ -using System; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.EventSystems; - -namespace FantomLib -{ - /// - /// Get swipe direction and call back (Suitable for judgment on UI, 'EventSystem' and 'Graphics Raycaster' are required) - /// http://fantom1x.blog130.fc2.com/blog-entry-250.html - /// (Usage) - ///・You can use it by attaching to a GameObject that has a UI such as Image, Text, Button, etc. and registering a function callback to OnSwipe (Vector 2 as one argument) from the inspector. - ///・There is an 'EventSystem' in the scene, and 'Graphics Raycaster' is attached to the (root) Canvas. - /// (Specification) - ///・It is judged by the movement amount of the touch started from UI (a mouse in the case of editor or other than smartphone). - /// When moving more than the screen width Valid Width (%), it is recognized as a swipe. - ///・However, ignore it when the movement exceeds the time limit (Timeout). - ///・Can not recognize with multiple fingers (* In case of two or more fingers, it is invalid because there is possibility of pinching). - ///・Since the touch device is UNITY_ANDROID, UNITY_IOS, if you want to add other devices, add the device to the '#if' conditional statement (only those that can be acquired by 'Input.touchCount'). - ///(*) If it is a smartphone, it is not possible to recognize well when UI is transparent, so be careful (opaque image is as good as possible). - /// - /// - /// スワイプ方向を取得してコールバックする(UI上での判定に向いている。EventSystem と Graphics Raycaster が必要) - /// http://fantom1x.blog130.fc2.com/blog-entry-250.html - ///(使い方) - ///・Image や Text, Button などの UI を持つ GameObject にアタッチして、インスペクタから OnSwipe(Vector2 を1つ引数にとる)にコールバックする関数を登録すれば使用可。 - ///・シーンに EventSystem、(ルート)Canvas に Graphics Raycaster がアタッチされている必要がある。 - ///(仕様説明) - ///・UI 上から開始されたタッチの移動量(エディタやスマホ以外の場合はマウス)で判定する。画面幅の Valid Width(%)以上移動したときスワイプとして認識する。 - ///・ただし、移動が制限時間(Timeout)を超えた時は無視する。 - ///・複数の指では認識できない(※2つ以上の指の場合はピンチの可能性もあるため無効とする)。 - ///・タッチデバイスを UNITY_ANDROID, UNITY_IOS としているので、他のデバイスも加えたい場合は #if の条件文にデバイスを追加する(Input.touchCount が取得できるもののみ)。 - ///※スマホだとUIを透過にしていると、上手く認識できないようなので注意(なるべく不透明画像が良い)。 - /// - public class SwipeEventTrigger : MonoBehaviour, IPointerDownHandler, IPointerUpHandler - { -#region Inspector settings and Local values Section - - //Inspector Settings - //Make the screen width (Screen.width) size the standard of the ratio (based on false = height (Screen.height)) - //画面幅(Screen.width)サイズを比率の基準にする(false=高さ(Screen.height)を基準) - public bool widthReference = true; - - //Screen ratio of movement amount recognized as swipe [Ratio to screen width] (0.0~1.0 : Width of entire screen ratio, recognize it as a swipe with a movement amount longer than this value) - //スワイプとして認識する移動量の画面比[画面幅に対する比率](0.0~1.0:1.0で端から端まで。この値より長い移動量でスワイプとして認識する) - public float validWidth = 0.25f; - - //Time to recognize as a swipe (to recognize it as a swipe in less time) - //スワイプとして認識する時間(これより短い時間でスワイプとして認識する) - public float timeout = 0.5f; - - - //Swipe event callback (for inspector) - //スワイプイベントコールバック(インスペクタ用) - [Serializable] - public class SwipeHandler : UnityEvent { } //Swipe direction //スワイプ方向 - public SwipeHandler OnSwipe; - - - //Local Values - Vector2 startPos; //Swipe start coordinates. //スワイプ開始座標 - Vector2 endPos; //Swipe end coordinates. //スワイプ終了座標 - float limitTime; //Swipe time limit (Do not recognize it as swipe beyond this time. //スワイプ時間制限(この時刻を超えたらスワイプとして認識しない) - bool pressing; //Pressing flag (to obtain only a single finger). //押下中フラグ(単一指のみの取得にするため) - - //The acquired swipe direction (for each frame judgment) [zero, no left, right, up, down direction] - //取得したスワイプ方向(フレーム毎判定用)[zeroがなしで、left, right, up, downが方向] - Vector2 swipeDir = Vector2.zero; - -#endregion Inspector settings and Local values Section - -#region Swipe operation Section - - //When it becomes active, initialize (reset when the application interrupt etc.) - //アクティブになったら、初期化する(アプリの中断などしたときはリセットする) - void OnEnable() - { - pressing = false; - } - - // Update is called once per frame - private void Update () { - swipeDir = Vector2.zero; //Reset per frame //フレーム毎にリセット - -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch. //タッチで取得したいプラットフォームのみ - if (Input.touchCount != 1) //Multiple fingers are impossible (because there is a possibility of pinching in case of two or more fingers). //複数の指は不可とする(※2つ以上の指の場合はピンチの可能性もあるため) -#else - if (!Input.GetMouseButton(0)) -#endif - { - pressing = false; - } - } - - public void OnPointerDown(PointerEventData eventData) - { -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch. //タッチで取得したいプラットフォームのみ - if (Input.touchCount == 1) //Multiple fingers are impossible (because there is a possibility of pinching in case of two or more fingers). //複数の指は不可とする(※2つ以上の指の場合はピンチの可能性もあるため) -#endif - { - if (!pressing) - { - startPos = Input.mousePosition; - pressing = true; - limitTime = Time.time + timeout; - } - } -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //タッチで取得したいプラットフォームのみ - else //Invalid it when there is not one touch (since there is also a possibility of pinching in case of two or more fingers). //タッチが1つでないときは無効にする(※2つ以上の指の場合はピンチの可能性もあるため) - { - pressing = false; - } -#endif - } - - public void OnPointerUp(PointerEventData eventData) - { -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch. //タッチで取得したいプラットフォームのみ - if (Input.touchCount == 1) //Multiple fingers are impossible (because there is a possibility of pinching in case of two or more fingers). //複数の指は不可とする(※2つ以上の指の場合はピンチの可能性もあるため) -#endif - { - if (pressing) - { - pressing = false; - - if (Time.time < limitTime) //Recognize before time limit //時間制限前なら認識 - { - endPos = Input.mousePosition; - Vector2 dist = endPos - startPos; - float dx = Mathf.Abs(dist.x); - float dy = Mathf.Abs(dist.y); - float requiredPx = widthReference ? Screen.width * validWidth : Screen.height * validWidth; - - if (dy < dx) //Recognized as horizontal direction //横方向として認識 - { - if (requiredPx < dx) //Recognize if it exceeds length //長さを超えていたら認識 - swipeDir = Mathf.Sign(dist.x) < 0 ? Vector2.left : Vector2.right; - } - else //Recognized as vertical direction //縦方向として認識 - { - if (requiredPx < dy) //Recognize if it exceeds length //長さを超えていたら認識 - swipeDir = Mathf.Sign(dist.y) < 0 ? Vector2.down : Vector2.up; - } - - if (swipeDir != Vector2.zero) - { - if (OnSwipe != null) - OnSwipe.Invoke(swipeDir); - } - } - } - } -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //タッチで取得したいプラットフォームのみ - else //Invalid it when there is not one touch (since there is also a possibility of pinching in case of two or more fingers). //タッチが1つでないときは無効にする(※2つ以上の指の場合はピンチの可能性もあるため) - { - pressing = false; - } -#endif - } - -#endregion Swipe operation Section - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeEventTrigger.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeEventTrigger.cs.meta deleted file mode 100644 index 25ce9ab1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeEventTrigger.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a5694e5aacc940b41b7743d4d8f3baaa -timeCreated: 1533991641 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeInput.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeInput.cs deleted file mode 100644 index ed1e2945..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeInput.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Get swipe direction and call back - /// http://fantom1x.blog130.fc2.com/blog-entry-250.html - /// (Usage) - ///・You can use it by attaching to an appropriate GameObject and registering a function callback to 'OnSwipe' (take a Vector2 argument) from the inspector. - ///・Or you can monitor the property 'SwipeInput.Direction' on per frame (including not move (Vector2.zero) in this case). - /// (Specification) - ///・It is judged by the movement amount of the touch (a mouse in the case of editor or other than smartphone). - /// When moving more than the screen width Valid Width (%), it is recognized as a swipe. - ///・However, ignore it when the movement exceeds the time limit (Timeout). - ///・Can not recognize with multiple fingers (* In case of two or more fingers, it is invalid because there is possibility of pinching). - ///・Since the touch device is UNITY_ANDROID, UNITY_IOS, if you want to add other devices, add the device to the '#if' conditional statement (only those that can be acquired by 'Input.touchCount'). - /// - /// - /// スワイプ方向を取得してコールバックする - /// http://fantom1x.blog130.fc2.com/blog-entry-250.html - ///(使い方) - ///・適当な GameObject にアタッチして、インスペクタから OnSwipe(Vector2 を1つ引数にとる)にコールバックする関数を登録すれば使用可。 - ///・またはプロパティ SwipeInput.Direction をフレーム毎監視しても良い(こちらの場合は無し(Vector2.zero)も含まれる)。 - ///(仕様説明) - ///・タッチの移動量(エディタやスマホ以外の場合はマウス)で判定する。画面幅の Valid Width(%)以上移動したときスワイプとして認識する。 - ///・ただし、移動が制限時間(Timeout)を超えた時は無視する。 - ///・複数の指では認識できない(※2つ以上の指の場合はピンチの可能性もあるため無効とする)。 - ///・タッチデバイスを UNITY_ANDROID, UNITY_IOS としているので、他のデバイスも加えたい場合は #if の条件文にデバイスを追加する(Input.touchCount が取得できるもののみ)。 - /// - public class SwipeInput : MonoBehaviour - { -#region Inspector settings Section - - //Inspector Settings - - //Make the screen width (Screen.width) size the standard of the ratio (based on false = height (Screen.height)) - //画面幅(Screen.width)サイズを比率の基準にする(false=高さ(Screen.height)を基準) - public bool widthReference = true; - - //Screen ratio of movement amount recognized as swipe [Ratio to screen width] (0.0~1.0 : Width of entire screen ratio, recognize it as a swipe with a movement amount longer than this value) - //スワイプとして認識する移動量の画面比[画面幅に対する比率](0.0~1.0:1.0で端から端まで。この値より長い移動量でスワイプとして認識する) - public float validWidth = 0.25f; - - //Time to recognize as a swipe (to recognize it as a swipe in less time) - //スワイプとして認識する時間(これより短い時間でスワイプとして認識する) - public float timeout = 0.5f; - - //Area on screen to recognize: 0.0~1.0 [(0,0):Bottom left of screen, (1,1):Upper right of screen] - //スワイプとして認識する画面領域(0.0~1.0)[(0,0):画面左下, (1,1):画面右上] - public Rect validArea = new Rect(0, 0, 1, 1); - - - //Swipe event callback (for inspector) - //スワイプイベントコールバック(インスペクタ用) - [Serializable] - public class SwipeHandler : UnityEvent { } //Swipe direction //スワイプ方向 - public SwipeHandler OnSwipe; - -#endregion Inspector settings Section - -#region Properties and Local values Section - - //Swipe direction acquisition property (for each frame acquisition) - //スワイプ方向取得プロパティ(フレーム毎取得用) - public Vector2 Direction { - get; private set; - } - - - //Local Values - Vector2 startPos; //Swipe start coordinates. //スワイプ開始座標 - Vector2 endPos; //Swipe end coordinates. //スワイプ終了座標 - float limitTime; //Swipe time limit (Do not recognize it as swipe beyond this time. //スワイプ時間制限(この時刻を超えたらスワイプとして認識しない) - bool pressing; //Pressing flag (to obtain only a single finger). //押下中フラグ(単一指のみの取得にするため) - -#endregion Properties and Local values Section - -#region Swipe operation Section - - //When it becomes active, initialize (reset when the application interrupt etc.) - //アクティブになったら、初期化する(アプリの中断などしたときはリセットする) - void OnEnable() - { - pressing = false; - } - - // Update is called once per frame - void Update() - { - Direction = Vector2.zero; //Reset per frame //フレーム毎にリセット - -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //Only platforms you want to obtain with touch. //タッチで取得したいプラットフォームのみ - if (Input.touchCount == 1) //Multiple fingers are impossible (because there is a possibility of pinching in case of two or more fingers). //複数の指は不可とする(※2つ以上の指の場合はピンチの可能性もあるため) -#endif - { - if (!pressing && Input.GetMouseButtonDown(0)) //When pressed (left click / touch can be acquired). //押したとき(左クリック/タッチが取得できる) - { - startPos = Input.mousePosition; - if (validArea.xMin * Screen.width <= startPos.x && startPos.x <= validArea.xMax * Screen.width && - validArea.yMin * Screen.height <= startPos.y && startPos.y <= validArea.yMax * Screen.height) //Within recognition area //認識エリア内 - { - pressing = true; - limitTime = Time.time + timeout; - } - } - else if (pressing && Input.GetMouseButtonUp(0)) //Only when it is already pressed (Note that this function can not distinguish which finger when touching 2 or more). //既に押されているときのみ(※この関数は2つ以上タッチの場合、どの指か判別できないので注意) - { - pressing = false; - - if (Time.time < limitTime) //Recognize before time limit //時間制限前なら認識 - { - endPos = Input.mousePosition; - Vector2 dist = endPos - startPos; - float dx = Mathf.Abs(dist.x); - float dy = Mathf.Abs(dist.y); - float requiredPx = widthReference ? Screen.width * validWidth : Screen.height * validWidth; - - if (dy < dx) //Recognized as horizontal direction //横方向として認識 - { - if (requiredPx < dx) //Recognize if it exceeds length //長さを超えていたら認識 - Direction = Mathf.Sign(dist.x) < 0 ? Vector2.left : Vector2.right; - } - else //Recognized as vertical direction //縦方向として認識 - { - if (requiredPx < dy) //Recognize if it exceeds length //長さを超えていたら認識 - Direction = Mathf.Sign(dist.y) < 0 ? Vector2.down : Vector2.up; - } - - if (Direction != Vector2.zero) - { - if (OnSwipe != null) - OnSwipe.Invoke(Direction); - } - } - } - } -#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS) //タッチで取得したいプラットフォームのみ - else //Invalid it when there is not one touch (since there is also a possibility of pinching in case of two or more fingers). //タッチが1つでないときは無効にする(※2つ以上の指の場合はピンチの可能性もあるため) - { - pressing = false; - } -#endif - } - -#endregion Swipe operation Section - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeInput.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeInput.cs.meta deleted file mode 100644 index d6cf7cc1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Input/SwipeInput.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d1ba0e164e7576941bdd322b6fcae977 -timeCreated: 1515227633 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module.meta deleted file mode 100644 index f52458ee..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 407d1371f1ee8ab4f990490314103376 -folderAsset: yes -timeCreated: 1506501032 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPlugin.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPlugin.cs deleted file mode 100644 index e5452fbc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPlugin.cs +++ /dev/null @@ -1,7107 +0,0 @@ -using System; -using System.Linq; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using Random = UnityEngine.Random; - -namespace FantomLib -{ - /// - /// Call the Android native plugin - /// http://fantom1x.blog130.fc2.com/blog-entry-293.html - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html - ///(*) "fantomPlugin.aar" is required 'Minimum API Level:Android 4.2 (API 17)' or higher. - ///(*) When using text file reading / writing to storage, it is necessary to make it more than Android 4.4 (API 19). - ///(*) In order to acquire the value of the sensor it is necessary to set it above the necessary API Level of each sensor. - /// For details, refer to official document or comments such as sensor related method & constant values. - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///・When using Hardware Volume Control, Speech Recognize with dialog, Wifi Settings open, Bluetooth request enable, - /// Text file read/write to External Storage, Gallery open, Media Scanner, Screen orientation change event, Sensor values, Confirm Device Credentials, QR Code Scanner, - /// Rename "AndroidManifest-FullPlugin~.xml" to "AndroidManifest.xml". - ///・Permission is necessary for AndroidManifest.xml (It is summarized in Permission_ReadMe.txt) depending on the function to use. - /// https://developer.android.com/reference/android/Manifest.permission.html - ///・Text to Speech is required the reading engine and voice data must be installed on the device. - /// (Google Play) - /// https://play.google.com/store/apps/details?id=com.google.android.tts - /// https://play.google.com/store/apps/details?id=jp.kddilabs.n2tts (Japanese) - /// (Installation Text To Speech) - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech_install - ///·If ZXing's QR Code Scanner application is not in the device, a dialog prompting installation will be displayed. - /// (Google Play) - /// https://play.google.com/store/apps/details?id=com.google.zxing.client.android - /// (ZXing open source project) - /// https://github.com/zxing/zxing - /// ========================================================== - ///・License of use library. etc - /// This plugin includes deliverables distributed under the license of Apache License, Version 2.0. - /// http://www.apache.org/licenses/LICENSE-2.0 - /// ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] (QR Code Scan) - /// https://github.com/zxing/zxing - /// ========================================================== - /// - /// - /// Android のネイティブプラグインを呼び出すクラス - /// http://fantom1x.blog130.fc2.com/blog-entry-293.html - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html - ///※Assets/Plugins/Android/fantomPlugin.aar を置く。 - ///※Minimum API Level:Android 4.2 (API 17) 以上にする。 - ///※ストレージへのテキストファイル読み書きを利用する場合は、Android 4.4 (API 19) 以上にする必要がある。 - ///※ハードウェア音量キーのイベント取得、ダイアログ付きの音声認識、WIFIの設定を開く、Bluetooth接続要求(ダイアログ)、ストレージのテキストファイルの読み書き、 - /// ギャラリーの画像パス取得、MediaScannerの更新機能、バッテリーステータスの取得、画面回転イベントの取得、デバイス認証、QRコードスキャナを利用する場合には、 - /// 「FullPluginOnUnityPlayerActivity」を「AndroidManifest.xml」で使う必要がある(「AndroidManifest-FullPlugin~.xml」をリネームして使う)。 - ///※利用する機能によっては AndroidManifest.xml にパーミッションが必要(Permission_ReadMe.txt にまとめてある)。 - /// https://developer.android.com/reference/android/Manifest.permission.html - ///・テキスト読み上げを使用するには端末に音声データがインストールされている必要がある。 - /// (Google Play) - /// https://play.google.com/store/apps/details?id=com.google.android.tts - /// https://play.google.com/store/apps/details?id=jp.kddilabs.n2tts - /// (テキスト読み上げのインストール) - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech_install - ///・QRコード読み取りを利用するには端末に ZXing(googleのオープンソースプロジェクト)のQRコードスキャナアプリがインストールされている必要がある。 - /// インストールされていない場合、インストールを促すダイアログが表示される(Google Play へ誘導される)。 - /// (Google Play) - /// https://play.google.com/store/apps/details?id=com.google.zxing.client.android - /// (ZXing オープンソースプロジェクト) - /// https://github.com/zxing/zxing - /// ========================================================== - ///・使用ライブラリのライセンス等 - /// このプラグインには Apache License, Version 2.0 のライセンスで配布されている成果物を含んでいます。 - /// http://www.apache.org/licenses/LICENSE-2.0 - /// ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] (QR Code Scan) - /// https://github.com/zxing/zxing - /// ========================================================== - /// -#if UNITY_ANDROID - public static class AndroidPlugin - { - - //Class full path of plug-in in Java - public const string ANDROID_PACKAGE = "jp.fantom1x.plugin.android.fantomPlugin"; - public const string ANDROID_SYSTEM = ANDROID_PACKAGE + ".AndroidSystem"; - - - - //========================================================== - // etc functions - - /// - /// Release of cashe etc. - ///(*) When using "FullPluginOnUnityPlayerActivity", it is always invoked inside the plugin at the end of the application. - /// - /// すべての機能、キャッシュなどのリリース - ///※「FullPluginOnUnityPlayerActivity」を利用しているときはアプリ終了時に必ずプラグイン内部で呼ばれる。 - /// - public static void Release() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "release" - ); - } - - HardKey.ReleaseCache(); - } - - - - - /// - /// Get API Level (Build.VERSION.SDK_INT) of the device - /// https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels - /// https://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT - /// - /// - /// デバイスの API Level (Build.VERSION.SDK_INT) を取得する - /// - /// API Level - public static int GetAPILevel() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getBuildVersion" - ); - } - } - - - - /// - /// Check if the application is installed - ///・Application is specified by package name (= Returns whether the package name exists on the device). - ///(*) You can not get packages that are not published to the Android system (always return false). - /// - /// - /// アプリケーションがインストールされているを調べる - ///・アプリケーションはパッケージ名で指定する(=端末にパッケージ名が存在しているかを返す)。 - ///※Androidシステムに公開されてないパッケージは取得できない(常にfalseが返る)。 - /// - /// Package name (Application ID) - /// true = exist - public static bool IsExistApplication(string packageName) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isExistPackage", - context, - packageName - ); - } - } - } - } - - - - /// - /// Get the label name (localized name) of the application (only if set in the application) - /// - /// アプリケーション名(ローカライズされた名前)を取得する(アプリで設定されてる場合のみ) - /// - /// Package name (Application ID) - /// Application name - public static string GetApplicationName(string packageName) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getApplicationName", - context, - packageName - ); - } - } - } - } - - - - /// - /// Get version code of the application (Internal number that always increments [integer value]) - /// https://developer.android.com/studio/publish/versioning.html#appversioning - /// - /// アプリのバージョン番号(常にインクリメントする内部番号[整数値])を取得する - /// https://developer.android.com/studio/publish/versioning.html#appversioning - /// - /// Package name (Application ID) - /// Version Code / failure = 0 - public static int GetVersionCode(string packageName) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getVersionCode", - context, - packageName - ); - } - } - } - } - - - - /// - /// Get the version name of the application (Character string used as the version [number] to be displayed to the user) - /// https://developer.android.com/studio/publish/versioning.html#appversioning - /// - /// アプリのバージョン名(ユーザーに表示するバージョン[番号]として使用される文字列)を取得する - /// https://developer.android.com/studio/publish/versioning.html#appversioning - /// - /// Package name (Application ID) - /// Version Name / failure = ""(empty) - public static string GetVersionName(string packageName) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getVersionName", - context, - packageName - ); - } - } - } - } - - - - - //========================================================== - //·Permissions used in fantomPlugin are as follows: - // プラグインで利用するパーミッションは以下の通り: - // android.permission.RECORD_AUDIO - // android.permission.WRITE_EXTERNAL_STORAGE (or android.permission.READ_EXTERNAL_STORAGE : When read only) - // android.permission.BLUETOOTH - // android.permission.VIBRATE - // android.permission.BODY_SENSORS - //========================================================== - - /// - /// Returns whether permission is granted. - /// https://developer.android.com/reference/android/Manifest.permission.html - ///·Use "Constant Value" in the developer manual for the permission string (eg: "android.permission.RECORD_AUDIO"). - /// - /// パーミッションが許可(付与)されているかどうかを返す - ///・パーミッションの文字列はデベロッパーマニュアルの「Constant Value」を使う(例:"android.permission.RECORD_AUDIO")。 - /// https://developer.android.com/reference/android/Manifest.permission.html - /// - /// permission string (eg: "android.permission.RECORD_AUDIO") - /// true = granted / false = denied (nothing) - public static bool CheckPermission(string permission) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "checkPermission", - context, - permission - ); - } - } - } - } - - - //========================================================== - //(*) API 23 (Android 6.0) or higher - //※API 23 (Android 6.0) 以上のみ。 - //========================================================== - /// - /// Check permission, if not allowed (granted), give explanation of the rationale dialog and request - ///·Result is sent to the callback with granted ("PERMISSION_GRANTED") or denied ("PERMISSION_DENIED"). - ///·Requestable permissions need to be written in "AndroidManifest.xml" in advance. - ///·There is no request on the device before API 23 (Android 6.0), always callback only the result. - ///·The explanation dialog of the rationale will not always appear if the user checks "Don't ask again" on request. - ///·Use "Constant Value" in the developer manual for the permission string (eg: "android.permission.WRITE_EXTERNAL_STORAGE"). - /// https://developer.android.com/reference/android/Manifest.permission.html - /// - /// パーミッションをチェックし、許可(付与)されていない場合、根拠の説明と要求ダイアログを出す - ///・結果はコールバックに許可("PERMISSION_GRANTED")または拒否("PERMISSION_DENIED")で送られてくる。 - ///・要求できるパーミッションはあらかじめ「AndroidManifest.xml」に書かれている必要がある。 - ///・API 23 (Android 6.0) より前のデバイスでは要求は出ず、常に結果のみをコールバックする。 - ///・根拠の説明ダイアログは、要求のときユーザーが「今後表示しない」をチェックすると常に出なくなる。 - ///・パーミッションの文字列はデベロッパーマニュアルの「Constant Value」を使う(例:"android.permission.WRITE_EXTERNAL_STORAGE")。 - /// https://developer.android.com/reference/android/Manifest.permission.html - /// - /// permission string (eg: "android.permission.WRITE_EXTERNAL_STORAGE") - /// Rationale dialog title - /// Rationale dialog message - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Style applied to rationale dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void CheckPermissionAndRequest(string permission, string title, string message, - string callbackGameObject, string callbackMethod, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "checkPermissionAndRequest", - context, - permission, - title, - message, - callbackGameObject, - callbackMethod, - style - ); - })); - } - - - - - //========================================================== - // Anrdoid Widget etc. - // Anrdoid ウィジェットなど - //========================================================== - - /// - /// Call Android Toast - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Toast - /// (Toast) - /// https://developer.android.com/reference/android/widget/Toast.html#LENGTH_LONG - /// - /// Android の Toast を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Toast - /// (Toast) - /// https://developer.android.com/reference/android/widget/Toast.html#LENGTH_LONG - /// - /// Message string - /// Display length : true = 3.5s / false = 2.0s - public static void ShowToast(string message, bool longDuration = false) - { - if (string.IsNullOrEmpty(message)) - return; - - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showToast", - context, - message, - longDuration ? 1 : 0 - ); - })); - } - - - - /// - /// Cancel if there is "Android Toast" being displayed. Ignored when not displayed. - ///・Even when "AndroidPlugin.Release()" is called, it is executed on the native side. - /// - /// 表示している Toast がある場合中断する。無いときは何もしない(エラーにはならない) - ///・AndroidPlugin.Release() が呼ばれたときも、ネイティブ側で実行される。 - /// - public static void CancelToast() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "cancelToast" - ); - } - } - - - - //========================================================== - // Android Dialogs - // ダイアログ - // https://developer.android.com/guide/topics/ui/dialogs.html - // (AlertDialog) - // https://developer.android.com/reference/android/app/AlertDialog.html - //========================================================== - - - /// - /// Call Android "Yes/No" Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_AlertDialogYN - ///・"Yes" -> yesValue / "No" -> noValue is returned as the argument of the callback. - ///・When neither is pressed (clicking outside the dialog -> back to application), - /// nothing is returned (not doing anything). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// "Yes"/"No" ダイアログ:Android の AlertDialog を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_AlertDialogYN - ///・「Yes」→ yesValue / 「No」→ noValue がコールバックの引数で返される。 - ///・どちらも押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "Yes" button - /// Return value when "Yes" button - /// String of "No" button - /// Return value when "No" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDialog(string title, string message, string callbackGameObject, string callbackMethod, - string yesCaption, string yesValue, string noCaption, string noValue, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showDialog", - context, - title, - message, - callbackGameObject, - callbackMethod, - yesCaption, - yesValue, - noCaption, - noValue, - style - ); - })); - } - - - /// - /// Call Android "OK" Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_AlertDialogOK - ///・When pressed the "OK" button or clicked outside the dialog (-> back to application) - /// return the same value (resultValue). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// "OK" ダイアログ:Android の AlertDialog を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_AlertDialogOK - ///・ボタン押下、ダイアログ外クリック(元の画面に戻った)ともに同じ戻値(resultValue)を返す。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// Return value when "OK" button or closed dialog - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDialog(string title, string message, string callbackGameObject, string callbackMethod, - string okCaption, string resultValue, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showDialog", - context, - title, - message, - callbackGameObject, - callbackMethod, - okCaption, - resultValue, - style - ); - })); - } - - - - /// - /// Call Android "Yes/No" Dialog with CheckBox - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogYNwithCheck - ///・The check status is returned as a callback argument with ", CHECKED_TRUE" or ", CHECKED_FALSE" - /// concatenated with the return value (yesValue / noValue). - ///・When neither is pressed (clicking outside the dialog -> back to application), - /// nothing is returned (not doing anything). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// チェックボックス付きの "Yes"/"No" ダイアログ:Android の AlertDialog を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogYNwithCheck - ///・チェック状態は戻り値(yesValue/noValue)に ", CHECKED_TRUE" または ", CHECKED_FALSE" が結合されてコールバックの引数で返される。 - ///・どちらも押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Text string of check box - /// Text color of check box (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// Initial state of check box (true = On / false = Off) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "Yes" button - /// Return value when "Yes" button - /// String of "No" button - /// Return value when "No" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDialogWithCheckBox(string title, string message, - string checkBoxText, int checkBoxTextColor, bool defaultChecked, - string callbackGameObject, string callbackMethod, - string yesCaption, string yesValue, string noCaption, string noValue, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showDialogWithCheckBox", - context, - title, - message, - checkBoxText, - checkBoxTextColor, - defaultChecked, - callbackGameObject, - callbackMethod, - yesCaption, - yesValue, - noCaption, - noValue, - style - ); - })); - } - - - /// - /// Call Android "Yes/No" Dialog with CheckBox (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogYNwithCheck - ///・The check status is returned as a callback argument with ", CHECKED_TRUE" or ", CHECKED_FALSE" - /// concatenated with the return value (yesValue / noValue). - ///・When neither is pressed (clicking outside the dialog -> back to application), - /// nothing is returned (not doing anything). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// チェックボックス付きの "Yes"/"No" ダイアログ:Android の AlertDialog を使用する(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogYNwithCheck - ///・チェック状態は戻り値(yesValue/noValue)に ", CHECKED_TRUE" または ", CHECKED_FALSE" が結合されてコールバックの引数で返される。 - ///・どちらも押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Text string of check box - /// Text color of check box (Color.clear = not specified: Not clear color) - /// Initial state of check box (true = On / false = Off) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "Yes" button - /// Return value when "Yes" button - /// String of "No" button - /// Return value when "No" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDialogWithCheckBox(string title, string message, - string checkBoxText, Color checkBoxTextColor, bool defaultChecked, - string callbackGameObject, string callbackMethod, - string yesCaption, string yesValue, string noCaption, string noValue, string style = "") - { - ShowDialogWithCheckBox(title, message, checkBoxText, checkBoxTextColor.ToIntARGB(), defaultChecked, - callbackGameObject, callbackMethod, yesCaption, yesValue, noCaption, noValue, style); - } - - - - /// - /// Call Android "OK" Dialog with CheckBox - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogOKwithCheck - ///・The check status is returned as a callback argument with ", CHECKED_TRUE" or ", CHECKED_FALSE" - /// concatenated with the return value (resultValue). - ///・When pressed the "OK" button or clicked outside the dialog (-> back to application) - /// return the same value (resultValue). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// チェックボックス付きの "OK" ダイアログ:Android の AlertDialog を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogOKwithCheck - ///・チェック状態は戻り値(resultValue)に ", CHECKED_TRUE"または", CHECKED_FALSE"が結合されてコールバックの引数で返される。 - ///・ボタン押下、ダイアログ外クリック(元の画面に戻った)共に同じ戻値を返す。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Text string of check box - /// Text color of check box (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// Initial state of check box (true = On / false = Off) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// Return value when "OK" button or the dialog is closed - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDialogWithCheckBox(string title, string message, - string checkBoxText, int checkBoxTextColor, bool defaultChecked, - string callbackGameObject, string callbackMethod, - string okCaption, string resultValue, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showDialogWithCheckBox", - context, - title, - message, - checkBoxText, - checkBoxTextColor, - defaultChecked, - callbackGameObject, - callbackMethod, - okCaption, - resultValue, - style - ); - })); - } - - - /// - /// Call Android "OK" Dialog with CheckBox (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogOKwithCheck - ///・The check status is returned as a callback argument with ", CHECKED_TRUE" or ", CHECKED_FALSE" - /// concatenated with the return value (resultValue). - ///・When pressed the "OK" button or clicked outside the dialog (-> back to application) - /// return the same value (resultValue). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// チェックボックス付きの "OK" ダイアログ:Android の AlertDialog を使用する(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-279.html#fantomPlugin_AlertDialogOKwithCheck - ///・チェック状態は戻り値(resultValue)に ", CHECKED_TRUE"または", CHECKED_FALSE"が結合されてコールバックの引数で返される。 - ///・ボタン押下、ダイアログ外クリック(元の画面に戻った)共に同じ戻値を返す。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Text string of check box - /// Text color of check box (Color.clear = not specified: Not clear color) - /// Initial state of check box (true = On / false = Off) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// Return value when "OK" button or closed dialog - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDialogWithCheckBox(string title, string message, - string checkBoxText, Color checkBoxTextColor, bool defaultChecked, - string callbackGameObject, string callbackMethod, - string okCaption, string resultValue, string style = "") - { - ShowDialogWithCheckBox(title, message, checkBoxText, checkBoxTextColor.ToIntARGB(), defaultChecked, - callbackGameObject, callbackMethod, okCaption, resultValue, style); - } - - - - //========================================================== - // Select Dialog (selection list) - - /// - /// Call Android Selection list Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SelectDialog - ///・There is no confirmation button. - ///・When "OK", the string of the choice (items) is returned as it is as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///・When clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 選択リストダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SelectDialog - ///・選択肢の文字列がそのままコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSelectDialog(string title, string[] items, - string callbackGameObject, string callbackMethod, bool resultIsIndex = false, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSelectDialog", - context, - title, - items, - callbackGameObject, - callbackMethod, - resultIsIndex, - style - ); - })); - } - - - //(*) Return result value for each item - //※アイテムごとの結果文字列を返す - /// - /// Call Android Selection list Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SelectDialog - ///・There is no confirmation button. - ///・An element of the result array (resultValues) corresponding to the sequence of choices (items) - /// is returned as the argument of the callback. - ///・When clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 選択リストダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SelectDialog - ///・選択肢の並びに対応した結果配列(resultValues)の要素がコールバックの引数で返される。 - ///・何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSelectDialog(string title, string[] items, - string callbackGameObject, string callbackMethod, string[] resultValues, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSelectDialog", - context, - title, - items, - callbackGameObject, - callbackMethod, - resultValues, - style - ); - })); - } - - - - //========================================================== - // Single Choice Dialog - - /// - /// Call Android Single Choice Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・When "OK", the string of the choice (items) is returned as it is as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一選択肢ダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・ShowSelectDialog() と基本的に変わらないがデフォルトを持ち、"OK/Cancel" ボタンがある。 - ///・"OK" のとき、選択肢の文字列がそのままコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial value of index (0~n-1) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleChoiceDialog(string title, string[] items, int checkedItem, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - bool resultIsIndex, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSingleChoiceDialog", - context, - title, - items, - checkedItem, - callbackGameObject, - resultCallbackMethod, - changeCallbackMethod, - cancelCallbackMethod, - resultIsIndex, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) No cancel callback overload - //※キャンセルコールバック無し オーバーロード - /// - /// Call Android Single Choice Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・When "OK", the string of the choice (items) is returned as it is as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一選択肢ダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・ShowSelectDialog() と基本的に変わらないがデフォルトを持ち、"OK/Cancel" ボタンがある。 - ///・"OK" のとき、選択肢の文字列がそのままコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial value of index (0~n-1) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleChoiceDialog(string title, string[] items, int checkedItem, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, - bool resultIsIndex, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSingleChoiceDialog(title, items, checkedItem, - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - resultIsIndex, okCaption, cancelCaption, style); - } - - //(*) Argument omission overload - //※引数省略 オーバーロード - /// - /// Call Android Single Choice Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・When "OK", the string of the choice (items) is returned as it is as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一選択肢ダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・ShowSelectDialog() と基本的に変わらないがデフォルトを持ち、"OK/Cancel" ボタンがある。 - ///・"OK" のとき、選択肢の文字列がそのままコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial value of index (0~n-1) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleChoiceDialog(string title, string[] items, int checkedItem, - string callbackGameObject, string callbackMethod, bool resultIsIndex = false, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSingleChoiceDialog(title, items, checkedItem, - callbackGameObject, callbackMethod, "", "", - resultIsIndex, okCaption, cancelCaption, style); - } - - - //(*) Return result value for each item - //※アイテムごとの結果文字列を返す - /// - /// Call Android Single Choice Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・When "OK", the element of the result array (resultValues) corresponding to the sequence of choices (items) - /// is returned as the argument of the callback. - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一選択肢ダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・ShowSelectDialog() と基本的に変わらないがデフォルトを持ち、"OK/Cancel" ボタンがある。 - ///・"OK" のとき、選択肢の並びに対応した結果配列(resultValues)の要素がコールバックの引数で返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial value of index (0~n-1) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleChoiceDialog(string title, string[] items, int checkedItem, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - string[] resultValues, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSingleChoiceDialog", - context, - title, - items, - checkedItem, - callbackGameObject, - resultCallbackMethod, - changeCallbackMethod, - cancelCallbackMethod, - resultValues, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) Return result value for each item - //(*) No cancel callback overload - //※アイテムごとの結果文字列を返す - //※キャンセルコールバック無し オーバーロード - /// - /// Call Android Single Choice Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・When "OK", the element of the result array (resultValues) corresponding to the sequence of choices (items) - /// is returned as the argument of the callback. - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一選択肢ダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・ShowSelectDialog() と基本的に変わらないがデフォルトを持ち、"OK/Cancel" ボタンがある。 - ///・"OK" のとき、選択肢の並びに対応した結果配列(resultValues)の要素がコールバックの引数で返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial value of index (0~n-1) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleChoiceDialog(string title, string[] items, int checkedItem, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, - string[] resultValues, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSingleChoiceDialog(title, items, checkedItem, - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - resultValues, okCaption, cancelCaption, style); - } - - //(*) Return result value for each item - //(*) Argument omission overload - //※アイテムごとの結果文字列を返す - //※引数省略 オーバーロード - /// - /// Call Android Single Choice Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・When "OK", the element of the result array (resultValues) corresponding to the sequence of choices (items) - /// is returned as the argument of the callback. - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一選択肢ダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_SingleChoiceDialog - ///・ShowSelectDialog() と基本的に変わらないがデフォルトを持ち、"OK/Cancel" ボタンがある。 - ///・"OK" のとき、選択肢の並びに対応した結果配列(resultValues)の要素がコールバックの引数で返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial value of index (0~n-1) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleChoiceDialog(string title, string[] items, int checkedItem, - string callbackGameObject, string callbackMethod, string[] resultValues, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSingleChoiceDialog(title, items, checkedItem, - callbackGameObject, callbackMethod, "", "", - resultValues, okCaption, cancelCaption, style); - } - - - - //========================================================== - // Multi Choice Dialog - - /// - /// Call Android Multi Choice Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・Return only those checked from multiple choices. - ///・When "OK", the string of the choice is concatenated with a line feed ("\n") and returned as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数選択肢ダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・複数の選択肢の中からチェックされているものだけを返すダイアログ。スイッチダイアログ(ShowSwitchDialog())と異なり、オフになっているものは返ってこない。 - ///・"OK" のとき、選択肢の文字列が改行("\n")で連結されてコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial state of checked (Array) (null = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiChoiceDialog(string title, string[] items, bool[] checkedItems, - string callbackGameObject, string callbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - bool resultIsIndex, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showMultiChoiceDialog", - context, - title, - items, - checkedItems, - callbackGameObject, - callbackMethod, - changeCallbackMethod, - cancelCallbackMethod, - resultIsIndex, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) No cancel callback overload - //※キャンセルコールバック無し オーバーロード - /// - /// Call Android Multi Choice Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・Return only those checked from multiple choices. - ///・When "OK", the string of the choice is concatenated with a line feed ("\n") and returned as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数選択肢ダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・複数の選択肢の中からチェックされているものだけを返すダイアログ。スイッチダイアログ(ShowSwitchDialog())と異なり、オフになっているものは返ってこない。 - ///・"OK" のとき、選択肢の文字列が改行("\n")で連結されてコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial state of checked (Array) (null = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiChoiceDialog(string title, string[] items, bool[] checkedItems, - string callbackGameObject, string callbackMethod, string changeCallbackMethod, - bool resultIsIndex, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowMultiChoiceDialog(title, items, checkedItems, - callbackGameObject, callbackMethod, changeCallbackMethod, "", - resultIsIndex, okCaption, cancelCaption, style); - } - - //(*) Argument omission overload - //※引数省略 オーバーロード - /// - /// Call Android Multi Choice Dialog (Return index or items string) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・Return only those checked from multiple choices. - ///・When "OK", the string of the choice is concatenated with a line feed ("\n") and returned as the argument of the callback - /// (or return index ([*]string type) with resultIsIndex=true). - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数選択肢ダイアログ:Android の AlertDialog を使用する(アイテムの文字列 または インデクスを返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・複数の選択肢の中からチェックされているものだけを返すダイアログ。スイッチダイアログ(ShowSwitchDialog())と異なり、オフになっているものは返ってこない。 - ///・"OK" のとき、選択肢の文字列が改行("\n")で連結されてコールバックの引数で返される(resultIsIndex=true でインデクス(※文字列型)で返す)。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial state of checked (Array) (null = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Flag to set return value as index ([*]string type) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiChoiceDialog(string title, string[] items, bool[] checkedItems, - string callbackGameObject, string callbackMethod, bool resultIsIndex = false, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowMultiChoiceDialog(title, items, checkedItems, - callbackGameObject, callbackMethod, "", "", - resultIsIndex, okCaption, cancelCaption, style); - } - - - //(*) Return result value for each item - //※アイテムごとの結果文字列を返す - /// - /// Call Android Multi Choice Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・Return only those checked from multiple choices. - ///・When "OK", the elements of the result array (resultValues) corresponding to the sequence of choices (items) - /// are concatenated with line feed ("\n") and returned as arguments of the callback. - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数選択肢ダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・複数の選択肢の中からチェックされているものだけを返すダイアログ。スイッチダイアログ(ShowSwitchDialog())と異なり、オフになっているものは返ってこない。 - ///・"OK" のとき、選択肢の並びに対応した結果配列(resultValues)の要素が改行("\n")で連結されてコールバックの引数で返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial state of checked (Array) (null = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiChoiceDialog(string title, string[] items, bool[] checkedItems, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - string[] resultValues, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showMultiChoiceDialog", - context, - title, - items, - checkedItems, - callbackGameObject, - resultCallbackMethod, - changeCallbackMethod, - cancelCallbackMethod, - resultValues, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) Return result value for each item, No cancel callback overload - //※アイテムごとの結果文字列を返す, キャンセルコールバック無し オーバーロード - /// - /// Call Android Multi Choice Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・Return only those checked from multiple choices. - ///・When "OK", the elements of the result array (resultValues) corresponding to the sequence of choices (items) - /// are concatenated with line feed ("\n") and returned as arguments of the callback. - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数選択肢ダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・複数の選択肢の中からチェックされているものだけを返すダイアログ。スイッチダイアログ(ShowSwitchDialog())と異なり、オフになっているものは返ってこない。 - ///・"OK" のとき、選択肢の並びに対応した結果配列(resultValues)の要素が改行("\n")で連結されてコールバックの引数で返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial state of checked (Array) (null = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiChoiceDialog(string title, string[] items, bool[] checkedItems, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, - string[] resultValues, string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowMultiChoiceDialog(title, items, checkedItems, - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - resultValues, okCaption, cancelCaption, style); - } - - //(*) Return result value for each item, Argument omission overload - //※アイテムごとの結果文字列を返す, 引数省略 オーバーロード - /// - /// Call Android Multi Choice Dialog (Return result value for each item) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・Return only those checked from multiple choices. - ///・When "OK", the elements of the result array (resultValues) corresponding to the sequence of choices (items) - /// are concatenated with line feed ("\n") and returned as arguments of the callback. - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数選択肢ダイアログ:Android の AlertDialog を使用する(アイテムごとの結果文字列を返す) - /// http://fantom1x.blog130.fc2.com/blog-entry-274.html#fantomPlugin_MultiChoiceDialog - ///・複数の選択肢の中からチェックされているものだけを返すダイアログ。スイッチダイアログ(ShowSwitchDialog())と異なり、オフになっているものは返ってこない。 - ///・"OK" のとき、選択肢の並びに対応した結果配列(resultValues)の要素が改行("\n")で連結されてコールバックの引数で返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Choice strings (Array) - /// Initial state of checked (Array) (null = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// The element of the selected index (items) becomes the return value - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiChoiceDialog(string title, string[] items, bool[] checkedItems, - string callbackGameObject, string callbackMethod, string[] resultValues, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowMultiChoiceDialog(title, items, checkedItems, - callbackGameObject, callbackMethod, "", "", - resultValues, okCaption, cancelCaption, style); - } - - - - //========================================================== - // Switch Dialog - - /// - /// Call Android Switch Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・Depending on the state of the switch, a dialog for acquiring the On/Off state of each item. - ///・When "OK", the result (true/false) corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・When a key is set for each item, the state of the switch (true/false) is returned with '=' like "key=true", "key=false". - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スイッチの状態により、各アイテムのオン・オフ状態を取得するダイアログ - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・複数選択肢ダイアログ(ShowMultiChoiceDialog())と異なり、オフの状態も結果として返ってくる。 - ///・"OK" のとき、アイテムの並びに対応した結果(true/false)が改行("\n")で連結されてコールバックの引数で返される。 - ///・各アイテムにキーを設定したときは "key=true", "key=false" のように '=' でスイッチの状態(true/false)が返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial state of the switches (Array) (null = all off) - /// Text color of items (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSwitchDialog(string title, string message, - string[] items, string[] itemKeys, bool[] checkedItems, int itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - string okCaption, string cancelCaption, string style) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSwitchDialog", - context, - title, - message, - items, - itemKeys, - checkedItems, - itemsTextColor, - callbackGameObject, - resultCallbackMethod, - changeCallbackMethod, - cancelCallbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) No cancel callback overload - //※キャンセルコールバック無し オーバーロード - /// - /// Call Android Switch Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・Depending on the state of the switch, a dialog for acquiring the On/Off state of each item. - ///・When "OK", the result (true/false) corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・When a key is set for each item, the state of the switch (true/false) is returned with '=' like "key=true", "key=false". - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スイッチの状態により、各アイテムのオン・オフ状態を取得するダイアログ - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・複数選択肢ダイアログ(ShowMultiChoiceDialog())と異なり、オフの状態も結果として返ってくる。 - ///・"OK" のとき、アイテムの並びに対応した結果(true/false)が改行("\n")で連結されてコールバックの引数で返される。 - ///・各アイテムにキーを設定したときは "key=true", "key=false" のように '=' でスイッチの状態(true/false)が返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial state of the switches (Array) (null = all off) - /// Text color of items (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSwitchDialog(string title, string message, - string[] items, string[] itemKeys, bool[] checkedItems, int itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, - string okCaption, string cancelCaption, string style) - { - ShowSwitchDialog(title, message, items, itemKeys, checkedItems, itemsTextColor, - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - okCaption, cancelCaption, style); - } - - //(*) Argument omission overload - //※引数省略 オーバーロード - /// - /// Call Android Switch Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・Depending on the state of the switch, a dialog for acquiring the On/Off state of each item. - ///・When "OK", the result (true/false) corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・When a key is set for each item, the state of the switch (true/false) is returned with '=' like "key=true", "key=false". - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スイッチの状態により、各アイテムのオン・オフ状態を取得するダイアログ - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・複数選択肢ダイアログ(ShowMultiChoiceDialog())と異なり、オフの状態も結果として返ってくる。 - ///・"OK" のとき、アイテムの並びに対応した結果(true/false)が改行("\n")で連結されてコールバックの引数で返される。 - ///・各アイテムにキーを設定したときは "key=true", "key=false" のように '=' でスイッチの状態(true/false)が返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial state of the switches (Array) (null = all off) - /// Text color of items (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSwitchDialog(string title, string message, - string[] items, string[] itemKeys, bool[] checkedItems, int itemsTextColor, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSwitchDialog(title, message, items, itemKeys, checkedItems, itemsTextColor, - callbackGameObject, callbackMethod, "", "", - okCaption, cancelCaption, style); - } - - - //(*) Unity.Color overload - /// - /// Call Android Switch Dialog (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・Depending on the state of the switch, a dialog for acquiring the On/Off state of each item. - ///・When "OK", the result (true/false) corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・When a key is set for each item, the state of the switch (true/false) is returned with '=' like "key=true", "key=false". - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スイッチの状態により、各アイテムのオン・オフ状態を取得するダイアログ(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・複数選択肢ダイアログ(ShowMultiChoiceDialog())と異なり、オフの状態も結果として返ってくる。 - ///・"OK" のとき、選択肢の並びに対応した結果(true/false)が改行("\n")で連結されてコールバックの引数で返される。 - ///・各アイテムにキーを設定したときは "key=true", "key=false" のように '=' でスイッチの状態(true/false)が返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial state of the switches (Array) (null = all off) - /// Text color of items (Color.clear = not specified: Not clear color) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSwitchDialog(string title, string message, - string[] items, string[] itemKeys, bool[] checkedItems, Color itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - string okCaption, string cancelCaption, string style) - { - ShowSwitchDialog(title, message, items, itemKeys, checkedItems, itemsTextColor.ToIntARGB(), - callbackGameObject, resultCallbackMethod, changeCallbackMethod, cancelCallbackMethod, - okCaption, cancelCaption, style); - } - - //※Unity.Color, キャンセルコールバック無し オーバーロード - //(*) Unity.Color, No cancel callback overload - /// - /// Call Android Switch Dialog (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・Depending on the state of the switch, a dialog for acquiring the On/Off state of each item. - ///・When "OK", the result (true/false) corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・When a key is set for each item, the state of the switch (true/false) is returned with '=' like "key=true", "key=false". - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スイッチの状態により、各アイテムのオン・オフ状態を取得するダイアログ(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・複数選択肢ダイアログ(ShowMultiChoiceDialog())と異なり、オフの状態も結果として返ってくる。 - ///・"OK" のとき、選択肢の並びに対応した結果(true/false)が改行("\n")で連結されてコールバックの引数で返される。 - ///・各アイテムにキーを設定したときは "key=true", "key=false" のように '=' でスイッチの状態(true/false)が返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial state of the switches (Array) (null = all off) - /// Text color of items (Color.clear = not specified: Not clear color) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback of value chaged (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSwitchDialog(string title, string message, - string[] items, string[] itemKeys, bool[] checkedItems, Color itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, - string okCaption, string cancelCaption, string style) - { - ShowSwitchDialog(title, message, items, itemKeys, checkedItems, itemsTextColor.ToIntARGB(), - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - okCaption, cancelCaption, style); - } - - //(*) Unity.Color, Argument omission overload - //※Unity.Color, 引数省略 オーバーロード - /// - /// Call Android Switch Dialog (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・Depending on the state of the switch, a dialog for acquiring the On/Off state of each item. - ///・When "OK", the result (true/false) corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・When a key is set for each item, the state of the switch (true/false) is returned with '=' like "key=true", "key=false". - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スイッチの状態により、各アイテムのオン・オフ状態を取得するダイアログ(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-280.html#fantomPlugin_SwitchDialog - ///・複数選択肢ダイアログ(ShowMultiChoiceDialog())と異なり、オフの状態も結果として返ってくる。 - ///・"OK" のとき、選択肢の並びに対応した結果(true/false)が改行("\n")で連結されてコールバックの引数で返される。 - ///・各アイテムにキーを設定したときは "key=true", "key=false" のように '=' でスイッチの状態(true/false)が返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial state of the switches (Array) (null = all off) - /// Text color of items (Color.clear = not specified: Not clear color) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSwitchDialog(string title, string message, - string[] items, string[] itemKeys, bool[] checkedItems, Color itemsTextColor, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSwitchDialog(title, message, items, itemKeys, checkedItems, itemsTextColor.ToIntARGB(), - callbackGameObject, callbackMethod, "", "", - okCaption, cancelCaption, style); - } - - - - //========================================================== - // Slider (Seekbar) Dialog - - /// - /// Call Android Slider (Seekbar) Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・When "OK", the result value corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・The result value follows the setting of the number of digits after the decimal point (digits) (it becomes an integer when 0). - ///・When a key is set for each item, the value is returned with '=' like "key=3", "key=4.5". - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スライダー(シークバー)で設定値を取得するダイアログ - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・"OK" のとき、アイテムの並びに対応した値が改行("\n")で連結されてコールバックの引数で返される。 - ///・結果の値は小数点以下の桁数(digits)の設定に従う(0 のときは整数になる)。 - ///・各アイテムにキーを設定したときは "key=3", "key=4.5" のように '=' で値が返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Minimum values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Maximum values (null = all 100 : 6 digits of integer part + 3 digits after decimal point) - /// Number of decimal places (0 = integer, 1~3 = after decimal point) - /// Text color of items (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// GameObject name in hierarchy to callback - /// Method name to result callback when "OK" button pressed (it is in GameObject) - /// Method name to real-time callback when the value of the slider is changed (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSliderDialog(string title, string message, string[] items, string[] itemKeys, - float[] defValues, float[] minValues, float[] maxValues, int[] digits, int itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - string okCaption, string cancelCaption, string style) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSeekBarDialog", - context, - title, - message, - items, - itemKeys, - defValues, - minValues, - maxValues, - digits, - itemsTextColor, - callbackGameObject, - resultCallbackMethod, - changeCallbackMethod, - cancelCallbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) No cancel callback overload - //※キャンセルコールバック無し オーバーロード - /// - /// Call Android Slider (Seekbar) Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・When "OK", the result value corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・The result value follows the setting of the number of digits after the decimal point (digits) (it becomes an integer when 0). - ///・When a key is set for each item, the value is returned with '=' like "key=3", "key=4.5". - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スライダー(シークバー)で設定値を取得するダイアログ - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・"OK" のとき、アイテムの並びに対応した値が改行("\n")で連結されてコールバックの引数で返される。 - ///・結果の値は小数点以下の桁数(digits)の設定に従う(0 のときは整数になる)。 - ///・各アイテムにキーを設定したときは "key=3", "key=4.5" のように '=' で値が返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Minimum values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Maximum values (null = all 100 : 6 digits of integer part + 3 digits after decimal point) - /// Number of decimal places (0 = integer, 1~3 = after decimal point) - /// Text color of items (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) - /// GameObject name in hierarchy to callback - /// Method name to result callback when "OK" button pressed (it is in GameObject) - /// Method name to real-time callback when the value of the slider is changed (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSliderDialog(string title, string message, string[] items, string[] itemKeys, - float[] defValues, float[] minValues, float[] maxValues, int[] digits, int itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod = "", - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSliderDialog(title, message, items, itemKeys, - defValues, minValues, maxValues, digits, itemsTextColor, - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - okCaption, cancelCaption, style); - } - - - //(*) Unity.Color overload - /// - /// Call Android Slider Dialog (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・When "OK", the result value corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・The result value follows the setting of the number of digits after the decimal point (digits) (it becomes an integer when 0). - ///・When a key is set for each item, the value is returned with '=' like "key=3", "key=4.5". - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スライダー(シークバー)で設定値を取得するダイアログ(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・"OK" のとき、アイテムの並びに対応した値が改行("\n")で連結されてコールバックの引数で返される。 - ///・結果の値は小数点以下の桁数(digits)の設定に従う(0 のときは整数になる)。 - ///・各アイテムにキーを設定したときは "key=3", "key=4.5" のように '=' で値が返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Minimum values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Maximum values (null = all 100 : 6 digits of integer part + 3 digits after decimal point) - /// Number of decimal places (0 = integer, 1~3 = after decimal point) - /// Text color of items (Color.clear = not specified: Not clear color) - /// GameObject name in hierarchy to callback - /// Method name to result callback when "OK" button pressed (it is in GameObject) - /// Method name to real-time callback when the value of the slider is changed (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSliderDialog(string title, string message, string[] items, string[] itemKeys, - float[] defValues, float[] minValues, float[] maxValues, int[] digits, Color itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod, string cancelCallbackMethod, - string okCaption, string cancelCaption, string style) - { - ShowSliderDialog(title, message, items, itemKeys, - defValues, minValues, maxValues, digits, itemsTextColor.ToIntARGB(), - callbackGameObject, resultCallbackMethod, changeCallbackMethod, cancelCallbackMethod, - okCaption, cancelCaption, style); - } - - //(*) Unity.Color, Argument omission overload - //※Unity.Color, 引数省略 オーバーロード - /// - /// Call Android Slider Dialog (Unity.Color overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・When "OK", the result value corresponding to the sequence of items is concatenated with a line feed ("\n") - /// and returned as the argument of the callback. - ///・The result value follows the setting of the number of digits after the decimal point (digits) (it becomes an integer when 0). - ///・When a key is set for each item, the value is returned with '=' like "key=3", "key=4.5". - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スライダー(シークバー)で設定値を取得するダイアログ(Unity の Color 形式のオーバーロード) - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#fantomPlugin_SliderDialog - ///・"OK" のとき、アイテムの並びに対応した値が改行("\n")で連結されてコールバックの引数で返される。 - ///・結果の値は小数点以下の桁数(digits)の設定に従う(0 のときは整数になる)。 - ///・各アイテムにキーを設定したときは "key=3", "key=4.5" のように '=' で値が返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Item strings (Array) - /// Item keys (Array) (null = all nothing) - /// Initial values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Minimum values (null = all 0 : 6 digits of integer part + 3 digits after decimal point) - /// Maximum values (null = all 100 : 6 digits of integer part + 3 digits after decimal point) - /// Number of decimal places (0 = integer, 1~3 = after decimal point) - /// Text color of items (Color.clear = not specified: Not clear color) - /// GameObject name in hierarchy to callback - /// Method name to result callback when "OK" button pressed (it is in GameObject) - /// Method name to real-time callback when the value of the slider is changed (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSliderDialog(string title, string message, string[] items, string[] itemKeys, - float[] defValues, float[] minValues, float[] maxValues, int[] digits, Color itemsTextColor, - string callbackGameObject, string resultCallbackMethod, string changeCallbackMethod = "", - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSliderDialog(title, message, items, itemKeys, - defValues, minValues, maxValues, digits, itemsTextColor.ToIntARGB(), - callbackGameObject, resultCallbackMethod, changeCallbackMethod, "", - okCaption, cancelCaption, style); - } - - - - - //========================================================== - // Customizable Dialog - //·Construct each item (widget) with 'DialogItem' as an argument. - //·Array of argument items are arranged in order from the top. - // http://fantom1x.blog130.fc2.com/blog-entry-290.html - // http://fantom1x.blog130.fc2.com/blog-entry-282.html - // - // - // カスタマイズできるダイアログ - //・DialogItem を引数として、各アイテム(ウィジェット)を構築する。 - //・引数アイテムの配列は上から順に配置される。 - // http://fantom1x.blog130.fc2.com/blog-entry-290.html - // http://fantom1x.blog130.fc2.com/blog-entry-282.html - //========================================================== - - public const string ANDROID_CUSTOM_DIALOG = ANDROID_PACKAGE + ".AndroidCustomDialog"; - - /// - /// Call Android Custom Dialog - ///・Dialog where freely add Text, Switch, Slider, Toggle buttons and Dividing lines. - ///・The return value is a pair of values ("key=value" + line feed ("\n")) or JSON format ("{"key":"value"}") for a key set for each item (resultIsJson=true:JSON). - ///·When canceled without "OK" or closing, the following character string is returned in the cancel callback (cancelCallbackMethod). - /// CANCEL_DIALOG : Cancel button pressed - /// CLOSE_DIALOG : It was closed without "OK" (tap outside the dialog, erase it by pressing the back key etc.) - ///・The parameter (dialogItems) of each item (Widgets: DivisorItem, TextItem, SwitchItem, SliderItem, ToggleItem) in one array. - ///・Generation of each widget is arranged in order from the top. Ignored if there are invalid parameters (or no dialog is generated) - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// カスタマイズできるダイアログ:Android の AlertDialog を使用する - ///・テキスト、スイッチ、スライダー、トグルボタン、分割線を自由に設置できるダイアログ。 - ///・戻り値は各アイテム(ウィジェット)に設定したキーに対して値のペア("key=value"+改行("\n"))または JSON形式({"key":"value"}※ダブルクォートは値による)で返される。 - ///・キャンセルまたは「OK」せずに閉じられたときはキャンセルコールバック(cancelCallbackMethod)に以下の文字列が返る。 - /// CANCEL_DIALOG : キャンセルボタンが押された - /// CLOSE_DIALOG : 「OK」せずに閉じられた(ダイアログ外をタップ、バックキーを押して消した等) - ///・各アイテムのパラメタ(DialogItem)は各ウィジェット用のサブクラス(DivisorItem, TextItem, SwitchItem, SliderItem, ToggleItem)を1つの配列で渡す。 - ///・各ウィジェットの生成は上から順に配置される。不正なパラメタがあった場合は無視される(もしくはダイアログが生成されない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Parameters of each item (widget) (Array) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Method name to callback when canceled (it is in GameObject) - /// return value in: true=JSON format / false="key=value\n" - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowCustomDialog(string title, string message, DialogItem[] dialogItems, - string callbackGameObject, string resultCallbackMethod, string cancelCallbackMethod, - bool resultIsJson, string okCaption, string cancelCaption, string style) - { - if (dialogItems == null || dialogItems.Length == 0) - return; - - string[] jsons = dialogItems.Select(e => JsonUtility.ToJson(e)).ToArray(); - if (jsons == null || jsons.Length == 0) - return; - - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_CUSTOM_DIALOG); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showCustomDialog", - context, - title, - message, - jsons, - callbackGameObject, - resultCallbackMethod, - cancelCallbackMethod, - resultIsJson, - okCaption, - cancelCaption, - style - ); - })); - } - - //(*) Argument omission overload - //※引数省略 オーバーロード - /// - /// Call Android Custom Dialog - ///・Dialog where freely add Text, Switch, Slider, Toggle buttons and Dividing lines. - ///・The return value is a pair of values ("key=value" + line feed ("\n")) or JSON format ("{"key":"value"}") for a key set for each item (resultIsJson=true:JSON). - ///・When "Cancel", or clicked outside the dialog (-> back to application) return nothing. - ///・The parameter (dialogItems) of each item (Widgets: DivisorItem, TextItem, SwitchItem, SliderItem, ToggleItem) in one array. - ///・Generation of each widget is arranged in order from the top. Ignored if there are invalid parameters (or no dialog is generated) - ///(*) When use the message string, Notice that it will not be displayed if the items overflow the dialog (-> message=""). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// カスタマイズできるダイアログ:Android の AlertDialog を使用する - ///・テキスト、スイッチ、スライダー、トグルボタン、分割線を自由に設置できるダイアログ。 - ///・戻り値は各アイテム(ウィジェット)に設定したキーに対して値のペア("key=value"+改行("\n"))または JSON形式({"key":"value"}※ダブルクォートは値による)で返される。 - ///・"Cancel" または 何も押されない(ダイアログ外クリック→元の画面に戻った)ときは何も返さない(何もしない)。 - ///・各アイテムのパラメタ(DialogItem)は各ウィジェット用のサブクラス(DivisorItem, TextItem, SwitchItem, SliderItem, ToggleItem)を1つの配列で渡す。 - ///・各ウィジェットの生成は上から順に配置される。不正なパラメタがあった場合は無視される(もしくはダイアログが生成されない)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される) - /// → メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string ("" = nothing) - /// Parameters of each item (widget) (Array) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// return value in: true=JSON format / false="key=value\n" - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowCustomDialog(string title, string message, DialogItem[] dialogItems, - string callbackGameObject, string callbackMethod, bool resultIsJson = false, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowCustomDialog(title, message, dialogItems, - callbackGameObject, callbackMethod, "", - resultIsJson, okCaption, cancelCaption, style); - } - - - - - //========================================================== - // Text Input Dialogs - // テキスト入力ダイアログ - //========================================================== - - /// - /// Call Android Single line text input Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_SingleLineTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一行テキスト入力ダイアログを使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_SingleLineTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Initial value of text string - /// Character limit (0 = no limit) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleLineTextDialog(string title, string message, string text, int maxLength, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSingleLineTextDialog", - context, - title, - message, - text, - maxLength, - callbackGameObject, - callbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - - /// - /// Call Android Single line text input Dialog (no message overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_SingleLineTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 単一行テキスト入力ダイアログ(メッセージなし)を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_SingleLineTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Initial value of text string - /// Character limit (0 = no limit) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowSingleLineTextDialog(string title, string text, int maxLength, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowSingleLineTextDialog(title, "", text, maxLength, callbackGameObject, callbackMethod, okCaption, cancelCaption, style); - } - - - - /// - /// Call Android Multi line text input Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_MultiLineTextDialog - ///・Text entry to include line breaks. The line feed code of the return value is unified to "\n". - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数行テキスト入力ダイアログを使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_MultiLineTextDialog - ///・改行を含めるテキスト入力。戻り値の改行コードは "\n" に統一される。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Initial value of text string - /// Character limit (0 = no limit) - /// Number of display lines - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiLineTextDialog(string title, string message, string text, int maxLength, int lines, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showMultiLineTextDialog", - context, - title, - message, - text, - maxLength, - lines, - callbackGameObject, - callbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - - /// - /// Call Android Multi line text input Dialog (no message overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_MultiLineTextDialog - ///・Text entry to include line breaks. The line feed code of the return value is unified to "\n". - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 複数行テキスト入力ダイアログ(メッセージなし)を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-276.html#fantomPlugin_MultiLineTextDialog - ///・改行を含めるテキスト入力。戻り値の改行コードは "\n" に統一される。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Initial value of text string - /// Character limit (0 = no limit) - /// Number of display lines - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowMultiLineTextDialog(string title, string text, int maxLength, int lines, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowMultiLineTextDialog(title, "", text, maxLength, lines, callbackGameObject, callbackMethod, okCaption, cancelCaption, style); - } - - - - /// - /// Call Android Numeric text input Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_NumericTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 数値入力のテキストダイアログを使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_NumericTextDialog - ///※内部的には float 型で処理されるため、整数の場合 6~7桁くらいまでしか利用できない(桁数が大きいと "1.0+E09" のようになるため)。 - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Initial value - /// Character limit (0 = no limit) ([*]Including decimal point and sign) - /// true=decimal possible / false=integer only - /// Possible to input a sign ('-' or '+') at the beginning - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowNumericTextDialog(string title, string message, float defValue, int maxLength, bool enableDecimal, bool enableSign, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showNumericTextDialog", - context, - title, - message, - defValue, - maxLength, - enableDecimal, - enableSign, - callbackGameObject, - callbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - - /// - /// Call Android Numeric text input Dialog (no message overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_NumericTextDialog - ///(*) Since it is processed internally as a float type, it can only be used up to about 6 to 7 digits in the case of an integer (as the number of digits is large, it will be like "1.0+E09"). - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 数値入力のテキストダイアログ(メッセージなし)を使用する - ///※内部的には float 型で処理されるため、整数の場合 6~7桁くらいまでしか利用できない(桁数が大きいと "1.0+E09" のようになるため)。 - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_NumericTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Initial value - /// Character limit (0 = no limit) ([*]Including decimal point and sign) - /// true=decimal possible / false=integer only - /// Possible to input a sign ('-' or '+') at the beginning - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowNumericTextDialog(string title, float defValue, int maxLength, bool enableDecimal, bool enableSign, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowNumericTextDialog(title, "", defValue, maxLength, enableDecimal, enableSign, callbackGameObject, callbackMethod, okCaption, cancelCaption, style); - } - - - - /// - /// Call Android Alpha Numeric text input Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_AlphaNumericTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 半角英数入力のテキストダイアログを使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_AlphaNumericTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Initial value of text string - /// Character limit (0 = no limit)。 - /// Additional character lists such as symbols ("_-.@": each character, "" = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowAlphaNumericTextDialog(string title, string message, string text, int maxLength, string addChars, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showAlphaNumericTextDialog", - context, - title, - message, - text, - maxLength, - addChars, - callbackGameObject, - callbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - - /// - /// Call Android Alpha Numeric text input Dialog (no message overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_AlphaNumericTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 半角英数入力のテキストダイアログ(メッセージなし)を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_AlphaNumericTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Initial value of text string - /// Character limit (0 = no limit)。 - /// Additional character lists such as symbols ("_-.@": each character, "" = nothing) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowAlphaNumericTextDialog(string title, string text, int maxLength, string addChars, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowAlphaNumericTextDialog(title, "", text, maxLength, addChars, callbackGameObject, callbackMethod, okCaption, cancelCaption, style); - } - - - - /// - /// Call Android Password text input Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_PasswordTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// パスワード入力のテキストダイアログを使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_PasswordTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Message string - /// Initial value of text string - /// Character limit (0 = no limit)。 - /// true=numeric only - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowPasswordTextDialog(string title, string message, string text, int maxLength, bool numberOnly, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showPasswordTextDialog", - context, - title, - message, - text, - maxLength, - numberOnly, - callbackGameObject, - callbackMethod, - okCaption, - cancelCaption, - style - ); - })); - } - - - /// - /// Call Android Password text input Dialog (no message overload) - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_PasswordTextDialog - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// パスワード入力のテキストダイアログ(メッセージなし)を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-277.html#fantomPlugin_PasswordTextDialog - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Title string - /// Initial value of text string - /// Character limit (0 = no limit)。 - /// true=numeric only - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// String of "OK" button - /// String of "Cancel" button - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowPasswordTextDialog(string title, string text, int maxLength, bool numberOnly, - string callbackGameObject, string callbackMethod, - string okCaption = "OK", string cancelCaption = "Cancel", string style = "") - { - ShowPasswordTextDialog(title, "", text, maxLength, numberOnly, callbackGameObject, callbackMethod, okCaption, cancelCaption, style); - } - - - - //========================================================== - // Picker Dialogs - // Picker 系ダイアログ - //========================================================== - - /// - /// Call Android DatePicker Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-278.html#fantomPlugin_DataPickerDialog - /// When pressed the "OK" button, the date is returned as a callback with the specified format (resultDateFormat). - ///・When pressed the "Cancel" button or clicked outside the dialog (-> back to application) return nothing. - /// (Date format [Android-Java]) - /// https://developer.android.com/reference/java/text/SimpleDateFormat.html - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 日付選択ダイアログ:Android の DatePickerDialog を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-278.html#fantomPlugin_DataPickerDialog - ///・OKボタンによって、日付が指定フォーマット(resultDateFormat)で callbackGameObject の callbackMethod に返ってくる。 - ///・Cancel または、何もしない(ダイアログ外をクリック→元の画面に戻った)ときは何も返さない。 - /// (日時の書式) - /// https://developer.android.com/reference/java/text/SimpleDateFormat.html - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Initial value of date string (like "2017/01/31", "17/1/1") - /// Return date format (default: "yyyy/MM/dd"->"2017/01/03", e.g. "yy-M-d"->"17-1-3" [Android-Java]) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowDatePickerDialog(string defaultDate, string resultDateFormat, - string callbackGameObject, string callbackMethod, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showDatePickerDialog", - context, - defaultDate, - resultDateFormat, - callbackGameObject, - callbackMethod, - style - ); - })); - } - - - /// - /// Call Android TimePicker Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-278.html#fantomPlugin_TimePickerDialog - /// When pressed the "OK" button, the time is returned as a callback with the specified format (resultTimeFormat). - ///・When pressed the "Cancel" button or clicked outside the dialog (-> back to application) return nothing. - /// (Time format [Android-Java]) - /// https://developer.android.com/reference/java/text/SimpleDateFormat.html - /// (Theme) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// 時刻選択ダイアログ:Android の TimePickerDialog を使用する - /// http://fantom1x.blog130.fc2.com/blog-entry-278.html#fantomPlugin_TimePickerDialog - ///・OKボタンによって、時刻が指定フォーマット(resultTimeFormat)で callbackGameObject の callbackMethod に返ってくる。 - ///・Cancel または、何もしない(ダイアログ外をクリック→元の画面に戻った)ときは何も返さない。 - /// (日時の書式) - /// https://developer.android.com/reference/java/text/SimpleDateFormat.html - /// (テーマ) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// Initial value of time string (like "0:00"~"23:59") - /// Return time format (default: "HH:mm"->"03:05", e.g. "H:mm"->"3:05" [Android-Java]) - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Style applied to dialog (Theme: "android:Theme.DeviceDefault.Dialog.Alert", "android:Theme.DeviceDefault.Light.Dialog.Alert" or etc) - public static void ShowTimePickerDialog(string defaultTime, string resultTimeFormat, - string callbackGameObject, string callbackMethod, string style = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showTimePickerDialog", - context, - defaultTime, - resultTimeFormat, - callbackGameObject, - callbackMethod, - style - ); - })); - } - - - - - //========================================================== - // Notification - // 通知 - //========================================================== - - /// - /// Call Android Notification - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Notification - ///(*) Icon in Unity is fixed with resource name "app_icon". - ///・Put the duration in the order of the vibrator pattern array (off, on, off, on, ...) (unit: ms [millisecond = 1/1000 seconds])) / null = none - /// - /// - /// Android の Notification(通知)を使用する(表示のみ) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Notification - ///※Unity でのアイコンはリソース名"app_icon"で固定(※マニフェストファイルで書き換えない限り) - ///・バイブレーターのパターン配列は:off, on, off, on,... の順に長さを入れる(単位:ms[ミリセカンド=1/1000秒])/ null = 無し - /// - /// Title string - /// Message string - /// Icon resource name (Unity's default is "app_icon") - /// Identification tag (The same tag is overwritten when notified consecutively) - /// Add notification time display - /// Array of duration pattern / null = none - public static void ShowNotification(string title, string message, string iconName, string tag, - bool showTimestamp, long[] vibratorPattern) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showNotification", - context, - title, - message, - iconName, - tag, - showTimestamp, - vibratorPattern - ); - })); - } - - - //(*) OneShot (one time only) vibrator overload - //※OneShot(1回のみ)のバイブレーターオーバーロード - /// - /// Call Android Notification - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Notification - ///(*) Icon in Unity is fixed with resource name "app_icon". - ///・Put the duration in the order of the vibrator pattern array (off, on, off, on, ...) (unit: ms [millisecond = 1/1000 seconds])) / null = none - /// - /// - /// Android の Notification(通知)を使用する(表示のみ) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Notification - /// ※Unity でのアイコンはリソース名"app_icon"で固定(※マニフェストファイルで書き換えない限り) - /// - /// Title string - /// Message string - /// Icon resource name (Unity's default is "app_icon") - /// Identification tag (The same tag is overwritten when notified consecutively) - /// Add notification time display - /// Duration of vibration - public static void ShowNotification(string title, string message, string iconName, string tag, - bool showTimestamp, long vibratorDuration) - { - long[] pattern = vibratorDuration > 0 ? new long[] { 0, vibratorDuration } : null; - ShowNotification(title, message, iconName, tag, showTimestamp, pattern); - } - - - //(*) No vibrator overload - //※バイブレーター無しオーバーロード - /// - /// Call Android Notification - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Notification - ///(*) Icon in Unity is fixed with resource name "app_icon". - /// - /// - /// Android の Notification(通知)を使用する(表示のみ) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_Notification - /// ※Unity でのアイコンはリソース名"app_icon"で固定(※マニフェストファイルで書き換えない限り) - /// - /// Title string - /// Message string - /// Icon resource name (Unity's default is "app_icon") - /// Identification tag (The same tag is overwritten when notified consecutively) - /// Add notification time display - public static void ShowNotification(string title, string message, string iconName = "app_icon", string tag = "tag", - bool showTimestamp = true) - { - ShowNotification(title, message, iconName, tag, showTimestamp, null); - } - - - - /// - /// Call Android Notification (Tap to take action to URI) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - ///(*) Icon in Unity is fixed with resource name "app_icon". - ///・Put the duration in the order of the vibrator pattern array (off, on, off, on, ...) (ms [millisecond = 1/1000 seconds]) / null = none - /// - /// - /// Android の Notification(通知)を使用する(タップでアクションを起こす) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// ※Unity でのアイコンはリソース名"app_icon"で固定(※マニフェストファイルで書き換えない限り) - ///・バイブレーターのパターン配列は:off, on, off, on,... の順に長さを入れる(単位:ms[ミリセカンド=1/1000秒])/ null = 無し - /// - /// Title string - /// Message string - /// Icon resource name (Unity's default is "app_icon") - /// Identification tag (The same tag is overwritten when notified consecutively) - /// String of Action (e.g. "android.intent.action.VIEW") - /// URI to action (URL etc.) - /// Add notification time display - /// Array of duration pattern / null = none - public static void ShowNotificationToActionURI(string title, string message, string iconName, string tag, - string action, string uri, bool showTimestamp, long[] vibratorPattern) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showNotificationToActionURI", - context, - title, - message, - iconName, - tag, - action, - uri, - showTimestamp, - vibratorPattern - ); - })); - } - - - //(*) OneShot (one time only) vibrator overload - //※OneShot(1回のみ)のバイブレーターオーバーロード - /// - /// Call Android Notification (Tap to take action to URI) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - ///(*) Icon in Unity is fixed with resource name "app_icon". - /// - /// - /// Android の Notification(通知)を使用する(タップでアクションを起こす) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// ※Unity でのアイコンはリソース名"app_icon"で固定(※マニフェストファイルで書き換えない限り) - /// - /// Title string - /// Message string - /// Icon resource name (Unity's default is "app_icon") - /// Identification tag (The same tag is overwritten when notified consecutively) - /// String of Action (e.g. "android.intent.action.VIEW") - /// URI to action (URL etc.) - /// Add notification time display - /// Duration of vibration (ms [millisecond = 1/1000 seconds]) - public static void ShowNotificationToActionURI(string title, string message, string iconName, string tag, - string action, string uri, bool showTimestamp, long vibratorDuration) - { - long[] pattern = vibratorDuration > 0 ? new long[] { 0, vibratorDuration } : null; - ShowNotificationToActionURI(title, message, iconName, tag, action, uri, showTimestamp, pattern); - } - - - //(*) No vibrator overload - //※バイブレーター無しオーバーロード - /// - /// Call Android Notification (Tap to take action to URI) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - ///(*) Icon in Unity is fixed with resource name "app_icon". - /// - /// - /// Android の Notification(通知)を使用する(タップでアクションを起こす) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// ※Unity でのアイコンはリソース名"app_icon"で固定(※マニフェストファイルで書き換えない限り) - /// - /// Title string - /// Message string - /// Icon resource name (Unity's default is "app_icon") - /// Identification tag (The same tag is overwritten when notified consecutively) - /// String of Action (e.g. "android.intent.action.VIEW") - /// URI to action (URL etc.) - /// Add notification time display - public static void ShowNotificationToActionURI(string title, string message, string iconName = "app_icon", string tag = "tag", - string action = "android.intent.action.VIEW", string uri = "", bool showTimestamp = true) - { - ShowNotificationToActionURI(title, message, iconName, tag, action, uri, showTimestamp, null); - } - - - - /// - /// Call Android Notification (Tap to take action to open URL) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・Put the duration in the order of the vibrator pattern array (off, on, off, on, ...) (unit: ms [millisecond = 1/1000 seconds])) / null = none - /// - /// - /// Android の Notification(通知)を使用する(タップでデフォルトのブラウザでURLを開く) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・ShowNotificationToActionURI() のショートカット。 - /// - /// Title string - /// Message string - /// URL to open in browser - /// Identification tag (The same tag is overwritten when notified consecutively) - /// Add notification time display - /// Array of duration pattern / null = none - public static void ShowNotificationToOpenURL(string title, string message, string url, string tag, - bool showTimestamp, long[] vibratorPattern) - { - if (string.IsNullOrEmpty(url)) - return; - - ShowNotificationToActionURI(title, message, "app_icon", tag, "android.intent.action.VIEW", url, - showTimestamp, vibratorPattern); - } - - - //(*) OneShot (one time only) vibrator overload - //※OneShot(1回のみ)のバイブレーターオーバーロード - /// - /// Call Android Notification (Tap to take action to open URL) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - /// - /// - /// Android の Notification(通知)を使用する(タップでデフォルトのブラウザでURLを開く) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・ShowNotificationToActionURI() のショートカット。 - /// - /// Title string - /// Message string - /// URL to open in browser - /// Identification tag (The same tag is overwritten when notified consecutively) - /// Add notification time display - /// Duration of vibration - public static void ShowNotificationToOpenURL(string title, string message, string url, string tag, - bool showTimestamp, long vibratorDuration) - { - if (string.IsNullOrEmpty(url)) - return; - - long[] pattern = vibratorDuration > 0 ? new long[] { 0, vibratorDuration } : null; - ShowNotificationToActionURI(title, message, "app_icon", tag, "android.intent.action.VIEW", url, - showTimestamp, pattern); - } - - - //(*) No vibrator overload - //※バイブレーター無しオーバーロード - /// - /// Call Android Notification (Tap to take action to open URL) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - /// - /// - /// Android の Notification(通知)を使用する(タップでデフォルトのブラウザでURLを開く) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_NotificationToOpenURL - ///・ShowNotificationToActionURI() のショートカット。 - /// - /// Title string - /// Message string - /// URL to open in browser - /// Identification tag (The same tag is overwritten when notified consecutively) - /// Add notification time display - public static void ShowNotificationToOpenURL(string title, string message, string url, string tag = "tag", - bool showTimestamp = true) - { - ShowNotificationToActionURI(title, message, "app_icon", tag, "android.intent.action.VIEW", url, - showTimestamp, null); - } - - - - - //========================================================== - // Vibrator - //(*) In API 26 (Android 8.0), this function is deprecated, so some devices may not be available. - //(*) The following permission is necessary to use. - // '' in 'AndroidManifest.xml' - // - // - // バイブレーター - //※API 26 (Android 8.0) では、この機能は deprecated(廃止予定)となっているため、端末によっては使えないものがあるかもしれません。 - //※利用するには以下のパーミッションが必要。 - // '' in 'AndroidManifest.xml' - //========================================================== - - //(*) Required: '' in 'AndroidManifest.xml' - /// - /// Whether the devices supports a vibrator? - ///(*) It has nothing to do with permissions. - /// - /// - /// 端末がバイブレーターをサポートしているか否か? - ///※パーミッションとは関係ありません。 - /// - /// true = supported - public static bool IsSupportedVibrator() - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "hasVibrator", - context - ); - } - } - } - } - - - //(*) Required: '' in 'AndroidManifest.xml' - /// - /// Vibrate the vibrator with a pattern. - ///・Put the duration in the order of the vibrator pattern array (off, on, off, on, ...) (unit: ms [millisecond = 1/1000 seconds])) / null = none - /// - /// - /// バイブレーターをパターンで振動させる。 - ///・振動パターンは長さ(単位:ms[ミリセカンド=1/1000秒])で、off, on, off, on,... の順に配列に入れる。 - /// - /// Array of duration pattern / null = none - /// true = do loop - public static void StartVibrator(long[] pattern, bool isLoop = false) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "startVibrator", - context, - pattern, - isLoop - ); - } - } - } - } - - - //(*) Required: '' in 'AndroidManifest.xml' - /// - /// Vibrate the vibrator only once. - /// - /// バイブレーターを1度だけ振動させる。 - /// - /// Duration of vibration (ms [millisecond = 1/1000 seconds]) - public static void StartVibrator(long duration) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "startVibrator", - context, - duration - ); - } - } - } - } - - - //(*) Required: '' in 'AndroidManifest.xml' - /// - /// Interrupt vibration of the vibrator - /// - /// バイブレーターの振動を中断させる - /// - public static void CancelVibrator() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "cancelVibrator" - ); - } - } - - - - - - //========================================================== - // Start something action that does not return result value - // 投げっぱなしのアクションなどの起動 - //========================================================== - - //(*) No argument overload - //※引数無しオーバーロード - /// - /// Start something Action (no return value) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// - /// アクティビティからのアクション起動(戻値はなし) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// Starting of Action (e.g. "android.settings.SETTINGS") - public static void StartAction(string action) - { - StartAction(action, "", ""); - } - - - /// - /// Start something Action (no return value) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// - /// アクティビティからのアクション起動(戻値はなし) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// Starting of Action (e.g. "android.intent.action.WEB_SEARCH") - /// Parameter name to give to the Action (e.g. "query") - /// Value to give to the Action - public static void StartAction(string action, string extra, string query) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startAction", - context, - action, - extra, - query - ); - })); - } - - - //(*) multiple parameter overload - //※複数パラメタオーバーロード - /// - /// Start something Action - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// - /// アクティビティからのアクション起動(戻値はなし) - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// Starting of Action (e.g. "android.intent.action.WEB_SEARCH") - /// Parameter name to give to the Action (e.g. "query") - /// Value to give to the Action - public static void StartAction(string action, string[] extra, string[] query) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startAction", - context, - action, - extra, - query - ); - })); - } - - - //(*) add MIME Type overload - //※MIME Type 追加オーバーロード - /// - /// Start something Action (no return value) - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// - /// アクティビティからのアクション起動(戻値はなし) - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// Starting of Action (e.g. "android.intent.action.SEND") - /// Parameter name to give to the Action (e.g. "android.intent.extra.TEXT") - /// Value to give to the Action - /// MIME Type (e.g. "text/plain") - public static void StartAction(string action, string extra, string query, string mimetype) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startAction", - context, - action, - extra, - query, - mimetype - ); - })); - } - - - //(*) add MIME Type overload - //※MIME Type 追加オーバーロード - /// - /// Start something Action (no return value) - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// - /// アクティビティからのアクション起動(戻値はなし) - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// Starting of Action (e.g. "android.intent.action.SEND") - /// Parameter name to give to the Action (e.g. "android.intent.extra.TEXT") - /// Value to give to the Action - /// MIME Type (e.g. "text/plain") - public static void StartAction(string action, string[] extra, string[] query, string mimetype) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startAction", - context, - action, - extra, - query, - mimetype - ); - })); - } - - - - /// - /// Start action with Chooser (application selection widget) - /// - /// Chooser(アプリ選択ウィジェット)でアクション起動する - /// - /// String of Action (e.g. "android.intent.action.SEND") - /// Parameter name to give to the Action (e.g. "android.intent.extra.TEXT") - /// Value to give to the Action - /// MIME Type (e.g. "text/plain") - /// Title to display in Chooser (Empty -> "Select an application") - public static void StartActionWithChooser(string action, string extra, string query, string mimetype, string title) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionWithChooser", - context, - action, - extra, - query, - mimetype, - title - ); - })); - } - - - //(*) multiple parameter overload - //※複数パラメタオーバーロード - /// - /// Start action with Chooser (application selection widget) - /// - /// Chooser(アプリ選択ウィジェット)でアクション起動する - /// - /// String of Action (e.g. "android.intent.action.SEND") - /// Parameter name to give to the Action (e.g. "android.intent.extra.TEXT") - /// Value to give to the Action - /// MIME Type (e.g. "text/plain") - /// Title to display in Chooser (Empty -> "Select an application") - public static void StartActionWithChooser(string action, string[] extra, string[] query, string mimetype, string title) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionWithChooser", - context, - action, - extra, - query, - mimetype, - title - ); - })); - } - - - - /// - /// Start Action to URI (no return value) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// - /// アクティビティからのURIへのアクション起動(戻値はなし) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// - /// (ex) - /// StartActionURI("android.intent.action.VIEW", "geo:37.7749,-122.4194?q=restaurants"); //Google Map (Search word: restaurants) - /// StartActionURI("android.intent.action.VIEW", "google.streetview:cbll=29.9774614,31.1329645&cbp=0,30,0,0,-15"); //Street View - /// StartActionURI("android.intent.action.SENDTO", "mailto:xxx@example.com"); //Launch mailer - /// https://developers.google.com/maps/documentation/android-api/intents - /// - /// String of Action (e.g. "android.intent.action.VIEW") - /// URI to action (URL etc.) - public static void StartActionURI(string action, string uri) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionURI", - context, - action, - uri - ); - })); - } - - - //(*) multiple parameter overload - //※複数パラメタオーバーロード - /// - /// Start Action to URI - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// - /// - /// アクティビティからのURIへのアクション起動(戻値はなし) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// - /// String of Action (e.g. "android.intent.action.VIEW") - /// URI to action (URL etc.) - /// Parameter name to give to the Action (e.g. "android.intent.extra.TEXT") - /// Value to give to the Action - public static void StartActionURI(string action, string uri, string[] extra, string[] query) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionURI", - context, - action, - uri, - extra, - query - ); - })); - } - - - - /// - /// Start Action to URI with MIME type (no return value) - ///・(Action: Constant Value) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// - /// アクティビティから URI に MIME type 指定付きのアクション起動(戻値はなし) - ///・アクションは以下を参照(Constant Value を使う) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// - /// String of Action (e.g. "android.intent.action.VIEW") - /// URI to action (URL etc.) - /// MIME type ("application/pdf" etc.) - public static void StartActionURI(string action, string uri, string mimeType) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionURI", - context, - action, - uri, - mimeType - ); - })); - } - - - - //========================================================== - // Below, shortcut method of action - // 以下、アクションのショートカット的なメソッド - //========================================================== - - /// - /// Open URL (Launch Browser) - ///・The browser application differs depending on the setting of the system. - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・Same as StartActionURI("android.intent.action.VIEW", "URL") - /// - /// - /// URLを開く(起動アプリは端末の設定による) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・StartActionURI("android.intent.action.VIEW", "開くURL") と同じ。 - /// - /// URL to open in browser - public static void StartOpenURL(string url) - { - StartActionURI("android.intent.action.VIEW", url); - } - - - /// - /// Start Web Search - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・The search application differs depending on the setting of the system. - ///・Same as StartAction("android.intent.action.WEB_SEARCH", "query", "keyword") - /// - /// - /// Web Search の起動。端末の設定によって検索アプリは異なる。 - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_OpenURL - ///・StartAction("android.intent.action.WEB_SEARCH", "query", "検索キーワード") と同じ。 - /// - /// Search keyword - public static void StartWebSearch(string query) - { - StartAction("android.intent.action.WEB_SEARCH", "query", query); - } - - - /// - /// Send text to the corresponding application - ///·Use it for sharing text (Twitter etc.). - /// - /// 対応アプリにテキストを送信する - ///・テキストのシェア(Twitter など)に利用する。 - /// - /// Text to send - public static void StartActionSendText(string text) - { - StartAction("android.intent.action.SEND", "android.intent.extra.TEXT", text, "text/plain"); - } - - - /// - /// Use Chooser (application selection widget) to send text to other applications. - ///·Use it for sharing text (Twitter etc.). - /// - /// Chooser(アプリ選択ウィジェット)を使ってテキストを他のアプリに送信する - ///・テキストのシェア(Twitter など)に利用する。 - /// - /// Text to send - /// Chooser に表示するタイトル(省略="Select an application") - public static void StartActionSendText(string text, string chooserTitle) - { - StartActionWithChooser("android.intent.action.SEND", "android.intent.extra.TEXT", text, "text/plain", chooserTitle); - } - - - /// - /// Send text with attachment file to the corresponding application - ///·Use it for sharing text (Twitter etc.). - /// - /// 対応アプリにテキストと添付ファイルを送信する - ///・テキストのシェア(Twitter など)に利用する。 - /// - /// Text to send - /// URI of attachment ("content://~") - public static void StartActionSendTextWithAttachment(string text, string attachmentURI) - { - StartAction("android.intent.action.SEND", - new string[] { "android.intent.extra.TEXT", "android.intent.extra.STREAM" }, - new string[] { text, attachmentURI }, - "text/plain"); - } - - - /// - /// Use Chooser (application selection widget) to send text with attachment file to other applications. - ///·Use it for sharing text (Twitter etc.). - /// - /// Chooser(アプリ選択ウィジェット)を使ってテキストに添付ファイルを付けて他のアプリに送信する - ///・テキストのシェア(Twitter など)に利用する。 - /// - /// Text to send - /// Display text of Chooser title (empty="Select an application") - /// URI of attachment ("content://~") - public static void StartActionSendTextWithAttachment(string text, string chooserTitle, string attachmentURI) - { - StartActionWithChooser("android.intent.action.SEND", - new string[] { "android.intent.extra.TEXT", "android.intent.extra.STREAM" }, - new string[] { text, attachmentURI }, - "text/plain", - chooserTitle); - } - - - /// - /// Send text only email - /// - /// テキストのみのメール送信 - /// - /// Mail address - /// Mail subject - /// Mail body (message text) - public static void StartActionSendMail(string mail, string subject, string body) - { - string[] extra = { "android.intent.extra.SUBJECT", "android.intent.extra.TEXT" }; - string[] query = { subject, body }; - StartActionURI("android.intent.action.SENDTO", "mailto:" + mail, extra, query); - } - - - - /// - /// Display specified applications on Google Play - /// (*) Google Play must be installed. - /// - /// Google Play で指定アプリケーションを表示する - /// ※Google Play がインストールされている必要がある。 - /// - /// Package name (Application ID) - public static void ShowMarketDetails(string packageName) - { - string uri = "market://details?id=" + packageName; - StartActionURI("android.intent.action.VIEW", uri); - } - - - /// - /// Search keywords on Google Play - /// (*) Google Play must be installed. - /// - /// Google Play でキーワード検索をする - /// ※Google Play がインストールされている必要がある。 - /// - /// Search keywords - public static void StartMarketSearch(string keyword) - { - string uri = "market://search?q=" + keyword; - StartActionURI("android.intent.action.VIEW", uri); - } - - - - - //========================================================== - // Media Scanner - //·If you save your own files etc, you need to notify the Android system. - // If you can not see the saved file, it may become visible if you register the path to Media Scanner. - // - //・ファイルなどを独自に保存した場合は、Android システムに通知する必要があります。 - // 保存したファイルが見えないときは、Media Scanner にパスを登録すると、見えるようになることがあります。 - //========================================================== - - /// - /// Scan (recognize) files with MediaScanner (single file) - ///·The scanned path name and URI are returned in the callback. - /// - /// MediaScanner でファイルをスキャン(認識)させる(単一ファイル) - ///・コールバックにはスキャン完了したパス名やURIが返る。 - /// - /// Scan target path (absolute path) - /// GameObject name in hierarchy to callback - /// Method name to call back completion - /// return value in: true=JSON format / false=path - public static void StartMediaScanner(string path, string callbackGameObject, string completeCallbackMethod, bool resultIsJson = false) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionMediaScanner", - context, - path, - callbackGameObject, - completeCallbackMethod, - resultIsJson - ); - })); - } - - - //(*) No callback overload - //※コールバック無しオーバーロード - /// - /// Scan (recognize) files with MediaScanner (single file) - /// - /// MediaScanner でファイルをスキャン(認識)させる(単一ファイル) - /// - /// Scan target path (absolute path) - public static void StartMediaScanner(string path) - { - StartMediaScanner(path, "", "", false); - } - - - /// - /// Scan (recognize) files with MediaScanner (multiple file) - ///·Completion callback is sent each path. - /// - /// MediaScanner でファイルをスキャン(認識)させる(複数ファイル) - ///・完了コールバックはパスごとに送られる。 - /// - /// Array of scan target path (absolute path) - /// GameObject name in hierarchy to callback - /// Method name to call back completion - /// return value in: true=JSON format / false=path - public static void StartMediaScanner(string[] paths, string callbackGameObject, string completeCallbackMethod, bool resultIsJson = false) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startActionMediaScanner", - context, - paths, - callbackGameObject, - completeCallbackMethod, - resultIsJson - ); - })); - } - - - //(*) No callback overload - //※コールバック無しオーバーロード - /// - /// Scan (recognize) files with MediaScanner (multiple file) - /// - /// MediaScanner でファイルをスキャン(認識)させる(複数ファイル) - /// - /// Array of scan target path (absolute path) - public static void StartMediaScanner(string[] paths) - { - StartMediaScanner(paths, "", "", false); - } - - - - /// - /// Get the URI ("content://~") of the image file - ///・Generally it is possible to acquire only shared files. It can not be acquired depending on security protection, directory location, etc. - ///·If it was able to acquire, it is a form of "content://~". When it fails, it becomes empty character (""). - /// - /// 画像ファイルの URI ("content://~") を取得する - ///・一般的には共有されているファイルのみ取得できる。セキュリティ保護やディレクトリ位置などによっては取得できない。 - ///・取得できた場合は "content://~" の形式。失敗したときは空文字("")になる。 - /// - /// Absolute path - /// success = "content://~" / failure = "" - public static string GetImageURI(string path) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getImageContentURI", - context, - path - ); - } - } - } - } - - - - - //========================================================== - // Call system settings etc. - //========================================================== - - /// - /// Open Wifi system settings screen - ///·Callbacks can basically be regarded as 'CLOSED_WIFI_SETTINGS' (closed) only (on / off will not be returned). - ///(*) Required "AndroidManifest-FullPlugin~.xml" renamed "AndroidManifest.xml". - ///(*) If callback is unnecessary, it can also be opened by 'StartAction("android.settings.WIFI_IP_SETTINGS")'. - /// In that case, you do not need a plug-in override "AndroidManifest.xml". - /// - /// Wifi のシステム設定画面を開く - ///・コールバックは基本的に "CLOSED_WIFI_SETTINGS"(閉じられた)のみと考えて良い(オン/オフは返らない)。 - ///※「AndroidManifest-FullPlugin~.xml」をリネームした「AndroidManifest.xml」が必要。 - ///※コールバックが不要な場合、StartAction("android.settings.WIFI_IP_SETTINGS") でも開くことができます。 - /// その場合、プラグインオーバーライドした「AndroidManifest.xml」は必要ありません。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback the result - public static void OpenWifiSettings(string callbackGameObject, string resultCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openWifiSettings", - context, - callbackGameObject, - resultCallbackMethod - ); - })); - } - - - //(*) No callback overload - //※コールバック無しオーバーロード - /// - /// Open Wifi system settings screen (No callback overload) - /// - /// Wifi のシステム設定画面を開く(コールバック無しオーバーロード) - /// - public static void OpenWifiSettings() - { - OpenWifiSettings("", ""); - } - - - - //(*) Permission Denial -> Required: '' in 'AndroidManifest.xml' - /// - /// Start Bluetooth connection check and request - ///·When current is on -> "SUCCESS_BLUETOOTH_ENABLE" is returned in the callback. - ///·When current is off -> A connection request dialog appears - /// -> "Yes" returns "SUCCESS_BLUETOOTH_ENABLE" for callback, "CANCEL_BLUETOOTH_ENABLE" on "No". - ///·If "ERROR_BLUETOOTH_ADAPTER_NOT_AVAILABLE" returns in the callback, it can not be used in the system. - ///(*) 'BLUETOOTH' permission is necessary for 'AndroidManifest.xml' (If it does not exist, "Permission Denial" appears in the callback). - /// - /// - /// Bluetooth の接続確認&要求を実行する - ///・元がオンのとき → コールバックに "SUCCESS_BLUETOOTH_ENABLE" が返る。 - ///・元がオフのとき → 接続要求のダイアログが出る - /// → 「はい」でコールバックに "SUCCESS_BLUETOOTH_ENABLE", 「いいえ」で "CANCEL_BLUETOOTH_ENABLE" が返る。 - ///・コールバックに "ERROR_BLUETOOTH_ADAPTER_NOT_AVAILABLE" が出たら、システムで利用できない。 - ///※'AndroidManifest.xml' に "BLUETOOTH" パーミッションが必要(無い場合、コールバックに "Permission Denial" が出る)。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback the result - public static void StartBluetoothRequestEnable(string callbackGameObject, string resultCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startBluetoothRequestEnable", - context, - callbackGameObject, - resultCallbackMethod - ); - })); - } - - - //(*) Required: '' in 'AndroidManifest.xml' - //(*) No callback overload - //※コールバック無しオーバーロード - /// - /// Start Bluetooth connection check and request (No callback overload) - ///·When current is on -> Do nothing. - ///·When current is off -> A connection request dialog appears -> "Yes" turns on. - ///(*) 'BLUETOOTH' permission is necessary for 'AndroidManifest.xml' (If it does not exist, "Permission Denial" appears in the callback). - /// - /// - /// Bluetooth の接続確認&要求を実行する(コールバック無しオーバーロード) - ///・元がオンのとき → 何もしない。 - ///・元がオフのとき → 接続要求のダイアログが出る → 「はい」でオンになる。 - ///※'AndroidManifest.xml' に "BLUETOOTH" パーミッションが必要。 - /// - public static void StartBluetoothRequestEnable() - { - StartBluetoothRequestEnable("", ""); - } - - - - //========================================================== - // Open system default application, use etc. - // システムデフォルトのアプリを開く・利用など - //========================================================== - - //========================================================== - //(*) API 19 (Android4.4) or higher is recommended - //(*) When using External Storage, the following permission is required (unnecessary when "WRITE_EXTERNAL_STORAGE" exists). - // '' in 'AndroidManifest.xml' - // - //※API 19(Android 4.4)以上推奨。 - //※External Storage を利用するときには、以下のパーミッションが必要です("WRITE_EXTERNAL_STORAGE" がある場合は不要)。 - // '' in 'AndroidManifest.xml' - //========================================================== - /// - /// Open the gallery and get the path - ///(*) API 19 (Android 4.4) or higher is recommended. Because paths that can be get by API Level are different, paths are not always returned. - ///(*) The URI returned by the application you use is different, so be careful as the information you can get is different. - /// (The format like "content://media/external/images/media/(ID)" is the best (Standard application), in the case of application specific URI, information may be restricted) - ///·When it succeeds, a string is returned in JSON format as '{"path":"(path)","width":(width),"height":(height)}' (It can be convert with JsonUtility). - /// Note that the size (width, height) and other information may not be possible to acquire it depending on the storage state and using application (it becomes 0). - ///·If it fails, the following error message is returned. - /// ERROR_GALLERY_GET_PATH_FAILURE : Path get failed - /// CANCEL_GALLERY : Closed without selection - /// - /// - /// ギャラリーを開いてパスを取得する - ///※API 19(Android 4.4)以上推奨。API Level で取得できるパスが異なるため、必ずしもパスが返ってくるとは限らない。 - ///※利用するアプリによって返される URI は異なり、取得できる情報が違うので注意 - ///("content://media/external/images/media/(ID)" のような書式が一番良い(標準アプリ)。アプリ特有の URI の場合、情報が制限される可能性あり)。 - ///・成功したときは JSON形式で '{"path":"(パス)","width":(幅),"height":(高さ)}' のように文字列が返る(JsonUtility で取得できる)。 - /// サイズ(width, height)、その他の情報は保存状態・取得アプリによっては取得できない可能性があるので注意(0 になる)。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// ERROR_GALLERY_GET_PATH_FAILURE:パスの取得に失敗 - /// CANCEL_GALLERY:選択せずにギャラリーが閉じられた - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(パス)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenGallery(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openGallery", - context, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher is recommended - //(*) When using External Storage, the following permission is required (unnecessary when "WRITE_EXTERNAL_STORAGE" exists). - // '' in 'AndroidManifest.xml' - // - //※API 19(Android 4.4)以上推奨。 - //※External Storage を利用するときには、以下のパーミッションが必要です("WRITE_EXTERNAL_STORAGE" がある場合は不要)。 - // '' in 'AndroidManifest.xml' - //========================================================== - /// - /// Open the gallery and get the path for video - ///(*) API 19 (Android 4.4) or higher is recommended. Because paths that can be get by API Level are different, paths are not always returned. - ///(*) The URI returned by the application you use is different, so be careful as the information you can get is different. - /// (The format like "content://media/external/video/media/(ID)" is the best (Standard application), in the case of application specific URI, information may be restricted) - ///·When it succeeds, a string is returned in JSON format as '{"path":"(path)","width":(width),"height":(height)}' (It can be convert with JsonUtility). - /// Note that the size (width, height) and other information may not be possible to acquire it depending on the storage state and using application (it becomes 0). - ///·If it fails, the following error message is returned. - /// ERROR_GALLERY_GET_PATH_FAILURE : Path get failed - /// CANCEL_GALLERY : Closed without selection - /// - /// - /// ギャラリーを開いて動画のパスを取得する - ///※API 19(Android 4.4)以上推奨。API Level で取得できるパスが異なるため、必ずしもパスが返ってくるとは限らない。 - ///※利用するアプリによって返される URI は異なり、取得できる情報が違うので注意 - ///("content://media/external/video/media/(ID)" のような書式が一番良い(標準アプリ)。アプリ特有の URI の場合、情報が制限される可能性あり)。 - ///・成功したときは JSON形式で '{"path":"(パス)","width":(幅),"height":(高さ)}' のように文字列が返る(JsonUtility で取得できる)。 - /// サイズ(width, height)、その他の情報は保存状態・取得アプリによっては取得できない可能性があるので注意(0 になる)。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// ERROR_GALLERY_GET_PATH_FAILURE:パスの取得に失敗 - /// CANCEL_GALLERY:選択せずにギャラリーが閉じられた - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(パス)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenGalleryVideo(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openGalleryVideo", - context, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - - - //========================================================== - // Using the storage access framework - //(*) API 19 (Android4.4) or higher - // https://developer.android.com/guide/topics/providers/document-provider.html - //·MIME Type may not work depending on the provider (storage). - //(*) Note that the information that can be obtained by the provider (storage) is different. - //·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - // - // ストレージアクセス機能を利用する - //※API 19 (Android4.4) 以上 - // https://developer.android.com/guide/topics/providers/document-provider.html - //・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - //※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - //・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - //========================================================== - - //Default charset encoding - //デフォルトの文字エンコード - const string DEFAULT_ENCODING = "UTF-8"; - const string DEFAULT_TEXT_MIME_TYPE = "text/plain"; - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //========================================================== - /// - /// Select and load a text file with the storage access framework. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, the text read in 'resultCallbackMethod' is returned. - ///·If it fails, the following error message is returned. - /// CANCEL_LOAD_TEXT : Closed without selection - /// UnsupportedEncodingException : Unsupported character encoding - ///·MIME Type may not work depending on the provider (storage). - /// - /// - /// ストレージアクセス機能でテキストファイルを選択し、ロードする。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」に読み込んだテキストが返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_LOAD_TEXT:選択せずに閉じられた - /// UnsupportedEncodingException:サポートされてない文字エンコード - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - /// - /// 文字エンコード("UTF-8", "Shift_JIS", "EUC-JP", "JIS" など) - /// MIME Type ("text/plain", "text/csv" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(読み込んだテキスト)をコールバックするメソッド名 - /// エラー(キャンセル)をコールバックするメソッド名 - public static void OpenStorageAndLoadText(string encoding, string[] mimeTypes, - string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openDocumentAndLoadText", - context, - encoding, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //※MIME type = "text/plain" オーバーロード - //========================================================== - /// - /// Select and load a text file with the storage access framework. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, the text read in 'resultCallbackMethod' is returned. - ///·If it fails, the following error message is returned. - /// CANCEL_LOAD_TEXT : Closed without selection - /// UnsupportedEncodingException : Unsupported character encoding - /// - /// - /// ストレージアクセス機能でテキストファイルを選択し、ロードする。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」に読み込んだテキストが返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_LOAD_TEXT:選択せずに閉じられた - /// UnsupportedEncodingException:サポートされてない文字エンコード - /// - /// 文字エンコード("UTF-8", "Shift_JIS", "EUC-JP", "JIS" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(読み込んだテキスト)をコールバックするメソッド名 - /// エラー(キャンセル)をコールバックするメソッド名 - public static void OpenStorageAndLoadText(string encoding, - string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageAndLoadText(encoding, new string[] { DEFAULT_TEXT_MIME_TYPE }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) UTF-8 encoding overload - //※API 19 (Android 4.4) 以上のみ。 - //※UTF-8 エンコード オーバーロード - //========================================================== - /// - /// Select and load a text file with the storage access framework (Character encoding : UTF-8). - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, the text read in 'resultCallbackMethod' is returned. - ///·If it fails, the following error message is returned. - /// CANCEL_LOAD_TEXT : Closed without selection - /// UnsupportedEncodingException : Unsupported character encoding - /// - /// - /// ストレージアクセス機能でテキストファイルを選択し、ロードする(文字エンコード:UTF-8)。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」に読み込んだテキストが返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_LOAD_TEXT:選択せずに閉じられた - /// UnsupportedEncodingException:サポートされてない文字エンコード - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(読み込んだテキスト)をコールバックするメソッド名 - /// エラー(キャンセル)をコールバックするメソッド名 - public static void OpenStorageAndLoadText(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageAndLoadText(DEFAULT_ENCODING, new string[] { DEFAULT_TEXT_MIME_TYPE }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //========================================================== - /// - /// Select the directory in the storage access framework and save it. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, the file name saved in 'resultCallbackMethod' is returned. - ///·If it fails, the following error message is returned. - /// CANCEL_SAVE_TEXT : Closed without selection - /// UnsupportedEncodingException : Unsupported character encoding - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED : Write access denied (Android system specifications). - ///·MIME Type may not work depending on the provider (storage). - /// - /// - /// ストレージアクセス機能でディレクトリを指定し、保存する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」に保存したファイル名が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_SAVE_TEXT:選択せずに閉じられた - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED:書き込みアクセスが拒否された(Android システムの仕様)。 - /// UnsupportedEncodingException:サポートされてない文字エンコード - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - /// - /// デフォルトのファイル名("NewDocument.txt" など。ディレクトリ名は含まない) - /// 保存するテキスト - /// 文字エンコード("UTF-8", "Shift_JIS", "EUC-JP", "JIS" など) - /// MIME Type ("text/plain", "text/csv" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageAndSaveText(string fileName, string text, string encoding, string[] mimeTypes, - string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "createDocumentAndSaveText", - context, - fileName, - text, - encoding, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //※MIME type = "text/plain" オーバーロード - //========================================================== - /// - /// Select the directory in the storage access framework and save it. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, the file name saved in 'resultCallbackMethod' is returned. - ///·If it fails, the following error message is returned. - /// CANCEL_SAVE_TEXT : Closed without selection - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED : Write access denied (Android system specifications). - /// UnsupportedEncodingException : Unsupported character encoding - /// - /// - /// ストレージアクセス機能でディレクトリを指定し、保存する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」に保存したファイル名が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_SAVE_TEXT:選択せずに閉じられた - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED:書き込みアクセスが拒否された(Android システムの仕様)。 - /// UnsupportedEncodingException:サポートされてない文字エンコード - /// - /// デフォルトのファイル名("NewDocument.txt" など。ディレクトリ名は含まない) - /// 保存するテキスト - /// 文字エンコード("UTF-8", "Shift_JIS", "EUC-JP", "JIS" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageAndSaveText(string fileName, string text, string encoding, - string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageAndSaveText(fileName, text, encoding, new string[] { DEFAULT_TEXT_MIME_TYPE }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) UTF-8 encoding overload - //※API 19 (Android 4.4) 以上のみ。 - //※UTF-8 エンコード オーバーロード - //========================================================== - /// - /// Select the directory in the storage access framework and save it (Character encoding : UTF-8). - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, the file name saved in 'resultCallbackMethod' is returned. - ///·If it fails, the following error message is returned. - /// CANCEL_SAVE_TEXT : Closed without selection - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED : Write access denied (Android system specifications). - /// UnsupportedEncodingException : Unsupported character encoding - /// - /// - /// ストレージアクセス機能でディレクトリを指定し、保存する(文字エンコード:UTF-8)。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」に保存したファイル名が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_SAVE_TEXT:選択せずに閉じられた - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED:書き込みアクセスが拒否された(Android システムの仕様)。 - /// UnsupportedEncodingException:サポートされてない文字エンコード - /// - /// デフォルトのファイル名("NewDocument.txt" など。ディレクトリ名は含まない) - /// 保存するテキスト - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageAndSaveText(string fileName, string text, - string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageAndSaveText(fileName, text, DEFAULT_ENCODING, new string[] { DEFAULT_TEXT_MIME_TYPE }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //========================================================== - /// - /// Select a file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///·MIME Type may not work depending on the provider (storage). - /// - /// - /// ストレージアクセス機能でファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - /// - /// MIME Type ("*/*", "text/csv" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - /// true = 戻り値をJSON形式(~Info に対応)にする/ false = パスのみ - public static void OpenStorageFile(string[] mimeTypes, string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod, bool resultIsJson = false) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openDocument", - context, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod, - resultIsJson - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) All image types overload - //※API 19 (Android 4.4) 以上のみ。 - //※すべての画像タイプオーバーロード - //========================================================== - /// - /// Select a file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - /// - /// - /// ストレージアクセス機能でファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - /// true = 戻り値をJSON形式(~Info に対応)にする/ false = パスのみ - public static void OpenStorageFile(string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod, bool resultIsJson = false) - { - OpenStorageFile(new string[] { AndroidMimeType.File.All }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod, resultIsJson); - } - - - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //========================================================== - /// - /// Select a image file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///·MIME Type may not work depending on the provider (storage). - ///(*) Note that the information that can be obtained by the provider (storage) is different. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - /// - /// - /// ストレージアクセス機能で画像ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - ///※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - /// - /// MIME Type ("image/*", "image/png" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageImage(string[] mimeTypes, string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openDocumentImage", - context, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) All image types overload - //※API 19 (Android 4.4) 以上のみ。 - //※すべての画像タイプオーバーロード - //========================================================== - /// - /// Select a image file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///(*) Note that the information that can be obtained by the provider (storage) is different. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - /// - /// - /// ストレージアクセス機能で画像ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageImage(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageImage(new string[] { AndroidMimeType.Image.All }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //========================================================== - /// - /// Select a audio file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///·MIME Type may not work depending on the provider (storage). - ///(*) Note that the information that can be obtained by the provider (storage) is different. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - /// - /// - /// ストレージアクセス機能で音声ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - ///※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - /// - /// MIME Type ("audio/*", "audio/mpeg" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageAudio(string[] mimeTypes, string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openDocumentAudio", - context, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) All audio types overload - //※API 19 (Android 4.4) 以上のみ。 - //※すべての音声タイプオーバーロード - //========================================================== - /// - /// Select a audio file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///(*) Note that the information that can be obtained by the provider (storage) is different. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - /// - /// - /// ストレージアクセス機能で音声ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageAudio(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageAudio(new string[] { AndroidMimeType.Audio.All }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //※API 19 (Android 4.4) 以上のみ。 - //========================================================== - /// - /// Select a video file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///·MIME Type may not work depending on the provider (storage). - ///(*) Note that the information that can be obtained by the provider (storage) is different. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - /// - /// - /// ストレージアクセス機能で動画ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - ///※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - /// - /// MIME Type ("video/*", "video/mp4" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageVideo(string[] mimeTypes, string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openDocumentVideo", - context, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod - ); - })); - } - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) All video types overload - //※API 19 (Android 4.4) 以上のみ。 - //※すべての動画タイプオーバーロード - //========================================================== - /// - /// Select a video file with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - ///(*) Note that the information that can be obtained by the provider (storage) is different. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - /// - /// - /// ストレージアクセス機能で動画ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - ///※プロバイダ(ストレージ)によって取得できる情報は異なるので注意。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - public static void OpenStorageVideo(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod) - { - OpenStorageVideo(new string[] { AndroidMimeType.Video.All }, - callbackGameObject, resultCallbackMethod, errorCallbackMethod); - } - - - - - //========================================================== - //(*) API 19 (Android4.4) or higher - //(*) Only the local storage can be saved directly from Unity. - // To save the text file on the SD card, use 'OpenStorageAndSaveText()'. - // - //※API 19 (Android 4.4) 以上のみ。 - //※Unity から直接保存できるのはローカルストレージのみになります。 - // SDカードにテキストファイルを保存するには OpenStorageAndSaveText() を使って下さい。 - //========================================================== - /// - /// Select a file for save with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·Basically from Unity you can save directly to Local storage only (security reason, external storage write is limited). - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_CREATE_DOCUMENT : Closed without selection - /// ERROR_CREATE_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED : Write access denied (Android system specifications). - ///·MIME Type may not work depending on the provider (storage). - /// - /// - /// ストレージアクセス機能で保存先ファイルを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・基本的に Unity からはローカルストレージにのみ直接保存できる(セキュリティ上、外部ストレージ書き込みは制限される)。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_CREATE_DOCUMENT:選択せずに閉じられた - /// ERROR_CREATE_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗 - /// ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED:書き込みアクセスが拒否された(Android システムの仕様)。 - ///・MIME Type はプロバイダ(ストレージ)によって効かない場合がある。 - /// - /// デフォルトのファイル名("NewDocument.txt" など。ディレクトリ名は含まない) - /// MIME Type ("text/plain", "text/csv" など) - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - /// true = 戻り値をJSON形式(~Info に対応)にする/ false = パスのみ - public static void OpenStorageForSave(string fileName, string[] mimeTypes, string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod, bool resultIsJson = false) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "createDocument", - context, - fileName, - mimeTypes, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod, - resultIsJson - ); - })); - } - - - - - //========================================================== - //(*) API 21 (Android 5.0) or higher - //※API 21 (Android 5.0) 以上のみ。 - //========================================================== - /// - /// Select a folder with the storage access framework and acquire information or path. - ///(*) API 19 (Android4.4) or higher - ///·When it succeeds, information is returned to "resultCallbackMethod" in path or JSON format. - ///·If it fails, the following error message is returned. - /// CANCEL_OPEN_DOCUMENT : Closed without selection - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE : Path acquisition failed (when resultIsJson = false) - /// - /// - /// ストレージアクセス機能でフォルダを選択し、パス等の情報を取得する。 - ///※API 19 (Android 4.4) 以上のみ。 - ///・成功したときは「resultCallbackMethod」にパスまたはJSON形式で情報が返る。 - ///・失敗したときは以下のエラーメッセージが返る。 - /// CANCEL_OPEN_DOCUMENT:選択せずに閉じられた - /// ERROR_OPEN_DOCUMENT_GET_PATH_FAILURE:パスの取得に失敗(resultIsJson = false のとき) - /// - /// 結果をコールバックするヒエラルキーの GameObject 名 - /// 結果(保存したファイル名)をコールバックするヒエラルキーのメソッド名 - /// エラー(キャンセル)をコールバックするヒエラルキーのメソッド名 - /// true = 戻り値をJSON形式(~Info に対応)にする/ false = パスのみ - public static void OpenStorageFolder(string callbackGameObject, - string resultCallbackMethod, string errorCallbackMethod, bool resultIsJson = false) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "openDocumentTree", - context, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod, - resultIsJson - ); - })); - } - - - - - - //========================================================== - // Get status of External Storage - //(*) Although it was an SD card before API 19 (Android4.4), it became virtual storage (internal storage) after API 19. - //·before API 19 : "mnt/sdcard/" or "sdcard/" etc. (Depends on model) - //·after API 19 : "/storage/emulated/0" like (Depends on model(?)) - //(*) To write to External Storage, permission is necessary for 'AndroidManifest.xml'. - // - //(*) It can be "READ_EXTERNAL_STORAGE" for reading only. - // - // - // External Storage のステータス取得 - //※API 19(Android4.4)より前は SDカードだったが、API 19 以降は 仮想ストレージ(内部ストレージ)となった。 - //・API 19 より前: "mnt/sdcard/" or "sdcard/" など(端末による) - //・API 19 以降 : "/storage/emulated/0" のようになる(端末による(?)) - //※External Storage に書き込みをするには、「AndroidManifest.xml」にパーミッションが必要。 - // - //※読み取りだけなら "READ_EXTERNAL_STORAGE" でも良い。 - //========================================================== - - /// - /// Returns whether the primary shared/external storage media is emulated. - /// 仮想ストレージが存在するか? - /// - /// true = storage media is emulated - public static bool IsExternalStorageEmulated() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isExternalStorageEmulated" - ); - } - } - - /// - /// Returns whether the primary shared/external storage media is physically removable (like SD card). - /// 外部(仮想)ストレージが物理的に脱着できるか?(SDカードのように) - /// - /// true if the storage device can be removed (such as an SD card), or false if the storage device is built in and cannot be physically removed. - public static bool IsExternalStorageRemovable() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isExternalStorageRemovable" - ); - } - } - - /// - /// Check for External Storage mounted. - /// 外部(仮想)ストレージがマウントされているか否か?(読み書き属性は関係ない) - /// - /// true = mounted - public static bool IsExternalStorageMounted() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isExternalStorageMounted" - ); - } - } - - /// - /// Check for External Storage mounted and readonly. - /// 外部(仮想)ストレージがマウントされていて、読み込みのみ属性か? - /// - /// true = mounted and readonly - public static bool IsExternalStorageMountedReadOnly() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isExternalStorageMountedReadOnly" - ); - } - } - - //(*) To write to External Storage, required '' in 'AndroidManifest.xml' - //※書き込みをするには、'' が必要。 - /// - /// Check for External Storage mounted and read/write. - /// 外部(仮想)ストレージがマウントされていて、読み書き属性か? - /// - /// true = mounted and read/write - public static bool IsExternalStorageMountedReadWrite() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isExternalStorageMountedReadWrite" - ); - } - } - - /// - /// Returns the current state of the primary shared/external storage media. - /// 外部(仮想)ストレージのステータスを取得する - /// https://developer.android.com/reference/android/os/Environment.html#MEDIA_BAD_REMOVAL - /// - /// one of "unknown", "removed", "unmounted", "checking", "nofs", "mounted", "mounted_ro", "shared", "bad_removal", or "unmountable". - public static string GetExternalStorageState() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageState" - ); - } - } - - /// - /// Return the primary shared/external storage directory. - /// 外部(仮想)ストレージディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0" - public static string GetExternalStorageDirectory() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectory" - ); - } - } - - /// - /// Returns the 'Alarms' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Alarms」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Alarms" - public static string GetExternalStorageDirectoryAlarms() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryAlarms" - ); - } - } - - /// - /// Returns the 'DCIM' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「DCIM」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/DCIM" - public static string GetExternalStorageDirectoryDCIM() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryDCIM" - ); - } - } - - //(*) API 19 or higher (Note: before that all empty characters("")) - //※API 19以上(それより前は全て空文字("")になるので注意) - /// - /// Returns the 'Documents' directory of shared/external storage directory. - /// (*) API 19 or higher (Note: before that all empty characters("")) - /// - /// 外部(仮想)ストレージの「Documents」ディレクトリを返す。 - /// ※API 19(Android4.4)以上で利用可(それより前は全て空文字("")) - /// - /// returns directory path like "/storage/emulated/0/Documents" - public static string GetExternalStorageDirectoryDocuments() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryDocuments" - ); - } - } - - /// - /// Returns the 'Downloads' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Downloads」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Downloads" - public static string GetExternalStorageDirectoryDownloads() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryDownloads" - ); - } - } - - /// - /// Returns the 'Movies' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Movies」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Movies" - public static string GetExternalStorageDirectoryMovies() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryMovies" - ); - } - } - - /// - /// Returns the 'Music' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Music」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Music" - public static string GetExternalStorageDirectoryMusic() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryMusic" - ); - } - } - - /// - /// Returns the 'Notifications' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Notifications」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Notifications" - public static string GetExternalStorageDirectoryNotifications() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryNotifications" - ); - } - } - - /// - /// Returns the 'Pictures' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Pictures」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Pictures" - public static string GetExternalStorageDirectoryPictures() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryPictures" - ); - } - } - - /// - /// Returns the 'Podcasts' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Podcasts」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Podcasts" - public static string GetExternalStorageDirectoryPodcasts() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryPodcasts" - ); - } - } - - /// - /// Returns the 'Ringtones' directory of shared/external storage directory. - /// 外部(仮想)ストレージの「Ringtones」ディレクトリを返す。 - /// - /// returns directory path like "/storage/emulated/0/Ringtones" - public static string GetExternalStorageDirectoryRingtones() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getExternalStorageDirectoryRingtones" - ); - } - } - - - - - //========================================================== - // Speech Recognizer - //(*) Required 'uses-permission android:name="android.permission.RECORD_AUDIO' in 'AndroidManifest.xml'. - //(*) When using dialog (Google), rename "AndroidManifest-FullPlugin~.xml" to "AndroidManifest.xml" and use it. - // http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_SpeechRecognizerDialog - // http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_SpeechRecognizerListener - // (Locale string) - //・Format:BCP47 (e.g. "en-US", "ja-JP") [This plug-in can also be "en_US", "ja_JP" (under bar).] - // https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - // (Locale list) - // http://fantom1x.blog130.fc2.com/blog-entry-295.html - // - // - // 音声認識 - //※AndroidManifest.xml に '("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isSupportedSpeechRecognizer", - context - ); - } - } - } - } - - - - //(*) Required: ' - /// Locale string (e.g. "ja", "en", "en_GB" etc.) - /// GameObject name in hierarchy to callback - /// Method name to result callback (it is in GameObject) - /// Message string - public static void ShowSpeechRecognizer(string locale, string callbackGameObject, string resultCallbackMethod, string message) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showSpeechRecognizer", - context, - locale, - callbackGameObject, - resultCallbackMethod, - message - ); - })); - } - - - //(*) System language overload - //※システムの言語オーバーロード - //(*) Required: ' - /// GameObject name in hierarchy to callback - /// Method name to result callback (it is in GameObject) - /// Message string - public static void ShowSpeechRecognizer(string callbackGameObject, string resultCallbackMethod, string message = "") - { - ShowSpeechRecognizer("", callbackGameObject, resultCallbackMethod, message); - } - - - - //(*) Required: ' - /// Locale string (e.g. "ja", "en", "en_GB" etc.) - /// GameObject name in hierarchy to callback - /// Method name to callback when recognition is successful (it is in GameObject) - /// Method name to callback when recognition is failure or error (it is in GameObject) - /// Method name to callback when start waiting for speech recognition (Always "onReadyForSpeech" is returned) (it is in GameObject) - /// Method name to callback when the first voice entered the microphone (Always "onBeginningOfSpeech" is returned) (it is in GameObject) - public static void StartSpeechRecognizer(string locale, - string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod, - string readyCallbackMethod, string beginCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startSpeechRecognizer", - context, - locale, - callbackGameObject, - resultCallbackMethod, - errorCallbackMethod, - readyCallbackMethod, - beginCallbackMethod - ); - })); - } - - - //(*) System language overload - //※システムの言語オーバーロード - //(*) Required: ' - /// GameObject name in hierarchy to callback - /// Method name to callback when recognition is successful (it is in GameObject) - /// Method name to callback when recognition is failure or error (it is in GameObject) - /// Method name to callback when start waiting for speech recognition (Always "onReadyForSpeech" is returned) (it is in GameObject) - /// Method name to callback when the first voice entered the microphone (Always "onBeginningOfSpeech" is returned) (it is in GameObject) - public static void StartSpeechRecognizer(string callbackGameObject, string resultCallbackMethod, string errorCallbackMethod, - string readyCallbackMethod = "", string beginCallbackMethod = "") - { - StartSpeechRecognizer("", callbackGameObject, - resultCallbackMethod, errorCallbackMethod, readyCallbackMethod, beginCallbackMethod); - } - - - //(*) Required: ' - public static void ReleaseSpeechRecognizer() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "releaseSpeechRecognizer" - ); - } - } - - - - - - //========================================================== - // Text To Speech - // http://fantom1x.blog130.fc2.com/blog-entry-275.html - //(*) Reading engine and voice data must be installed on the device in order to use it. - // The following are confirmed operation. - // https://play.google.com/store/apps/details?id=com.google.android.tts - // https://play.google.com/store/apps/details?id=jp.kddilabs.n2tts - // (Locale string) - //・Format:BCP47 (e.g. "en-US", "ja-JP") [This plug-in can also be "en_US", "ja_JP" (under bar).] - // https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - // (Locale list) - // http://fantom1x.blog130.fc2.com/blog-entry-295.html - // - // - // テキスト読み上げ - // http://fantom1x.blog130.fc2.com/blog-entry-275.html - //※この機能を利用するには読み上げエンジンとボイスデータがインストールされている必要があります。 - // 以下は動作確認されています。 - // https://play.google.com/store/apps/details?id=com.google.android.tts - // https://play.google.com/store/apps/details?id=jp.kddilabs.n2tts (Japanese only) - // (言語設定) - //・Format:BCP47 (例: "en-US", "ja-JP") [このプラグインでは "en_US", "ja_JP" (アンダーバー)でも可能] - // https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - // (Locale 一覧) - // http://fantom1x.blog130.fc2.com/blog-entry-295.html - //========================================================== - - - /// - /// Initialize Text To Speech (First time only. It is necessary also when language is changed) - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・When it is available at the first startup, "SUCCESS_INIT" status is returned to the callback method (statusCallbackMethod). - ///・(Error code string) - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// Moreover, the following error occurs: - /// ERROR_LOCALE_NOT_AVAILABLE : There is no voice data corresponding to the system language setting - /// ERROR_INIT : Initialization failed - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER : Event listener registration failed - /// ERROR_UTTERANCEPROGRESS_LISTENER : Some kind of error of event acquisition - /// (Locale string) - ///・Format:BCP47 (e.g. "en-US", "ja-JP") [This plug-in can also be "en_US", "ja_JP" (under bar).] - /// https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - /// (Locale list) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - /// - /// テキスト読み上げを初期化する(起動初回のみ。言語を変更した場合も必要) - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・初回起動時には使用可能なとき、コールバックメソッド(statusCallbackMethod )に "SUCCESS_INIT" ステータスが返ってくる。 - ///・エラーコード(文字列)は以下を参照 - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// また上記とは別に以下のエラーが返ることもある。 - /// ERROR_LOCALE_NOT_AVAILABLE:端末の言語設定に対応した音声データがない。 - /// ERROR_INIT:初期化に失敗(=UNKOWN と同義)。 - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER:イベントリスナー登録に失敗。 - /// ERROR_UTTERANCEPROGRESS_LISTENER:イベント取得の何らかのエラー(=UNKOWN と同義)。 - /// (言語設定) - ///・Format:BCP47 (例: "en-US", "ja-JP") [このプラグインでは "en_US", "ja_JP" (アンダーバー)でも可能] - /// https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - /// (Locale 一覧) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - /// Locale string (e.g. "ja", "en", "en_GB" etc.) - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status (including error) - public static void InitTextToSpeech(string locale, string callbackGameObject, string statusCallbackMethod) - { - //Since the start status is returned only for the first time, it is just called with a dummy (empty character) (like a shortcut) - //起動ステータスは初回のみ返ってくるのでダミー(空文字)で呼び出しているだけ(ショートカットのようなもの) - StartTextToSpeech("", locale, callbackGameObject, statusCallbackMethod, "", "", ""); - } - - - /// - /// Initialize Text To Speech (First time only) - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・When it is available at the first startup, "SUCCESS_INIT" status is returned to the callback method (statusCallbackMethod). - ///・(Error code string) - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// Moreover, the following error occurs: - /// ERROR_LOCALE_NOT_AVAILABLE : There is no voice data corresponding to the system language setting - /// ERROR_INIT : Initialization failed - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER : Event listener registration failed - /// ERROR_UTTERANCEPROGRESS_LISTENER : Some kind of error of event acquisition - /// - /// - /// テキスト読み上げを初期化する(起動初回のみ) - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・初回起動時には使用可能なとき、コールバックメソッド(statusCallbackMethod )に "SUCCESS_INIT" ステータスが返ってくる。 - ///・エラーコード(文字列)は以下を参照 - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// また上記とは別に以下のエラーが返ることもある。 - /// ERROR_LOCALE_NOT_AVAILABLE:端末の言語設定に対応した音声データがない。 - /// ERROR_INIT:初期化に失敗(=UNKOWN と同義)。 - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER:イベントリスナー登録に失敗。 - /// ERROR_UTTERANCEPROGRESS_LISTENER:イベント取得の何らかのエラー(=UNKOWN と同義)。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status (including error) - public static void InitTextToSpeech(string callbackGameObject = "", string statusCallbackMethod = "") - { - //Since the start status is returned only for the first time, it is just called with a dummy (empty character) (like a shortcut) - //起動ステータスは初回のみ返ってくるのでダミー(空文字)で呼び出しているだけ(ショートカットのようなもの) - StartTextToSpeech("", "", callbackGameObject, statusCallbackMethod, "", "", ""); - } - //↓タイプミス - [Obsolete("This method name is a typo. Please use 'InitTextToSpeech' instead.")] - public static void InitSpeechRecognizer(string callbackGameObject = "", string statusCallbackMethod = "") - { - StartTextToSpeech("", "", callbackGameObject, statusCallbackMethod, "", "", ""); - } - - - - /// - /// Call Android Text To Speech - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・When it is available at the first startup, "SUCCESS_INIT" status is returned to the callback method (statusCallbackMethod). - ///(*) Interrupted event callback (stopCallbackMethod) can only be operated with API 23 (Android 6.0) or higher. - /// However, it seems that the behavior varies depending on the system, so be careful. - ///・(Error code string) - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// Moreover, the following error occurs: - /// ERROR_LOCALE_NOT_AVAILABLE : There is no voice data corresponding to the system language setting - /// ERROR_INIT : Initialization failed - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER : Event listener registration failed - /// ERROR_UTTERANCEPROGRESS_LISTENER : Some kind of error of event acquisition - /// (Locale string) - ///・Format:BCP47 (e.g. "en-US", "ja-JP") [This plug-in can also be "en_US", "ja_JP" (under bar).] - /// https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - /// (Locale list) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - /// - /// テキスト読み上げを開始する - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・初回起動時には使用可能なとき、コールバックメソッド(statusCallbackMethod )に "SUCCESS_INIT" ステータスが返ってくる。 - ///※中断イベントコールバック(stopCallbackMethod)は API23(Android6.0) 以上でのみ動作可。ただし端末により挙動が異なるそうなので使用する際には注意。 - ///・エラーコード(文字列)は以下を参照 - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// また上記とは別に以下のエラーが返ることもある。 - /// ERROR_LOCALE_NOT_AVAILABLE:端末の言語設定に対応した音声データがない。 - /// ERROR_INIT:初期化に失敗(=UNKOWN と同義)。 - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER:イベントリスナー登録に失敗。 - /// ERROR_UTTERANCEPROGRESS_LISTENER:イベント取得の何らかのエラー(=UNKOWN と同義)。 - /// (言語設定) - ///・Format:BCP47 (例: "en-US", "ja-JP") [このプラグインでは "en_US", "ja_JP" (アンダーバー)でも可能] - /// https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - /// (Locale 一覧) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - /// Reading text string - /// Locale string (e.g. "ja", "en", "en_GB" etc.) - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status (including error) - /// Method name to callback when start reading text (Always "onStart" is returned) (it is in GameObject) - /// Method name to callback when finish reading text (Always "onDone" is returned) (it is in GameObject) - /// Method name to callback when interrupted reading text (During playback is "INTERRUPTED". Other than always "onStop" is returned) (it is in GameObject) - public static void StartTextToSpeech(string message, string locale, string callbackGameObject, string statusCallbackMethod, - string startCallbackMethod, string doneCallbackMethod, string stopCallbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startTextToSpeech", - context, - message, - locale, - callbackGameObject, - statusCallbackMethod, - startCallbackMethod, - doneCallbackMethod, - stopCallbackMethod - ); - })); - } - - - /// - /// Call Android Text To Speech - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・When it is available at the first startup, "SUCCESS_INIT" status is returned to the callback method (statusCallbackMethod). - ///(*) Interrupted event callback (stopCallbackMethod) can only be operated with API 23 (Android 6.0) or higher. - /// However, it seems that the behavior varies depending on the system, so be careful. - ///・(Error code string) - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// Moreover, the following error occurs: - /// ERROR_LOCALE_NOT_AVAILABLE : There is no voice data corresponding to the system language setting - /// ERROR_INIT : Initialization failed - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER : Event listener registration failed - /// ERROR_UTTERANCEPROGRESS_LISTENER : Some kind of error of event acquisition - /// - /// - /// テキスト読み上げを開始する - /// http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech - ///・初回起動時には使用可能なとき、コールバックメソッド(statusCallbackMethod )に "SUCCESS_INIT" ステータスが返ってくる。 - ///※中断イベントコールバック(stopCallbackMethod)は API23(Android6.0) 以上でのみ動作可。ただし端末により挙動が異なるそうなので使用する際には注意。 - ///・エラーコード(文字列)は以下を参照 - /// https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#ERROR - /// また上記とは別に以下のエラーが返ることもある。 - /// ERROR_LOCALE_NOT_AVAILABLE:端末の言語設定に対応した音声データがない。 - /// ERROR_INIT:初期化に失敗(=UNKOWN と同義)。 - /// ERROR_UTTERANCEPROGRESS_LISTENER_REGISTER:イベントリスナー登録に失敗。 - /// ERROR_UTTERANCEPROGRESS_LISTENER:イベント取得の何らかのエラー(=UNKOWN と同義)。 - /// - /// Reading text string - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status (including error) - /// Method name to callback when start reading text (Always "onStart" is returned) (it is in GameObject) - /// Method name to callback when finish reading text (Always "onDone" is returned) (it is in GameObject) - /// Method name to callback when interrupted reading text (During playback is "INTERRUPTED". Other than always "onStop" is returned) (it is in GameObject) - public static void StartTextToSpeech(string message, string callbackGameObject = "", string statusCallbackMethod = "", - string startCallbackMethod = "", string doneCallbackMethod = "", string stopCallbackMethod = "") - { - StartTextToSpeech(message, "", - callbackGameObject, statusCallbackMethod, startCallbackMethod, doneCallbackMethod, stopCallbackMethod); - } - - - - /// - /// Interruption of text reading (Do not release resource) - ///(*) When changing languages, it is necessary to release with 'ReleaseTextToSpeech()'. - /// - /// テキスト読み上げを中断する(リソース解放はしない) - ///※言語を変更する際は、ReleaseTextToSpeech() で解放する必要がある。 - /// - public static void StopTextToSpeech() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "stopTextToSpeech" - ); - } - } - - - /// - /// Release Text To Speech instance (Resource release) - ///(*) It is necessary also when changing languages. - ///・Even when "AndroidPlugin.Release()" is called, it is executed on the native side. - /// - /// - /// テキスト読み上げのオブジェクトをリリース(リソース解放する) - ///※言語を変更する際にも必要になる。 - ///・AndroidPlugin.Release() でも解放される。 - /// - public static void ReleaseTextToSpeech() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "releaseTextToSpeech" - ); - } - } - - - - /// - /// Get utterance Speed (1.0f: Normal speed) - /// - /// 発声速度を取得する(1.0f が通常速度) - /// - /// 0.5f~1.0f~2.0f - public static float GetTextToSpeechSpeed() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getTextToSpeechSpeed" - ); - } - } - - - /// - /// Set utterance Speed (1.0f: Normal speed) - /// - /// 発声速度を設定する(1.0f が通常速度) - /// - /// 0.5f~1.0f~2.0f - /// Speed after setting : 0.5f~1.0f~2.0f - public static float SetTextToSpeechSpeed(float newSpeed) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "setTextToSpeechSpeed", - newSpeed - ); - } - } - - - /// - /// Add utterance Speed (1.0f: Normal speed) - /// - /// 発声速度を加減する(1.0f が通常速度) - /// - /// 0.5f~1.0f~2.0f - /// Speed after addition : 0.5f~1.0f~2.0f - public static float AddTextToSpeechSpeed(float addSpeed) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "addTextToSpeechSpeed", - addSpeed - ); - } - } - - - /// - /// Reset utterance Speed (-> 1.0f: Normal speed) - ///・Same as SetTextToSpeechSpeed(1f) - /// - /// 発声速度を元に戻す(オリジナルの速度) - ///・SetTextToSpeechSpeed(1f) のショートカット(オリジナル=0f の間違いを防ぐため)。 - /// - public static float ResetTextToSpeechSpeed() - { - return SetTextToSpeechSpeed(1.0f); //1.0f is normal speed //1.0f が通常速度 - } - - - - /// - /// Get utterance Pitch (1.0f: Normal pitch) - /// - /// 発声音程を取得する(1.0f が通常速度) - /// - /// 0.5f~1.0f~2.0f - public static float GetTextToSpeechPitch() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getTextToSpeechPitch" - ); - } - } - - - /// - /// Set utterance Pitch (1.0f: Normal pitch) - /// - /// 発声音程を設定する(1.0f が通常音程) - /// - /// 0.5f~1.0f~2.0f - /// Pitch after setting : 0.5f~1.0f~2.0f - public static float SetTextToSpeechPitch(float newPitch) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "setTextToSpeechPitch", - newPitch - ); - } - } - - - /// - /// Add utterance Pitch (1.0f: Normal pitch) - /// - /// 発声音程を加減する(1.0f が通常音程) - /// - /// Pitch to be added: 0.5f~1.0f~2.0f - /// Pitch after addition : 0.5f~1.0f~2.0f - public static float AddTextToSpeechPitch(float addPitch) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "addTextToSpeechPitch", - addPitch - ); - } - } - - - /// - /// Reset utterance Pitch (-> 1.0f: Normal Pitch) - ///・Same as SetTextToSpeechPitch(1f) - /// - /// 発声音程を元に戻す(オリジナルの音程) - ///・SetTextToSpeechPitch(1f) のショートカット(オリジナル=0f の間違いを防ぐため)。 - /// - public static float ResetTextToSpeechPitch() - { - return SetTextToSpeechPitch(1.0f); //1.0f is normal pitch //1.0f が通常音程 - } - - - - - - //======================================================================== - // Listening status - //(*) Unreleased listening is a cause of memory leak, so it is better to always release it when not using it. - //(*) Application 'Pause -> Resume' with 'remove -> set' is unnecessary (automatically stopped → resumed). - //(*) It is released even when 'AndroidPlugin.Release()' (It is automatically released even when the application is quit). - // - // - // ステータスのリスニング - //※リスニングの未解放はメモリリークの原因となるため、利用しないときは常に解放する方が良い。 - //※コールバックの登録は唯一となる(常に上書き。最後に登録したものが有効となる)。 - //※AndroidPlugin.Release() 時でも解放される(アプリケーション終了時にも自動的に解放される)。 - // (※「AndroidManifest-FullPlugin_~.xml」をリネームして使う) - //======================================================================== - - /// - /// Start listening to the status of the battery - ///(*) Callback registration becomes unique (always overwritten, the last registered one will be valid). - ///(*) It is unnecessary in the application resume(return from pause) (automatically restart). - /// - /// - /// バッテリーのステータスリスニングを開始する - ///※コールバックの登録はユニークとなる(常に上書き。最後に登録したものが有効となる)。 - ///※アプリケーションの Resume(Pauseから復帰)では不要(自動的に再開される)。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status - public static void StartBatteryStatusListening(string callbackGameObject, string callbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startBatteryListening", - context, - callbackGameObject, - callbackMethod - ); - })); - } - - - /// - /// Stop listening to the status of the battery (release) - ///(*) Unreleased listening is a cause of memory leak, so it is better to always release it when not using it. - ///(*) It is unnecessary in the application pause (automatically stop). - /// - /// - /// バッテリーのステータスリスニングを停止(解放)する - ///※リスニングの未解放はメモリリークの原因となるため、利用しないときは常に解放する方が良い。 - ///※アプリケーションの Pause(一時停止)では不要(自動的に停止される)。 - /// - public static void StopBatteryStatusListening() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "stopBatteryListening" - ); - } - } - - - - - /// - /// Start listening to the status of the CPU Rate - ///(*) Note that the measurement interval is shorter the higher the load. - ///(*) If the load of the application is too high, there is a possibility that acquisition of information may fail (there are cases where some of them are missing). - ///(*) Callback registration becomes unique (always overwritten, the last registered one will be valid). - ///(*) It is unnecessary in the application resume(return from pause) (automatically restart). - /// - /// - /// CPU使用率ののステータスリスニングを開始する - ///※計測間隔は短いほど負荷が高いので注意。 - ///※あまりにアプリの負荷が高いときは、情報取得に失敗する可能性がある(一部抜け落ちることがある)。 - ///※コールバックの登録はユニークとなる(常に上書き。最後に登録したものが有効となる)。 - ///※アプリケーションの Resume(Pauseから復帰)では不要(自動的に再開される)。 - /// - /// コールバックするヒエラルキーの GameObject 名 - /// コールバックするメソッド名 - /// 計測間隔(1~600)[秒] - public static void StartCpuRateListening(string callbackGameObject, string callbackMethod, float interval) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startCpuRateListening", - context, - callbackGameObject, - callbackMethod, - interval - ); - })); - } - - - //(*) Without measurement interval (current value) specification overload - //※計測間隔指定なし(現在のまま)のオーバーロード - /// - /// Start listening to the status of the CPU Rate - ///(*) If the load of the application is too high, there is a possibility that acquisition of information may fail (there are cases where some of them are missing). - ///(*) Callback registration becomes unique (always overwritten, the last registered one will be valid). - ///(*) It is unnecessary in the application resume(return from pause) (automatically restart). - /// - /// - /// CPU使用率ののステータスリスニングを開始する - ///※あまりにアプリの負荷が高いときは、情報取得に失敗する可能性がある(一部抜け落ちることがある)。 - ///※コールバックの登録はユニークとなる(常に上書き。最後に登録したものが有効となる)。 - ///※アプリケーションの Resume(Pauseから復帰)では不要(自動的に再開される)。 - /// - /// コールバックするヒエラルキーの GameObject 名 - /// コールバックするメソッド名 - public static void StartCpuRateListening(string callbackGameObject, string callbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "startCpuRateListening", - context, - callbackGameObject, - callbackMethod - ); - })); - } - - - /// - /// Stop listening to the status of the CPU Rate (release) - ///(*) Unreleased listening is a cause of memory leak, so it is better to always release it when not using it. - ///(*) It is unnecessary in the application pause (automatically stop). - /// - /// - /// CPU使用率ののステータスリスニングを停止(解放)する - ///※リスニングの未解放はメモリリークの原因となるため、利用しないときは常に解放する方が良い。 - ///※アプリケーションの Pause(一時停止)では不要(自動的に停止される)。 - /// - public static void StopCpuRateListening() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "stopCpuRateListening" - ); - } - } - - - - - //======================================================================== - // Get Android's configuration change - //·The changed status is transmitted from Android when the configuration changes. - //(*) Application 'Pause -> Resume' with 'remove -> set' is unnecessary (automatically stopped → resumed). - //(*) It is released even when 'AndroidPlugin.Release()' (It is automatically released even when the application is quit). - // (*Requied: rename and use 'AndroidManifest-FullPlugin_~.xml') - // - // - // Android のコンフィグの変化を取得する - //・コンフィグが変化したタイミングで Android から変化後のステータスが送信される。 - //※コールバックの登録は唯一となる(常に上書き。最後に登録したものが有効となる)。 - //※アプリケーションの Pause → Resume での削除→再登録は不要(自動的に停止→再開される)。 - //※AndroidPlugin.Release() 時でも解放される(アプリケーション終了時にも自動的に解放される)。 - // (※「AndroidManifest-FullPlugin_~.xml」をリネームして使う) - //======================================================================== - - /// - /// Register screen rotation callback - ///(*) Callback registration becomes unique (always overwritten, the last registered one will be valid). - ///(*) The following attribute is required for "activity" tag of "AndroidManifest.xml" (* In the case of Unity, it is added by default). - /// 'android:configChanges="orientation|screenSize"' - ///·Normally, for applications that rotate the screen in four directions, add the following attributes to the 'activity' tag of 'AndroidManifest.xml'. - /// 'android:screenOrientation="sensor"' - ///(* Included by default in 'AndroidManifest-FullPlugin_Sensor.xml') - /// https://developer.android.com/guide/topics/manifest/activity-element.html - /// - /// - /// 画面回転のコールバックを登録する - ///※コールバックの登録はユニークとなる(常に上書き。最後に登録したものが有効となる)。 - ///※「AndroidManifest.xml」の「activity」タグに以下の属性が必要である(※Unity の場合、デフォルトで追加されている)。 - /// 'android:configChanges="orientation|screenSize"' - ///・通常、4方向に画面回転するアプリには「AndroidManifest.xml」の「activity」タグに以下の属性を付ける。 - /// 'android:screenOrientation="sensor"' - /// (※「AndroidManifest-FullPlugin_Sensor.xml」にはデフォルトで含まれている) - /// https://developer.android.com/guide/topics/manifest/activity-element.html - /// - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status - public static void SetOrientationChangeListener(string callbackGameObject, string callbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "setOrientationChangeListener", - context, - callbackGameObject, - callbackMethod - ); - })); - } - - - /// - /// Release screen rotation callback - ///(*)'AndroidPlugin.Release()' is also released. - /// - /// 画面回転のコールバックの解除 - ///※AndroidPlugin.Release() でも解除される。 - /// - public static void RemoveOrientationChangeListener() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "removeOrientationChangeListener" - ); - } - } - - - - - - //======================================================================== - // Get values of Android sensor - // http://fantom1x.blog130.fc2.com/blog-entry-294.html - //·The sensor can choose the acquisition interval, but the higher the speed, the higher the load, so the minimum speed (200 ms (5 fps)) is recommended. - //·Input.acceleration, gyro, compass etc, those that can be obtained by Unity, it seems that the load is light. - //(*) Note that the installation of each sensor differs depending on the device. It is better to filter with sensors that are available for Google Play. - // (Using Google Play filters to target specific sensor configurations) - // https://developer.android.com/guide/topics/sensors/sensors_overview.html#sensors-configs - //(*) Note that use of each sensor is also restricted by API Level (as noted in the 'SensorType' comment). - // https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - // https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels - //(*) Depending on the sensor, permissions may be required (as noted in the 'SensorType' comment). - //(*) Callback registration is unique for each sensor (always overwritten, the last one registered will be valid). - //(*) Application 'Pause -> Resume' with 'remove -> set' is unnecessary (automatically stopped → resumed). - //(*) It is released even when 'AndroidPlugin.Release()' (It is automatically released even when the application is quit). - // (Requied: rename and use 'AndroidManifest-FullPlugin_~.xml') - // - // - // Android のセンサーの値を取得する - // http://fantom1x.blog130.fc2.com/blog-entry-294.html - //・センサーは取得間隔を選べるが、速度が速いほど負荷が高くなるため、最低速度(200ms (5fps))で良い。 - //・Input.acceleration, gyro, compass 等、Unity で取得できるものは、そちらの方が負荷が軽いと思われる。 - //※各センサーの搭載は端末の種類によって違うので注意。Google Play では利用できるセンサーでフィルタリングした方が良い。 - // (Using Google Play filters to target specific sensor configurations) - // https://developer.android.com/guide/topics/sensors/sensors_overview.html#sensors-configs - //※各センサーの利用は API Level でも制限されるので注意(SensorType のコメントに記してある)。 - // https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - // https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels - //※センサーによってはパーミッションが必要になることがある(SensorType のコメントに記してある)。 - //※コールバックの登録はセンサーごとにユニークとなる(常に上書き。最後に登録したものが有効となる)。 - //※アプリケーションの Pause → Resume での削除→再登録は不要(自動的に停止→再開される)。 - // (※「AndroidManifest-FullPlugin_~.xml」をリネームして使う) - //======================================================================== - - - /// - /// Get supported for each sensor - /// - /// 各センサーのサポートを取得 - /// - /// Sensor type constant - /// true = supported - public static bool IsSupportedSensor(int sensorType) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isSupportedSensor", - context, - sensorType - ); - } - } - } - } - - //(*) SensorType overload - /// - /// Get supported for each sensor - /// - /// 各センサーのサポートを取得 - /// - /// Sensor type constant - /// true = supported - public static bool IsSupportedSensor(SensorType sensorType) - { - return IsSupportedSensor((int)sensorType); - } - - - /// - /// Register listener for each sensor - ///·Sensor type constant - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///·Sensor delay constant (Detection Interval) Constant is preferably (3: Normal [200 ms]) (* to reduce load). - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(*) Callback registration is unique for each sensor (always overwritten, the last one registered will be valid). - ///(*) Application 'Pause -> Resume' with 'remove -> set' is unnecessary (automatically stopped → resumed). - ///(*) It is unnecessary in the application resume(return from pause) (automatically restart). - /// - /// - /// 各センサーのリスナー登録 - ///・センサー種類定数 - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///・センサー速度(検出間隔)定数はなるべく(3: Normal[200ms])が良い(※負荷を軽減するため)。 - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///※コールバックの登録はセンサーごとにユニークとなる(常に上書き。最後に登録したものが有効となる)。 - ///※アプリケーションの Resume(Pauseから復帰)では不要(自動的に再開される)。 - /// - /// Sensor type constant - /// Sensor delay constant - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status - public static void SetSensorListener(int sensorType, int sensorDelay, string callbackGameObject, string callbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "setSensorListener", - context, - sensorType, - sensorDelay, - callbackGameObject, - callbackMethod - ); - })); - } - - //(*) SensorType overload - /// - /// Register callback for each sensor - ///·Sensor type constant - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///·Sensor delay constant (Detection Interval) Constant is preferably (3: Normal [200 ms]) (* to reduce load). - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(*) Callback registration is unique for each sensor (always overwritten, the last one registered will be valid). - ///(*) Application 'Pause -> Resume' with 'remove -> set' is unnecessary (automatically stopped → resumed). - ///(*) It is unnecessary in the application resume(return from pause) (automatically restart). - /// - /// - /// 各センサーのリスナー登録 - ///・センサー種類定数 - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///・センサー速度(検出間隔)定数はなるべく(3: Normal[200ms])が良い(※負荷を軽減するため)。 - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///※コールバックの登録はセンサーごとにユニークとなる(常に上書き。最後に登録したものが有効となる)。 - ///※アプリケーションの Resume(Pauseから復帰)では不要(自動的に再開される)。 - /// - /// Sensor type constant - /// Sensor delay constant - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status - public static void SetSensorListener(SensorType sensorType, SensorDelay sensorDelay, string callbackGameObject, string callbackMethod) - { - SetSensorListener((int)sensorType, (int)sensorDelay, callbackGameObject, callbackMethod); - } - - - /// - /// Release callback for each sensor - ///(*)'AndroidPlugin.Release()' is also released. - ///(*) It is unnecessary in the application pause (automatically stop). - /// - /// - /// 各センサーの解除 - ///※AndroidPlugin.Release() でも解除される。 - ///※アプリケーションの Pause(一時停止)では不要(自動的に停止される)。 - /// - /// Sensor type constant - public static void RemoveSensorListener(int sensorType) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "removeSensorListener", - sensorType - ); - } - } - - //SensorType overload - /// - /// Release callback for each sensor - ///(*)'AndroidPlugin.Release()' is also released. - ///(*) It is unnecessary in the application pause (automatically stop). - /// - /// - /// 各センサーの解除 - ///※AndroidPlugin.Release() でも解除される。 - ///※アプリケーションの Pause(一時停止)では不要(自動的に停止される)。 - /// - /// Sensor type constant - public static void RemoveSensorListener(SensorType sensorType) - { - RemoveSensorListener((int)sensorType); - } - - - /// - /// Release callback for all sensors - ///(*)'AndroidPlugin.Release()' is also released. - /// - /// - /// 全センサーの解除 - ///※AndroidPlugin.Release() でも解除される。 - /// - public static void ReleaseSensors() - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - androidSystem.CallStatic( - "releaseSensors" - ); - } - } - - - - - //========================================================== - // Confirm Device Credentials (fingerprint, pattern, PIN, password, etc. depending on user device setting) - //(*) API 21 (Android 5.0) or higher - // - // デバイス認証(指紋・パターン・PIN・パスワード等。端末の設定による) - //※API 21 (Android 5.0) 以上 - //========================================================== - - - /// - /// Whether Confirm Device Credentials (fingerprint, pattern, PIN, password, etc. depending on user device setting) is available (API 21 or higher) - ///・It is false when unavailable device or security setting is turned off. - ///(*) It is always false when it is below API 21 (Android 5.0). - /// - /// - /// デバイス認証(指紋・パターン・PIN・パスワード等。端末の設定による)が利用可能かどうかを取得する(API 21 以上) - ///・利用できないデバイス、またはセキュリティ設定がオフになっているとき false となる。 - ///※API 21 (Android 5.0) より下のときは常に false になる。 - /// - /// true = supported - public static bool IsSupportedDeviceCredentials() - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "isSupportedCredentials", - context - ); - } - } - } - } - - - /// - /// Show Confirm Device Credentials screen (fingerprint, pattern, PIN, password, etc. depending on user device setting) and returns the authentication result. (API 21 or higher) - ///·The following status string is returned in the result (JSON format). - /// SUCCESS_CREDENTIALS : Authentication success - /// UNAUTHORIZED_CREDENTIALS : Authentication failure or cancel. - /// ERROR_NOT_SUPPORTED : Device authentication can not be used. Or security is turned off. - ///·Session ID (string) should contain unique and random character string each time. - ///(*) message (description character string) may not be reflected by the device. - ///(*) Title and message are basically empty (because messages are set automatically by system language). - /// - /// - /// デバイス認証(指紋・パターン・PIN・パスワード等。端末の設定による)を開き、結果を返す(API 21 以上) - ///・結果は以下のステータス文字列が返る(JSON形式)。 - /// SUCCESS_CREDENTIALS : 認証成功。 - /// UNAUTHORIZED_CREDENTIALS : 認証失敗。またはキャンセル。 - /// ERROR_NOT_SUPPORTED : デバイス認証が利用できない。またはセキュリティがオフになっている。 - ///・セッションID文字列は毎回ユニークでランダムな文字列を含んだ方が良い。 - ///※message(メッセージ文字列)はデバイスによって反映されない場合がある。 - ///※title, message は基本的に空で良い(システム言語によって自動でメッセージが設定されるため)。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback when returns status - /// Unique SessionID string - /// Title string (When empty, it becomes default of the device) - /// Message string (When empty, it becomes default of the device) - public static void ShowDeviceCredentials(string callbackGameObject, string callbackMethod, string sessionID, string title = "", string message = "") - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showCredentials", - context, - callbackGameObject, - callbackMethod, - sessionID, - title, - message - ); - })); - } - - - //Character string list (used for JSON) - const string ASCII = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&*+-.=?@^_`|~"; - const int ASCII_LENGTH = 24; //Random ASCII character string part length //ランダムなアスキー文字列部分の長さ - - //Generate random SessionID string - internal static string GenerateSessionID() - { - string s = ""; - for (int i = 0; i < ASCII_LENGTH; i++) - s += ASCII.Substring(Random.Range(0, ASCII.Length), 1); - return DateTime.Now.Ticks + " " + s; - } - - - - - - // ========================================================== - // Get text from the QR code scanner. - // ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] (QR Code Scan) - // https://github.com/zxing/zxing - // This plugin includes deliverables distributed under the license of Apache License, Version 2.0. - // http://www.apache.org/licenses/LICENSE-2.0 - // - // - // QRコードスキャナからテキストを取得する - // ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] (QR Code Scan) - // https://github.com/zxing/zxing - // このプラグインには Apache License, Version 2.0 のライセンスで配布されている成果物を含んでいます。 - // http://www.apache.org/licenses/LICENSE-2.0 - // ========================================================== - - - /// - /// Launch QR Code (Bar Code) Scanner to acquire text. - /// Using ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] - /// https://github.com/zxing/zxing - /// (Apache License, Version 2.0) - /// http://www.apache.org/licenses/LICENSE-2.0 - ///·Launch the QR Code Scanner application of ZXing and obtain the result text. - ///·When cancellation or acquisition fails, it returns a empty character (""). - ///·If ZXing's QR Code Scanner application is not in the device, a dialog prompting installation will be displayed. - /// https://play.google.com/store/apps/details?id=com.google.zxing.client.android - /// - /// - /// QRコード(バーコード)スキャナを起動してテキストを取得する。 - /// ZXing オープンソースプロジェクト(google)を利用。[ver.3.3.2] - /// https://github.com/zxing/zxing - /// (Apache License, Version 2.0) - /// http://www.apache.org/licenses/LICENSE-2.0 - ///・ZXing の QRコードスキャナアプリを起動し、結果のテキストを取得する。 - ///・キャンセルまたは取得失敗したときなどは、空文字("")を返す。 - ///・端末に ZXing の QRコードスキャナアプリが入ってない場合は、インストールを促すダイアログが表示される。 - /// https://play.google.com/store/apps/details?id=com.google.zxing.client.android - /// - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - public static void ShowQRCodeScanner(string callbackGameObject, string callbackMethod) - { - AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - AndroidJavaObject context = unityPlayer.GetStatic("currentActivity"); - AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM); - context.Call("runOnUiThread", new AndroidJavaRunnable(() => { - androidSystem.CallStatic( - "showQRCodeScannerZXing", - context, - callbackGameObject, - callbackMethod - ); - })); - } - - - - - - //========================================================== - // Control of Hardware Volume settings - // ハードウェア音量設定の取得・設定など - //========================================================== - - /// - /// Get Hardware Volume (Media volume only) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15? Depends on system?) - /// - /// - /// ハードウェア音量(メディア音量)を取得する - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15?:システムによるかも) - /// - /// Current Hardware Volume - public static int GetMediaVolume() - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getMediaVolume", - context - ); - } - } - } - } - - - - /// - /// Get Maximum Hardware Volume (Media volume only) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15? Depends on system?) - /// - /// - /// ハードウェア音量(メディア音量)の最大音量を取得する - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15?:システムによるかも) - /// - /// Maximum Hardware Volume - public static int GetMediaMaxVolume() - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "getMediaMaxVolume", - context - ); - } - } - } - } - - - - /// - /// Set Hardware Volume (Media volume only) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15? Depends on system?) - /// - /// - /// ハードウェア音量(メディア音量)を設定する - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15?:システムによるかも) - /// - /// new Hardware Volume - /// true=display system UI - /// Hardware Volume after setting - public static int SetMediaVolume(int volume, bool showUI) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "setMediaVolume", - context, - volume, - showUI - ); - } - } - } - } - - - - /// - /// Add Hardware Volume (Media volume only) - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15? Depends on system?) - /// - /// - /// ハードウェア音量(メディア音量)を変化(加算)させる - /// http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeGetSet - ///・0~max (max:15?:システムによるかも) - /// - /// Volume to be added - /// true=display system UI - /// Hardware Volume after addition - public static int AddMediaVolume(int addVol, bool showUI) - { - using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) - { - using (AndroidJavaObject context = unityPlayer.GetStatic("currentActivity")) - { - using (AndroidJavaClass androidSystem = new AndroidJavaClass(ANDROID_SYSTEM)) - { - return androidSystem.CallStatic( - "addMediaVolume", - context, - addVol, - showUI - ); - } - } - } - } - - - - - - //======================================================================== - // Get Hardware button press event - //・Rename "AndroidManifest-FullPlugin~.xml" to "AndroidManifest.xml" when receive events of hardware volume button. - //・Cache objects for Android access to monitor input. - // Therefore, it is better to register the listener with "OnEnable()" and release it with "OnDisable()". - // http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeListener - // - // - // ハードウェアキーの押下イベントを取得する - //・ハードウェア音量操作のイベントを受け取るには、HardVolKeyOnUnityPlayerActivity または FullPluginOnUnityPlayerActivity を使う。 - // → AndroidManifest.xml の起動 activity タグに「android:name="jp.fantom1x.plugin.android.fantomPlugin.HardVolKeyOnUnityPlayerActivity"」を指定する。 - //・入力を監視するためAndroidアクセス用オブジェクトをキャッシュする。そのためリスナーを OnEnable()で登録, OnDisable()で解除するのが良い。 - // http://fantom1x.blog130.fc2.com/blog-entry-273.html#fantomPlugin_HardVolumeListener - //======================================================================== - - - /// - /// Get Hardware button press event - /// - /// ハードウェアキーの取得など - /// - public static class HardKey - { - //Class full path of plug-in in Java - public const string ANDROID_HARDKEY = ANDROID_PACKAGE + ".AndroidHardKey"; - - - //For Android's AndroidHardKey class acquisition (cached) - //Android の AndroidHardKey クラス取得用(キャッシュ) - private static AndroidJavaClass mAndroidHardKey; //Cached Object - - private static AndroidJavaClass AndroidHardKey { - get { - if (mAndroidHardKey == null) - { - mAndroidHardKey = new AndroidJavaClass(ANDROID_HARDKEY); - } - return mAndroidHardKey; - } - } - - - /// - /// Release cashed object - ///・Also called "AndroidPlugin.Release()". - /// - /// キャッシュのリリース - ///・AndroidPlugin.Release() からも呼ばれる。 - /// - public static void ReleaseCache() - { - if (mAndroidHardKey != null) - { - mAndroidHardKey.Dispose(); - mAndroidHardKey = null; - } - } - - - /// - /// Release all listeners - ///・Also called "AndroidPlugin.Release()". - /// - /// キャッシュ(リスナー)の全解除 - ///※AndroidPlugin.Release() でも解放される。 - /// - public static void RemoveAllListeners() - { - RemoveKeyVolumeUpListener(); - RemoveKeyVolumeDownListener(); - ReleaseCache(); - } - - - - /// - /// Register the callback (listener) when the hardware volume (media volume only) is increased. - ///・Only one callback can be registered. - /// - /// - /// ハードウェア音量(メディア音量)を上げたときのコールバック(リスナー)を登録する - ///・コールバックは1つのみ。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Return value when volume is raised - public static void SetKeyVolumeUpListener(string callbackGameObject, string callbackMethod, string resultValue) - { - AndroidHardKey.CallStatic( - "setKeyVolumeUpListener", - callbackGameObject, - callbackMethod, - resultValue - ); - } - - - - /// - /// Register the callback (listener) when the hardware volume (media volume only) is decreased. - ///・Only one callback can be registered. - /// - /// ハードウェア音量(メディア音量)を下げたときのコールバック(リスナー)を登録する - ///・コールバックは1つのみ。 - /// - /// GameObject name in hierarchy to callback - /// Method name to callback (it is in GameObject) - /// Return value when the volume is lowered - public static void SetKeyVolumeDownListener(string callbackGameObject, string callbackMethod, string resultValue) - { - AndroidHardKey.CallStatic( - "setKeyVolumeDownListener", - callbackGameObject, - callbackMethod, - resultValue - ); - } - - - - /// - /// Release the callback (listener) when the hardware volume (media volume only) is increased. - ///・Also called "AndroidPlugin.Release()". - /// - /// ハードウェア音量(メディア音量)を上げたときのコールバック(リスナー)を解除する - ///※AndroidPlugin.Release() でも解放される。 - /// - public static void RemoveKeyVolumeUpListener() - { - AndroidHardKey.CallStatic( - "releaseKeyVolumeUpListener" - ); - } - - - - /// - /// Release the callback (listener) when the hardware volume (media volume only) is decreased. - ///・Also called "AndroidPlugin.Release()". - /// - /// ハードウェア音量(メディア音量)を下げたときのコールバック(リスナー)を解除する - ///※AndroidPlugin.Release() でも解放される。 - /// - public static void RemoveKeyVolumeDownListener() - { - AndroidHardKey.CallStatic( - "releaseKeyVolumeDownListener" - ); - } - - - - /// - /// Set whether to control media volume by the smartphone itself by hardware buttons. - ///・To disable the volume buttons on the smartphone, set it to 'false' if you want to operate only from the Unity side. - ///・It is possible to receive the event and volume control with "SetMediaVolume()" or "AddMediaVolume()". - /// - /// - /// ハードウェアキーによる端末自身での音量操作可否を設定する - ///・端末での音量操作を無効にし、Unity 側からのみ操作したいときは false に設定する。 - /// → イベントを受信して SetMediaVolume(), AddMediaVolume() で音量操作することは可能。 - /// - /// true=Volume operation on smartphone / false=Disable volume operation at the smartphone - public static void SetVolumeOperation(bool enable) - { - AndroidHardKey.CallStatic( - "setVolumeOperation", - enable - ); - } - } - - } -#endif - - - - //========================================================== - // Item (widget) instance parameters class for Custom Dialog - // カスタムダイアログ用のアイテム(ウィジェット)インスタンスパラメタ格納クラス - //========================================================== - - //Types of items (widgets) - //アイテム(ウィジェット)の種類 - [Serializable] - public enum DialogItemType - { - Divisor, //Divsor (View) //分割線 - Text, //Android-TextView //テキスト - Switch, //Android-Switch //スイッチ - Slider, //Android-SeekBar //スライダー(シークバー) - Toggle, //Android-RadioButton //トグル選択(ラジオボタン) - Check, //Android-CheckBox //チェックボックス - } - - //Base class for parameters of each item - //各アイテムのパラメタ格納用 ベースクラス - [Serializable] - public abstract class DialogItem - { - public string type; //Types of items (widgets) //種類 - public string key = ""; //Key to be associated with return value //戻り値に関連付けるキー - - public DialogItem() { } - - public DialogItem(DialogItemType type, string key = "") - { - this.type = type.ToString(); - this.key = key; - } - - public DialogItem Clone() - { - return (DialogItem)MemberwiseClone(); - } - } - - //Parameters for Dividing Line - //分割線用パラメタ格納クラス - [Serializable] - public class DivisorItem : DialogItem - { - public float lineHeight = 1; //Line width (unit: dp) //線の太さ(単位:dp) - public int lineColor = 0; //Line color (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) //線の色(0:指定なし) - - public DivisorItem(float lineHeight, int lineColor = 0) - : base(DialogItemType.Divisor) - { - this.lineHeight = lineHeight; - this.lineColor = lineColor; - } - - //Unity.Color overload - public DivisorItem(float lineHeight, Color lineColor) - : this(lineHeight, XColor.ToIntARGB(lineColor)) { } - - public new DivisorItem Clone() - { - return (DivisorItem)MemberwiseClone(); - } - } - - //Parameters for Text - //テキスト用パラメタ格納クラス - [Serializable] - public class TextItem : DialogItem - { - public string text = ""; //Text string //テキスト文字列 - public int textColor = 0; //Text color (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) //文字色(0:指定なし) - public int backgroundColor = 0; //Background color (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) //背景色(0:指定なし) - public string align = ""; //Text alignment ("" = not specified, "center", "right" or "left") //文字揃え("": 指定なし, "center", "right", "left" のいずれか) - - public TextItem(string text, int textColor = 0, int backgroundColor = 0, string align = "") - : base(DialogItemType.Text) - { - this.text = text; - this.textColor = textColor; - this.backgroundColor = backgroundColor; - this.align = align; - } - - //Unity.Color overload - public TextItem(string text, Color textColor, Color backgroundColor, string align = "") - : this(text, XColor.ToIntARGB(textColor), XColor.ToIntARGB(backgroundColor), align) { } - - public TextItem(string text, Color textColor) - : this(text, XColor.ToIntARGB(textColor), 0, "") { } - - public new TextItem Clone() - { - return (TextItem)MemberwiseClone(); - } - } - - //Parameters for Switch - //スイッチ用パラメタ格納クラス - [Serializable] - public class SwitchItem : DialogItem - { - public string text = ""; //Text string //テキスト文字列 - public bool defChecked; //Initial state of switch (true = On / false = Off) //初期オン・オフ - public int textColor = 0; //Text color (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) //0:指定なし - public string changeCallbackMethod = ""; //Method name to real-time callback when the value of the switch is changed (it is in GameObject) //リアルタイムにスイッチを押したときのコールバックメソッド名。「OK」のときの結果とは別に送信される(戻り値は "key=value" のみ)。 - - public SwitchItem(string text, string key, bool defChecked, int textColor = 0, string changeCallbackMethod = "") - : base(DialogItemType.Switch, key) - { - this.text = text; - this.defChecked = defChecked; - this.textColor = textColor; - this.changeCallbackMethod = changeCallbackMethod; - } - - //Unity.Color overload - public SwitchItem(string text, string key, bool defChecked, Color textColor, string changeCallbackMethod = "") - : this(text, key, defChecked, XColor.ToIntARGB(textColor), changeCallbackMethod) { } - - public new SwitchItem Clone() - { - return (SwitchItem)MemberwiseClone(); - } - } - - //Parameters for CheckBox - //(*) Basically just look different, CheckItem has the same function as SwitchItem. - //チェックボックス用パラメタ格納クラス - //※基本的に見た目が違うだけで、SwitchItem と機能は同じです。 - [Serializable] - public class CheckItem : DialogItem - { - public string text = ""; //Text string //テキスト文字列 - public bool defChecked; //initial on/off //初期オン・オフ - public int textColor = 0; //Text color (0 = default) //テキスト文字色(0:指定なし) - - //Method name to real-time callback when the value of the checkbox is changed (it is in GameObject). It is transmitted separately from the result of "OK" (return value is "key=value" only). - //リアルタイムにチェック切り替えのコールバックメソッド名。「OK」のときの結果とは別に送信される(戻り値は "key=value" のみ)。 - public string changeCallbackMethod = ""; - - public CheckItem(string text, string key, bool defChecked, int textColor = 0, string changeCallbackMethod = "") - : base(DialogItemType.Check, key) - { - this.text = text; - this.defChecked = defChecked; - this.textColor = textColor; - this.changeCallbackMethod = changeCallbackMethod; - } - - //Color オーバーロード - public CheckItem(string text, string key, bool defChecked, Color textColor, string changeCallbackMethod = "") - : this(text, key, defChecked, XColor.ToIntARGB(textColor), changeCallbackMethod) { } - - public new CheckItem Clone() - { - return (CheckItem)MemberwiseClone(); - } - } - - //Parameters for Slider - //スライダー用パラメタ格納クラス - [Serializable] - public class SliderItem : DialogItem - { - public string text = ""; //Text string //テキスト文字列 - public float value; //Initial value //初期値 - public float min; //Minimum value //取り得る最小値 - public float max; //Maximum value //取り得る最大値 - public int digit; //Number of decimal places (0 = integer, 1~3 = after decimal point) //小数点以下桁数(0:整数, 1~3:小数点以下桁数) - public int textColor = 0; //Text color (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) //文字色(0:指定なし) - public string changeCallbackMethod = ""; //Method name to real-time callback when the value of the slider is changed (it is in GameObject) //リアルタイムにスライダーで値を変化させたときのコールバックメソッド名。「OK」のときの結果とは別に送信される(戻り値は "key=value" のみ)。 - - public SliderItem(string text, string key, float value, float min = 0, float max = 100, int digit = 0, int textColor = 0, string changeCallbackMethod = "") - : base(DialogItemType.Slider, key) - { - this.text = text; - this.value = value; - this.min = min; - this.max = max; - this.digit = digit; - this.textColor = textColor; - this.changeCallbackMethod = changeCallbackMethod; - } - - //Unity.Color overload - public SliderItem(string text, string key, float value, float min, float max, int digit, Color textColor, string changeCallbackMethod = "") - : this(text, key, value, min, max, digit, XColor.ToIntARGB(textColor), changeCallbackMethod) { } - - public new SliderItem Clone() - { - return (SliderItem)MemberwiseClone(); - } - } - - //トグルボタン(グループ)用パラメタ格納クラス - //Parameters for Toggle (Group) - [Serializable] - public class ToggleItem : DialogItem - { - public string[] items; //Item strings (Array) //選択肢テキスト - public string[] values; //Value for each item (Array) //各選択肢に対する値。(文字列)戻り値になる。 - public string defValue = ""; //Initial value ([*]Prioritize checkedItem) //デフォルトの値(※checkedItem より優先) - public int checkedItem; //Initial index (nothing defValue or not found defValue) //デフォルトのインデクス(※defValueが未設定 or 見つからないとき反映) - public int textColor = 0; //Text color (0 = not specified: Color format is int32 (AARRGGBB: Android-Java)) //文字色(0:指定なし) - public string changeCallbackMethod = ""; //Method name to real-time callback when the value of the toggle is changed (it is in GameObject) //リアルタイムにトグルボタンを押したときのコールバックメソッド名。「OK」のときの結果とは別に送信される(戻り値は "key=value" のみ)。 - - //Initial value constructor - public ToggleItem(string[] items, string key, string[] values, string defValue, int textColor = 0, string changeCallbackMethod = "") - : base(DialogItemType.Toggle, key) - { - this.items = items; - this.values = values; - this.defValue = defValue; - this.textColor = textColor; - this.changeCallbackMethod = changeCallbackMethod; - } - - //Initial index constructor - public ToggleItem(string[] items, string key, string[] values, int checkedItem, int textColor = 0, string changeCallbackMethod = "") - : base(DialogItemType.Toggle, key) - { - this.items = items; - this.values = values; - this.checkedItem = checkedItem; - this.textColor = textColor; - this.changeCallbackMethod = changeCallbackMethod; - } - - //Unity.Color overload - public ToggleItem(string[] items, string key, string[] values, string defValue, Color textColor, string changeCallbackMethod = "") - : this(items, key, values, defValue, XColor.ToIntARGB(textColor), changeCallbackMethod) { } - - public ToggleItem(string[] items, string key, string[] values, int checkedItem, Color textColor, string changeCallbackMethod = "") - : this(items, key, values, checkedItem, XColor.ToIntARGB(textColor), changeCallbackMethod) { } - - public new ToggleItem Clone() - { - ToggleItem obj = (ToggleItem)MemberwiseClone(); - obj.items = (string[])items.Clone(); - obj.values = (string[])values.Clone(); - return obj; - } - } - - - //========================================================== - // For data acquisition (Mainly used for conversion from JSON) - //·Information that can be acquired varies depending on the provider (storage). - // In order of Local storage > SD card > Cloud storage becomes more. - //(*) Since the function is largely limited in cloud storage, it is usually better to download it to local storage and handle it. - // - // データ取得用クラス(主にJSONからの変換に使用する) - //・取得できる情報はプロバイダ(ストレージ)によって違うので注意。 - // ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - //※クラウドストレージでは大幅に機能が制限されるので、通常はローカルストレージにダウンロードして扱う方が良い。 - //========================================================== - - //For content status - //コンテンツ情報用 - [Serializable] - public class ContentInfo - { - public string path = ""; //Absolute file path - public string name = ""; //file (folder) name - public string uri = ""; //URI returned by the application //アプリが返す URI - public string fileUri = ""; //like "content://media/external/file/~" //ローカルストレージが返す URI - public string mimeType = ""; //e.g. "text/plain" - public long size; //File size [byte] - - public ContentInfo() { } - - public ContentInfo(string path, string uri) - { - this.path = path; - this.uri = uri; - } - - public override string ToString() - { - return JsonUtility.ToJson(this); //for debug - } - } - - - //(*) Based on ContentInfo - //For image information (Fields that failed to get are 0 or null / empty) - //画像情報用(取得に失敗したフィールドは 0 または null、空になる) - [Serializable] - public class ImageInfo : ContentInfo - { - public int width; //(*) It may be impossible to acquire in cloud storage. - public int height; //(*) It may be impossible to acquire in cloud storage. - - //(*) Note that the following information is not likely to be acquired depending on the application (returned URI) and storage state. - //※以下の情報はアプリ(返される URI)や保存状態によって、取得できない可能性が高いので注意。 - public int orientation; //Image rotation angle [degrees] (not set = 0) //画像回転角度 [度] (なし = 0) - - public ImageInfo() { } - - public ImageInfo(string path, int width, int height) - : this(path, "", width, height) { } - - public ImageInfo(string path, string uri, int width, int height) { - this.path = path; - this.uri = uri; - this.width = width; - this.height = height; - } - - public override string ToString() - { - return JsonUtility.ToJson(this); //for debug - } - } - - //(*) Based on ContentInfo - //For video information (Fields that failed to get are 0 or null / empty) - //動画情報用(取得に失敗したフィールドは 0 または null / 空になる) - [Serializable] - public class VideoInfo : ContentInfo - { - public int width; //(*) It may be impossible to acquire in cloud storage. - public int height; //(*) It may be impossible to acquire in cloud storage. - public long duration; //Video duration [ms] (*) It may be impossible to acquire in cloud storage. - - //(*) Note that the following information is not likely to be acquired depending on the application (returned URI) and storage state. - //※以下の情報はアプリ(返される URI)や保存状態によって、取得できない可能性が高いので注意。 - public bool is360video; //true = 360 degrees video, false = normal video, not set or acquisition failure. //true = 306度動画, false = 通常動画、フラグがセットされてない、または取得失敗 - public string title; - public string artist; - - public VideoInfo() { } - - public VideoInfo(string path, int width, int height) - : this(path, "", width, height) { } - - public VideoInfo(string path, string uri, int width, int height) { - this.path = path; - this.uri = uri; - this.width = width; - this.height = height; - } - - public override string ToString() - { - return JsonUtility.ToJson(this); //for debug - } - } - - //(*) Based on ContentInfo - //For audio information (Fields that failed to get are 0 or null / empty) - //音声情報用(取得に失敗したフィールドは 0 または null / 空になる) - [Serializable] - public class AudioInfo : ContentInfo - { - public long duration; //Audio duration [ms] (*) It may be impossible to acquire in cloud storage. - - //(*) Note that the following information is not likely to be acquired depending on the API (returned URI) and storage state. - //※以下の情報はアプリ(返される URI)や保存状態によって、取得できない可能性が高いので注意。 - public string title; - public string artist; - - public AudioInfo() { } - - public AudioInfo(string path) - : this(path, "") { } - - public AudioInfo(string path, string uri) { - this.path = path; - this.uri = uri; - } - - public override string ToString() - { - return JsonUtility.ToJson(this); //for debug - } - } - - - - //For battery status information - //バッテリーステータス用 - [Serializable] - public class BatteryInfo - { - public string timestamp; //Time when information was obtained. //情報を取得した時刻 - public int level; //The remaining battery capacity. //残量 - public int scale; //Maximum amount of battery. //最大量 - public int percent; //%(level/scale*100)(= UnityEngine.SystemInfo.batteryLevel*100) - public string status; //Charge state (= UnityEngine.BatteryStatus) //充電状態を表す - public string health; //Battery condition. //コンディションを表す - public float temperature; //Battery temperature (℃). //バッテリ温度(℃) - public float voltage; //The current battery voltage level.(V) //電圧 (V) - - public override string ToString() - { - return JsonUtility.ToJson(this); //for debug - } - } - - - //For CPU rate status - //CPU 使用率ステータス用 - //・ratio : (CPU0 + CPU1 +...) = 100% (There is an error after the decimal point) //(小数点以下の誤差あり) - //・(user + nice + system + idle) = 100% (There is an error after the decimal point) //(小数点以下の誤差あり) - [Serializable] - public class CpuRateInfo - { - public string name; //"cpu0"~ - public float ratio; //The ratio of each core when the total utilization of all cores is taken as 100%. [%] //全てのコアの使用率の合計を100%としたときの、各コアの比率。[%] - public float user; //CPU utilization used at the user level (application).[%] //ユーザレベル(アプリケーション)で使用されたCPU使用率。[%] - public float nice; //Priority (nice value) The CPU usage rate due to execution of the set user process. //優先度(nice値)設定されたユーザプロセス実行によるCPU使用率。[%] - public float system; //CPU utilization used at the system level (kernel). //システムレベル(カーネル)で使用されたCPU使用率。 - public float idle; //Percentage of CPU not being used. //CPUが使用されていない割合。 - - public override string ToString() - { - return JsonUtility.ToJson(this); //for debug - } - } - - - //For Confirm Device Credentials status - //認証ステータス用 - [Serializable] - public class CredentialInfo - { - public string status; //Result status - public string sessionID; //Session ID (string) - } - - - - - //========================================================== - // Contant Values etc. - // 定数など - - /// - /// Sensor Type constant (* value can not be changed) - ///・Basically the type of sensor is defined as 'int' type, and the return value is defined as 'float[]'. - /// If there is a newly added sensor that is not here, it seems that if you add an ID to 'SensorType' you can use it as it is (Except for TriggerEvent type). - ///·Because plugin loads native calls, it seems better if it can be used to 'Input.acceleration', '.gyro' etc., by Unity built-in. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Using Google Play filters to target specific sensor configurations) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html#sensors-configs - ///(Sensors Overview) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html - ///(API Level) - /// https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels - /// - /// - /// センサー種類定数(※値の変更は不可) - ///・基本的にセンサーの種類は"int型"で定義されており、戻り値は"float[]"で定義されている。 - /// ここには無い新しく追加されたセンサーがあった場合、"SensorType"にIDを追加すればそのまま利用できる場合がある(TriggerEvent タイプを除く)。 - ///・プラグインではネイティブ呼び出しの負荷がかかるため、Input.acceleration, .gyro 等、Unity で取得できるものは、そちらの方が良いと思われる。 - ///(センサーの種類) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///(センサーの戻り値) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Google Play などには利用できるセンサーでフィルタリングした方が良い) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html#sensors-configs - ///(Sensors Overview) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html - ///(API Level) - /// https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels - /// - [Serializable] - public enum SensorType - { - None = 0, //(dummy, not set) - Accelerometer = 1, //[m/s^2] (≒ Input.acceleration * -10) //加速度 - MagneticField = 2, //[uT] (= Input.compass.rawVector) //磁気 - Orientation = 3, //[degree] (deprecated in API level 20) //方向 [度] (※API 20 で廃止) - Gyroscope = 4, //[rad/s] //角速度 - Light = 5, //[lux] //照度 - Pressure = 6, //[hPa] //気圧 - Proximity = 8, //[cm] //近接 - Gravity = 9, //[m/s^2] //重力 - LinearAcceleration = 10, //[m/s^2] (= Accelerometer - Gravity) //線形加速度 - RotationVector = 11, //[vector] (*[0]~[2]:API 9, [3][4]:API 18 or higher) //デバイスの回転ベクトル - RelativeHumidity = 12, //[%] (*API 20 or higher) //湿度 - AmbientTemperature = 13, //[℃] //気温 - MagneticFieldUncalibrated = 14, //[uT] (*API 18 or higher) //未較正の磁気 - GameRotationVector = 15, //[vector] (*API 18 or higher) //地磁気を使用しない回転ベクトル - GyroscopeUncalibrated = 16, //[rad/s] (*API 18 or higher) //未較正の角速度 - SignificantMotion = 17, //[1 only] (*API 18 or higher) //動作継続トリガ - StepDetector = 18, //[1 only] (*API 19 or higher) //歩行トリガ - StepCounter = 19, //[steps (system boot)] (*API 19 or higher) //歩数 [通算歩数] - GeomagneticRotationVector = 20, //[vector] (*API 19 or higher) //地磁気の回転ベクトル - HeartRate = 21, //[bpm](*API 20 or higher. Required permission:'android.permission.BODY_SENSORS') //毎分の心拍数 - Pose6DOF = 28, //[quaternion, translation] (*API 24 or higher) //デバイスポーズ - StationaryDetect = 29, //[1 only] (*API 24 or higher) //静止検出トリガ - MotionDetect = 30, //[1 only] (*API 24 or higher) //動作検出トリガ - HeartBeat = 31, //[confidence=0~1] (*API 24 or higher) //心拍ピーク検出 - LowLatencyOffbodyDetect = 34, //[0 (device is off-body) or 1 (device is on-body)] (*API 26 or higher) //デバイス装着検出 - AccelerometerUncalibrated = 35, //[m/s^2] (*API 26 or higher) //未較正の加速度 - } - - - /// - /// Sensor detection speed constant (* value can not be changed) - ///·Normal is recommended, since plug-in loads native calls and return value conversion. - ///(*) In fact, it is received 'faster' (depending on the type of sensor). - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - /// - /// センサーの検出速度定数(※値の変更は不可) - ///・プラグインではネイティブ呼び出し・戻り値の変換の負荷がかかるため、Normal を推奨。 - ///※実際には「より速く」受信される(センサーの種類による)。 - ///(センサー速度) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - [Serializable] - public enum SensorDelay - { - Fastest = 0, //0ms [*Not recommended as it will result in high load] - Game = 1, //20ms (50fps) - UI = 2, //66.6ms (15fps) - Normal = 3, //200ms (5fps) [*Recommended] - } - - - /// - /// For acquisition sensor value - /// - /// センサーの戻り値取得用 - /// - [Serializable] - public class SensorInfo - { - public int type; - public float[] values; - } - - - /// - /// General constants of sensor values - /// - /// センサー値の一般的な定数 - /// - /// https://developer.android.com/reference/android/hardware/SensorManager.html#GRAVITY_DEATH_STAR_I - /// - public class SensorConstant - { - public class Light - { - // Maximum luminance of sunlight in lux - public static readonly float SunlightMax = 120000.0f; - // luminance of sunlight in lux - public static readonly float Sunlight = 110000.0f; - // luminance in shade in lux - public static readonly float Shade = 20000.0f; - // luminance under an overcast sky in lux - public static readonly float Overcast = 10000.0f; - // luminance at sunrise in lux - public static readonly float Sunrise = 400.0f; - // luminance under a cloudy sky in lux - public static readonly float Cloudy = 100.0f; - // luminance at night with full moon in lux - public static readonly float Fullmoon = 0.25f; - // luminance at night with no moon in lux - public static readonly float NoMoon = 0.001f; - } - - public class Gravity - { - // Standard gravity (g) on Earth. This value is equivalent to 1G - public static readonly float Standard = 9.80665f; - // Sun's gravity in SI units (m/s^2) - public static readonly float Sun = 275.0f; - // Mercury's gravity in SI units (m/s^2) - public static readonly float Mercury = 3.70f; - // Venus' gravity in SI units (m/s^2) - public static readonly float Venus = 8.87f; - // Earth's gravity in SI units (m/s^2) - public static readonly float Earth = 9.80665f; - // The Moon's gravity in SI units (m/s^2) - public static readonly float Moon = 1.6f; - // Mars' gravity in SI units (m/s^2) - public static readonly float Mars = 3.71f; - // Jupiter's gravity in SI units (m/s^2) - public static readonly float Jupiter = 23.12f; - // Saturn's gravity in SI units (m/s^2) - public static readonly float Saturn = 8.96f; - // Uranus' gravity in SI units (m/s^2) - public static readonly float Uranus = 8.69f; - // Neptune's gravity in SI units (m/s^2) - public static readonly float Neptune = 11.0f; - // Pluto's gravity in SI units (m/s^2) - public static readonly float Pluto = 0.6f; - // Gravity (estimate) on the first Death Star in Empire units (m/s^2) - public static readonly float DeathStarInEmpire = 0.000000353036145f; - // Gravity on the island - public static readonly float TheIsland = 4.815162342f; - } - - public class MagneticField - { - // Maximum magnetic field on Earth's surface - public static readonly float EarthMax = 60.0f; - // Minimum magnetic field on Earth's surface - public static readonly float EarthMin = 30.0f; - } - - public class Pressure - { - // Standard atmosphere, or average sea-level pressure in hPa (millibar) - public static readonly float StandardAtmosphere = 1013.25f; - } - } - - - - /// - /// For 'action' input support - ///(*) Actions have a request API Level, and some are available depending on the model of the device, others are not (sometimes it is duplicated). - ///(*) You can add something that is not here. - ///(*) Only index 'None' must be [0]. Otherwise, you can change the order. - /// - /// アクション文字列の入力支援用 - ///※アクションは要求API Levelがあり、デバイスのモデルによっても利用できるものとそうでないものがある(重複してる場合もある)。 - ///※ここに無いものを追加しても構わない。 - ////※'None' のみインデクスが [0] である必要がある。それ以外は順序を替えても構わない。 - /// - [Serializable] - public class ActionString - { - public static readonly string None = "(None)"; //default for display - - public static readonly string[] ConstantValues = - { - None, //dummy, not set. (*Do not change index:[0]) - - //https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - "android.intent.action.VIEW", - "android.intent.action.EDIT", - "android.intent.action.WEB_SEARCH", - "android.intent.action.SEND", - "android.intent.action.SENDTO", - "android.intent.action.CALL_BUTTON", - "android.intent.action.DIAL", - "android.intent.action.SET_WALLPAPER", - "android.intent.action.MANAGE_NETWORK_USAGE", - "android.intent.action.POWER_USAGE_SUMMARY", - - //https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - "android.settings.ACCESSIBILITY_SETTINGS", - "android.settings.ADD_ACCOUNT_SETTINGS", - "android.settings.AIRPLANE_MODE_SETTINGS", - "android.settings.APN_SETTINGS", - "android.settings.APPLICATION_DETAILS_SETTINGS", - "android.settings.APPLICATION_DEVELOPMENT_SETTINGS", - "android.settings.APPLICATION_SETTINGS", - "android.settings.APP_NOTIFICATION_SETTINGS", //API 26 - "android.settings.BATTERY_SAVER_SETTINGS", //API 22 - "android.settings.BLUETOOTH_SETTINGS", - "android.settings.CAPTIONING_SETTINGS", //API 19 - "android.settings.CAST_SETTINGS", //API 21 - "android.settings.CHANNEL_NOTIFICATION_SETTING",//API 26 - "android.settings.DATA_ROAMING_SETTINGS", - "android.settings.DATE_SETTINGS", - "android.settings.DEVICE_INFO_SETTINGS", - "android.settings.DEVICE_INFO_SETTINGS", - "android.settings.DREAM_SETTINGS", //API 18 - "android.settings.HARD_KEYBOARD_SETTINGS", //API 24 - "android.settings.HOME_SETTINGS", //API 21 - "android.settings.IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS",//API 24 - "android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS", //API 23 - "android.settings.INPUT_METHOD_SETTINGS", - "android.settings.INPUT_METHOD_SUBTYPE_SETTINGS", - "android.settings.INTERNAL_STORAGE_SETTINGS", - "android.settings.LOCALE_SETTINGS", - "android.settings.LOCATION_SOURCE_SETTINGS", - "android.settings.MANAGE_ALL_APPLICATIONS_SETTINGS", - "android.settings.MANAGE_APPLICATIONS_SETTINGS", - "android.settings.MANAGE_DEFAULT_APPS_SETTINGS", //API 24 - "android.settings.action.MANAGE_OVERLAY_PERMISSION",//API 23 - "android.settings.MANAGE_UNKNOWN_APP_SOURCES", //API 26 - "android.settings.action.MANAGE_WRITE_SETTINGS", //API 23 - "android.settings.MEMORY_CARD_SETTINGS", - "android.settings.NETWORK_OPERATOR_SETTINGS", - "android.settings.NFCSHARING_SETTINGS", - "android.settings.NFC_PAYMENT_SETTINGS", //API 19 - "android.settings.NFC_SETTINGS", - "android.settings.NIGHT_DISPLAY_SETTINGS", //API 26 - "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS", //API 22 - "android.settings.NOTIFICATION_POLICY_ACCESS_SETTINGS", //API 23 - "android.settings.ACTION_PRINT_SETTINGS", //API 19 - "android.settings.PRIVACY_SETTINGS", - "android.settings.QUICK_LAUNCH_SETTINGS", - "android.search.action.SEARCH_SETTINGS", - "android.settings.SECURITY_SETTINGS", - "android.settings.SETTINGS", - "android.settings.SHOW_REGULATORY_INFO", //API 21 - "android.settings.SOUND_SETTINGS", - "android.settings.SYNC_SETTINGS", - "android.settings.USAGE_ACCESS_SETTING", //API 21 - "android.settings.USER_DICTIONARY_SETTINGS", - "android.settings.VOICE_INPUT_SETTINGS", //API 21 - "android.settings.VPN_SETTINGS", //API 24 - "android.settings.VR_LISTENER_SETTINGS", //API 24 - "android.settings.WEBVIEW_SETTINGS", //API 24 - "android.settings.WIFI_IP_SETTINGS", - "android.settings.WIFI_SETTINGS", - "android.settings.WIRELESS_SETTINGS", - "android.settings.ZEN_MODE_PRIORITY_SETTINGS", //API 26 - }; - } - -} - diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPlugin.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPlugin.cs.meta deleted file mode 100644 index 12e9f9d5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPlugin.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 88069ca16bd33704bb282bebf4d98c37 -timeCreated: 1506480918 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPluginRelease.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPluginRelease.cs deleted file mode 100644 index b5800dab..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPluginRelease.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Release AndroidPlugin on Unity life cycle. - /// - public class AndroidPluginRelease : MonoBehaviour - { - //Inspector Settings - public bool releaseOnDisable = false; - public bool releaseOnDestroy = false; - public bool releaseOnQuit = true; - - - // Use this for initialization - private void Start() - { - - } - - private void OnDisable() - { - if (releaseOnDisable) - Release(); - } - - private void OnDestroy() - { - if (releaseOnDestroy) - Release(); - } - - private void OnApplicationQuit() - { - if (releaseOnQuit) - Release(); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Execute AndroidPlugin release - public void Release() - { -#if UNITY_EDITOR - Debug.Log("AndroidPlugin.Release called"); -#elif UNITY_ANDROID - AndroidPlugin.Release(); -#endif - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPluginRelease.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPluginRelease.cs.meta deleted file mode 100644 index 8da4a3a3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/AndroidPluginRelease.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f3368b5f1f2c4a1409b1f184b5d9e7eb -timeCreated: 1516182473 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs.meta deleted file mode 100644 index f5471cee..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 853178eab30d9b54bbb4bcacf1edfe86 -folderAsset: yes -timeCreated: 1517282567 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/AlphaNumericTextDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/AlphaNumericTextDialogController.cs deleted file mode 100644 index d8fe5b75..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/AlphaNumericTextDialogController.cs +++ /dev/null @@ -1,217 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Alpha Numeric Text Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class AlphaNumericTextDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - [SerializeField] private string text = "Text"; //Default text - public int maxLength = 0; //Limit on number of characters (When it is 0 there is no limit). - public string addCharacters = "_-"; //List characters such as symbols (Not need a delimiter). - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the text (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for text. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text string - public ResultHandler OnResult; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string TEXT_PREF = "_text"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_text'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + TEXT_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - text = PlayerPrefs.GetString(SaveKey, text); - } - - //Save local values manually. - public void SavePrefs() - { - PlayerPrefs.SetString(SaveKey, text); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //The currently (default) text. - //・If saveValue is true, it will be automatically saved. - public string CurrentValue { - get { return text; } - set { - text = string.IsNullOrEmpty(value) ? "" : value; - if (saveValue) - SavePrefs(); - } - } - - - //The value for reset. - private string initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = text; - } - - //Restore the value of inspector and delete PlayerPrefs key. - public void ResetValue() - { - text = initValue; - DeletePrefs(); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("AlphaNumericTextDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowAlphaNumericTextDialog( - title, - message, - text, - maxLength, - addCharacters, - gameObject.name, "ReceiveResult", - okButton, cancelButton, - style); -#endif - } - - //Set text dynamically and show dialog (current text will be overwritten) - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - public void Show(string text) - { - this.text = text; - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - if (saveValue) - { - text = result; - SavePrefs(); - } - - if (OnResult != null) - OnResult.Invoke(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/AlphaNumericTextDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/AlphaNumericTextDialogController.cs.meta deleted file mode 100644 index a9e5d8d3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/AlphaNumericTextDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d322ffc02e6888342ab7a8712f142c9c -timeCreated: 1516510216 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/CustomDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/CustomDialogController.cs deleted file mode 100644 index 9b31014f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/CustomDialogController.cs +++ /dev/null @@ -1,589 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Custom Dialog Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-290.html - /// - /// (Usage) - ///・When 'Find Items In Child' is on, put Prefab of 'DialogItemDivisor', 'DialogItemText', 'DialogItemSlider', 'DialogItemSwitch', 'DialogItemToggles' - /// in transform.child (child GameObject on hierarchy) of GameObject to which CustomDialogController is attached. - ///・When 'Find Items In Child' is off, register Prefab of 'DialogItemXXX'(XXX:widget type) to 'Items' in inspector. - /// (Notes) - ///(*) The message character string (message) and the buttons are not displayed when the item does not fit in the dialog (exclusive to the scrolling display). - /// In that case, you will only be able to display the button if you lose the message (to empty("")): Android dialog specification(?). - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) 'SaveValue' is better not to use it when dynamically changing items (SetItem()). It becomes incompatible with saved value. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// (使い方) - ///・「Find Items In Child」がオンのときは、CustomDialogController がアタッチされてる GameObject の transform.child(ヒエラルキー上での子GameObject)に - /// 「DialogItemDivisor」「DialogItemText」「DialogItemSlider」「DialogItemSwitch」「DialogItemToggles」のプレファブを置く。 - ///・「Find Items In Child」がオフのときは、インスペクタで「Items」にプレファブ「DialogItemXXX」(XXX:ウィジェット形状)を登録する。 - /// (注意点) - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される)。 - /// その場合、メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※動的に items を変更(SetItem())するときは、値の保存(saveValue)は使用しない方が良い(保存された値との整合性が無くなるため)。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class CustomDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = ""; //Dialog message (It should be empty when overflowing) - - public bool findItemsInChild = true; //true: Find items in 'transform.GetChild()' / false: Inspector settings - [SerializeField] private DialogItemParameter[] items; //Use only in the inspector (When internal processing, It is converted to dialogItems and used). - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the 'key=value' pair (Also local value is always overwritten). It is better not to use it when dynamically changing items (It becomes incompatible with saved value). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent> { } //key, value - public ResultHandler OnResult; - - [Serializable] public class ValueChangedHandler : UnityEvent { } //key, value - public ValueChangedHandler OnValueChanged; - - [Serializable] public class CancelHandler : UnityEvent> { } //key, value - public CancelHandler OnCancel; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string VALUE_PREF = "_values"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_values'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + VALUE_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - Param param = Param.GetPlayerPrefs(SaveKey); - SetValue(param); - } - - //Save local values manually. - //・To be saved value is only the 'key & value' pairs (Dictionary ). - public void SavePrefs() - { - XPlayerPrefs.SetDictionary(SaveKey, GetValue()); //compatible 'Param' class - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Convert the local value to Dictionary - //・If saveValue is true, it will be automatically saved. - public Dictionary CurrentValue { - get { return GetValue(); } - set { - SetValue(value); - if (saveValue) - SavePrefs(); - } - } - - //Local value (dialogItems) -> Dictionary (compatible 'Param' class) - private Dictionary GetValue() - { - Param param = new Param(); - if (dialogItems != null) - { - foreach (var elem in keyToIndex) - { - int i = elem.Value; - string type = dialogItems[i].type; - if (type == "Switch") - param[elem.Key] = ((SwitchItem)dialogItems[i]).defChecked.ToString(); - else if (type == "Slider") - param[elem.Key] = ((SliderItem)dialogItems[i]).value.ToString(); - else if (type == "Toggle") - param[elem.Key] = ((ToggleItem)dialogItems[i]).defValue; - else if (type == "Check") - param[elem.Key] = ((CheckItem)dialogItems[i]).defChecked.ToString(); - } - } - return param; - } - - //Dictionary -> Local value (dialogItems) (compatible 'Param' class) - //・Note: Nonexistent keys and type mismatch are ignored. - private void SetValue(Dictionary dic) - { - if (dic == null || dialogItems == null) - return; - - foreach (var item in dic) - { - if (keyToIndex.ContainsKey(item.Key)) - { - int i = keyToIndex[item.Key]; - try - { - string type = dialogItems[i].type; - if (type == "Switch") - ((SwitchItem)dialogItems[i]).defChecked = bool.Parse(item.Value); - else if (type == "Slider") - ((SliderItem)dialogItems[i]).value = float.Parse(item.Value); - else if (type == "Toggle") - ((ToggleItem)dialogItems[i]).defValue = item.Value; - else if (type == "Check") - ((CheckItem)dialogItems[i]).defChecked = bool.Parse(item.Value); - } - catch (Exception) { } - } - } - } - - - //Set items(dialogItems) dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in PlayerPrefs (better to use saveValue is false). - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテム(dialogItems)を設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(DialogItem[] dialogItems) - { - if (dialogItems == null) - return; - - this.dialogItems = dialogItems; - - keyToIndex.Clear(); - for (int i = 0; i < dialogItems.Length; i++) - { - var item = dialogItems[i]; - if (item == null) - continue; - - switch (item.type) - { - case "Switch": - ((SwitchItem)item).changeCallbackMethod = "ReceiveChanged"; - break; - case "Slider": - ((SliderItem)item).changeCallbackMethod = "ReceiveChanged"; - break; - case "Toggle": - ((ToggleItem)item).changeCallbackMethod = "ReceiveChanged"; - break; - case "Check": - ((CheckItem)item).changeCallbackMethod = "ReceiveChanged"; - break; - default: - //Divisor, Text - continue; - } - - if (!string.IsNullOrEmpty(item.key)) - keyToIndex[item.key] = i; //same as MakeKeyToIndexTable() - } - } - - - //Convert items -> dialogItems (Local Values) - private DialogItem[] dialogItems; - - //The values for reset. - private DialogItem[] initValue; - - //Inspecter value (DialogItemParameter) -> Local value (DialogItem). - //(*) When internal processing, it is used dialogItems. - //・Make 'key -> index' table - //・Store the values of the inspector (initValue). - //・Check for key exist. - private void ConvertToDialogItem() - { - if (items == null || items.Length == 0) //from inspector - return; - - dialogItems = new DialogItem[items.Length]; - initValue = new DialogItem[items.Length]; - keyToIndex.Clear(); - int keyCount = 0; - - for (int i = 0; i < items.Length; i++) - { - var item = items[i]; - if (item == null) - continue; - - switch (item.type) - { - case DialogItemType.Divisor: - dialogItems[i] = new DivisorItem(item.lineHeight, item.lineColor); - initValue[i] = ((DivisorItem)dialogItems[i]).Clone(); - break; - case DialogItemType.Text: - string align = item.align.ToString().ToLower(); - dialogItems[i] = new TextItem(item.Text, item.textColor, item.backgroundColor, align == "none" ? "" : align); - initValue[i] = ((TextItem)dialogItems[i]).Clone(); - break; - case DialogItemType.Switch: - dialogItems[i] = new SwitchItem(item.Text, item.key, item.defaultChecked, item.textColor, "ReceiveChanged"); - initValue[i] = ((SwitchItem)dialogItems[i]).Clone(); - if (!string.IsNullOrEmpty(item.key)) - keyToIndex[item.key] = i; - keyCount++; - break; - case DialogItemType.Slider: - dialogItems[i] = new SliderItem(item.Text, item.key, item.value, item.minValue, item.maxValue, item.digit, item.textColor, "ReceiveChanged"); - initValue[i] = ((SliderItem)dialogItems[i]).Clone(); - if (!string.IsNullOrEmpty(item.key)) - keyToIndex[item.key] = i; - keyCount++; - break; - case DialogItemType.Toggle: - dialogItems[i] = new ToggleItem(item.TogglesTexts, item.key, item.TogglesValues, item.toggleItems[item.checkedIndex].value, item.textColor, "ReceiveChanged"); - initValue[i] = ((ToggleItem)dialogItems[i]).Clone(); - if (!string.IsNullOrEmpty(item.key)) - keyToIndex[item.key] = i; - keyCount++; - break; - case DialogItemType.Check: - dialogItems[i] = new CheckItem(item.Text, item.key, item.defaultChecked, item.textColor, "ReceiveChanged"); - initValue[i] = ((CheckItem)dialogItems[i]).Clone(); - if (!string.IsNullOrEmpty(item.key)) - keyToIndex[item.key] = i; - keyCount++; - break; - } - } -#if UNITY_EDITOR - //Check for errors (Editor only). - if (keyCount != keyToIndex.Count) - Debug.LogError("[" + gameObject.name + "] There is empty or duplicate 'Key'."); -#endif - } - - //Restore the values of the inspector and delete PlayerPrefs key. - public void ResetValue() - { - dialogItems = (DialogItem[])initValue.Clone(); - - for (int i = 0; i < initValue.Length; i++) - { - if (initValue[i] == null) - continue; - - string type = initValue[i].type; - if (type == "Divisor") - dialogItems[i] = ((DivisorItem)initValue[i]).Clone(); - else if (type == "Text") - dialogItems[i] = ((TextItem)initValue[i]).Clone(); - else if (type == "Switch") - dialogItems[i] = ((SwitchItem)initValue[i]).Clone(); - else if (type == "Slider") - dialogItems[i] = ((SliderItem)initValue[i]).Clone(); - else if (type == "Toggle") - dialogItems[i] = ((ToggleItem)initValue[i]).Clone(); - else if (type == "Check") - dialogItems[i] = ((CheckItem)initValue[i]).Clone(); - } - - MakeKeyToIndexTable(); - DeletePrefs(); - } - - - //Detects 'DialogItemParameter' from its 'transform.GetChild()' element (not search for grandchildren.). - private void FindItemsInChild() - { - int len = transform.childCount; - if (len == 0) - return; - - List list = new List(len); - for (int i = 0; i < len; i++) - { - DialogItemParameter dlgParam = transform.GetChild(i).GetComponent(); - if (dlgParam != null) - list.Add(dlgParam); - } - - if (list.Count > 0) - items = list.ToArray(); //overwrite inspector value - } - - - //'key -> index' convert table (Divisor and Text do not have a key) - private Dictionary keyToIndex = new Dictionary(); - - //Make 'key -> index' table - private void MakeKeyToIndexTable() - { - keyToIndex.Clear(); - for (int i = 0; i < dialogItems.Length; i++) - { - if (dialogItems[i] != null && !string.IsNullOrEmpty(dialogItems[i].key)) - keyToIndex[dialogItems[i].key] = i; - } - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (dialogItems == null || dialogItems.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - - //Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - //Note: Search only within the same type. - CustomDialogController[] objs = FindObjectsOfType(); - if (objs.Length > 1) - { - HashSet set = new HashSet(objs.Select(e => e.gameObject.name).ToArray()); - if (set.Count != objs.Length) - Debug.LogError("[" + gameObject.name + "] There is duplicate 'gameObject.name'."); - } - } - - //Apply localization of Items. - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - private void ApplyLocalizeItems(SystemLanguage language) - { - if (dialogItems == null || dialogItems.Length == 0 || items.Length == 0) - return; - - for (int i = 0; i < items.Length && i < dialogItems.Length; i++) - { - var item = items[i]; - if (item == null || dialogItems[i] == null) - continue; - - switch (item.type) - { - case DialogItemType.Divisor: - continue; - case DialogItemType.Text: - if (item.localize.localizeResource != null) - { - var obj = (TextItem)dialogItems[i]; - obj.text = item.localize.localizeResource.Text(item.localize.textID, language, obj.text); - if (initValue != null && i < initValue.Length) - ((TextItem)initValue[i]).text = obj.text; - } - break; - case DialogItemType.Switch: - if (item.localize.localizeResource != null) - { - var obj = (SwitchItem)dialogItems[i]; - obj.text = item.localize.localizeResource.Text(item.localize.textID, language, obj.text); - if (initValue != null && i < initValue.Length) - ((SwitchItem)initValue[i]).text = obj.text; - } - break; - case DialogItemType.Slider: - if (item.localize.localizeResource != null) - { - var obj = (SliderItem)dialogItems[i]; - obj.text = item.localize.localizeResource.Text(item.localize.textID, language, obj.text); - if (initValue != null && i < initValue.Length) - ((SliderItem)initValue[i]).text = obj.text; - } - break; - case DialogItemType.Toggle: - if (item.localizeItems.localizeResource != null) - { - var obj = (ToggleItem)dialogItems[i]; - var ini = (initValue != null && i < initValue.Length) ? (ToggleItem)initValue[i] : null; - var itm = (ini != null && ini.items != null) ? ini.items : null; - if (obj.items != null && item.localizeItems.textID != null) - { - int len = Mathf.Min(obj.items.Length, item.localizeItems.textID.Length); - for (int j = 0; j < len; j++) - { - obj.items[j] = item.localizeItems.localizeResource.Text(item.localizeItems.textID[j], language, obj.items[j]); - if (itm != null && j < itm.Length) - itm[j] = obj.items[j]; - } - } - } - break; - case DialogItemType.Check: - if (item.localize.localizeResource != null) - { - var obj = (CheckItem)dialogItems[i]; - obj.text = item.localize.localizeResource.Text(item.localize.textID, language, obj.text); - if (initValue != null && i < initValue.Length) - ((CheckItem)initValue[i]).text = obj.text; - } - break; - } - } - } - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - - ApplyLocalizeItems(language); - } - -#endregion - - // Use this for initialization - private void Awake() - { - if (findItemsInChild) - FindItemsInChild(); - - ConvertToDialogItem(); - ApplyLocalize(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for items(dialogItems) (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { - if (dialogItems == null || dialogItems.Length == 0) - return; -#if UNITY_EDITOR - Debug.Log("CustomDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowCustomDialog( - title, - message, - dialogItems, - gameObject.name, "ReceiveResult", "ReceiveCancel", - false, //"key=value" format - okButton, cancelButton, - style); -#endif - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - Param param = Param.Parse(result); //Parse: "key1=value1\nkey2=value2" -> same as Dictionary (Param) - if (param == null) - return; - - if (saveValue) - { - SetValue(param); - Param.SetPlayerPrefs(SaveKey, param); - PlayerPrefs.Save(); - } - - if (OnResult != null) - OnResult.Invoke(param); //Param and Dictionary are compatible. - } - - //Returns value when slider, switch, toggle changed - public void ReceiveChanged(string result) - { - if (OnValueChanged != null) - { - string[] arr = result.Split('='); - if (arr.Length >= 2) - OnValueChanged.Invoke(arr[0], arr[1]); - } - } - - //Returns value when 'Cancel' pressed or closed. (= initial value) - private void ReceiveCancel(string result) - { - if (result != "CANCEL_DIALOG" && result != "CLOSE_DIALOG") - return; - - if (OnCancel != null) - OnCancel.Invoke(CurrentValue); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/CustomDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/CustomDialogController.cs.meta deleted file mode 100644 index ed687c43..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/CustomDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1598bed255928a345a2c874db49fc5c2 -timeCreated: 1516768776 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DatePickerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DatePickerController.cs deleted file mode 100644 index 18af34d7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DatePickerController.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// DatePicker Dialog Controller - ///・Note: Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// (Datetime format) - /// https://developer.android.com/reference/java/text/SimpleDateFormat.html - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class DatePickerController : MonoBehaviour - { - //Inspector Settings - public string defaultDate = ""; //When it is empty, it is the current time. - public string resultDateFormat = "yyyy/M/d"; //Java Datetime format. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //date string - public ResultHandler OnResult; - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("DatePickerController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowDatePickerDialog( - defaultDate, - resultDateFormat, - gameObject.name, - "ReceiveResult", - style); -#endif - } - - //Set date string dynamically and show dialog (current date string will be overwritten) - public void Show(string defaultDate) - { - this.defaultDate = defaultDate; - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - if (OnResult != null) - OnResult.Invoke(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DatePickerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DatePickerController.cs.meta deleted file mode 100644 index 7ce03406..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DatePickerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d44dc0de29903ce49b265304620afe17 -timeCreated: 1516263929 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DialogItemParameter.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DialogItemParameter.cs deleted file mode 100644 index 113c22fa..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DialogItemParameter.cs +++ /dev/null @@ -1,111 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace FantomLib -{ - /// - /// DialogItem setting parameter for inspector (Convert to DialogItem type at runtime and use it) - ///·Using the 'Text' property, you can get a localized string when 'LocalizeStringResource' is set. - /// - /// インスペクタ用の DialogItem パラメタ設定(実行時には DialogItem に変換されて利用される) - ///・Text プロパティを使用すると、LocalizeStringResource が設定されているとき、ローカライズされた文字列を取得できる。 - /// - public class DialogItemParameter : MonoBehaviour - { - public DialogItemType type = DialogItemType.Divisor; - public string key = ""; //Key to be associated with return value - - //Divisor - public float lineHeight = 1; //line width (dp) - public Color lineColor = Color.black; //When clear, it is not specified. - - //Text - [Multiline] public string text = ""; //text string - public Color textColor = Color.black; //When clear, it is not specified. - public Color backgroundColor = Color.clear; //When clear, it is not specified. - - [Serializable] public enum TextAlign { None, Left, Center, Right } - public TextAlign align = TextAlign.None; //text alignment ("": not specified, "center", "right", "left") - - //Switch - public bool defaultChecked = false; //on/off - - //Slider - public float value = 100; - public float minValue = 0; - public float maxValue = 100; - public int digit = 0; - - //ToggleGroup - [Serializable] - public class ToggleItemData - { - public string text = ""; - public string value = ""; - } - public ToggleItemData[] toggleItems; - - public int checkedIndex = 0; - - - //Localize - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string textID = "text"; - } - public LocalizeData localize; - - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem localizeItems; - - - //Get localized texts - public string[] TogglesTexts { - get { - //return toggleItems.Select(e => e.text).ToArray(); - - //overwrite by localized text - string[] texts = new string[toggleItems.Length]; - for (int i = 0; i < toggleItems.Length; i++) - { - if (localizeItems.localizeResource != null && i < localizeItems.textID.Length) - texts[i] = localizeItems.localizeResource.Text(localizeItems.textID[i], toggleItems[i].text); - else - texts[i] = toggleItems[i].text; - } - return texts; - } - } - public string[] TogglesValues { - get { return toggleItems.Select(e => e.value).ToArray(); } - } - - //Get localized text - public string Text { - get { - if (localize.localizeResource != null) - return localize.localizeResource.Text(localize.textID, text); - return text; - } - } - - public string TextByLanguage(SystemLanguage language) - { - if (localize.localizeResource != null) - return localize.localizeResource.Text(localize.textID, language, text); - return text; - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DialogItemParameter.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DialogItemParameter.cs.meta deleted file mode 100644 index 6a6a41ba..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/DialogItemParameter.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 36395537bc1d95e448a66651d3ac034c -timeCreated: 1516771507 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor.meta deleted file mode 100644 index 52c1f9b7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b8919ef84d183da488b1803a8314ac5a -folderAsset: yes -timeCreated: 1517282625 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/DialogItemParameterEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/DialogItemParameterEditor.cs deleted file mode 100644 index aa585fb5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/DialogItemParameterEditor.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(DialogItemParameter))] - public class DialogItemParameterEditor : Editor - { - SerializedProperty type; - GUIContent typeLabel = new GUIContent("Item Type"); - SerializedProperty lineHeight; - GUIContent lineHeightLabel = new GUIContent("Line Height"); - SerializedProperty lineColor; - GUIContent lineColorLabel = new GUIContent("Line Color"); - SerializedProperty text; - GUIContent textLabel = new GUIContent("Text"); - SerializedProperty textColor; - GUIContent textColorLabel = new GUIContent("Text Color"); - SerializedProperty backgroundColor; - GUIContent backgroundColorLabel = new GUIContent("Background Color"); - SerializedProperty align; - GUIContent alignLabel = new GUIContent("Align"); - SerializedProperty key; - GUIContent keyLabel = new GUIContent("Key"); - SerializedProperty defaultChecked; - GUIContent defaultCheckedLabel = new GUIContent("isOn"); - SerializedProperty value; - GUIContent valueLabel = new GUIContent("Value"); - SerializedProperty minValue; - GUIContent minValueLabel = new GUIContent("Min Value"); - SerializedProperty maxValue; - GUIContent maxValueLabel = new GUIContent("Max Value"); - SerializedProperty digit; - GUIContent digitLabel = new GUIContent("Digit"); - SerializedProperty toggleItems; - GUIContent toggleItemsLabel = new GUIContent("Toggle Items"); - SerializedProperty checkedIndex; - GUIContent checkedIndexLabel = new GUIContent("Selected Index"); - - SerializedProperty localize; - SerializedProperty localizeItems; - GUIContent localizeLabel = new GUIContent("Localize"); - - private void OnEnable() - { - type = serializedObject.FindProperty("type"); - lineHeight = serializedObject.FindProperty("lineHeight"); - lineColor = serializedObject.FindProperty("lineColor"); - text = serializedObject.FindProperty("text"); - textColor = serializedObject.FindProperty("textColor"); - backgroundColor = serializedObject.FindProperty("backgroundColor"); - align = serializedObject.FindProperty("align"); - key = serializedObject.FindProperty("key"); - defaultChecked = serializedObject.FindProperty("defaultChecked"); - value = serializedObject.FindProperty("value"); - minValue = serializedObject.FindProperty("minValue"); - maxValue = serializedObject.FindProperty("maxValue"); - digit = serializedObject.FindProperty("digit"); - toggleItems = serializedObject.FindProperty("toggleItems"); - checkedIndex = serializedObject.FindProperty("checkedIndex"); - - localize = serializedObject.FindProperty("localize"); - localizeItems = serializedObject.FindProperty("localizeItems"); - } - - public override void OnInspectorGUI() - { - var obj = target as DialogItemParameter; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target), typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(type, typeLabel, true); - - switch (obj.type) - { - case DialogItemType.Divisor: - EditorGUILayout.PropertyField(lineHeight, lineHeightLabel, true); - EditorGUILayout.PropertyField(lineColor, lineColorLabel, true); - break; - - case DialogItemType.Text: - EditorGUILayout.PropertyField(text, textLabel, true); - EditorGUILayout.PropertyField(textColor, textColorLabel, true); - EditorGUILayout.PropertyField(backgroundColor, backgroundColorLabel, true); - EditorGUILayout.PropertyField(align, alignLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - break; - - case DialogItemType.Switch: - EditorGUILayout.PropertyField(key, keyLabel, true); - EditorGUILayout.PropertyField(text, textLabel, true); - EditorGUILayout.PropertyField(defaultChecked, defaultCheckedLabel, true); - EditorGUILayout.PropertyField(textColor, textColorLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - break; - - case DialogItemType.Check: - EditorGUILayout.PropertyField(key, keyLabel, true); - EditorGUILayout.PropertyField(text, textLabel, true); - EditorGUILayout.PropertyField(defaultChecked, defaultCheckedLabel, true); - EditorGUILayout.PropertyField(textColor, textColorLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - break; - - case DialogItemType.Slider: - EditorGUILayout.PropertyField(key, keyLabel, true); - EditorGUILayout.PropertyField(text, textLabel, true); - - EditorGUILayout.PropertyField(value, valueLabel, true); - EditorGUILayout.PropertyField(minValue, minValueLabel, true); - EditorGUILayout.PropertyField(maxValue, maxValueLabel, true); - EditorGUILayout.PropertyField(digit, digitLabel, true); - EditorGUILayout.PropertyField(textColor, textColorLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - break; - - case DialogItemType.Toggle: - EditorGUILayout.PropertyField(key, keyLabel, true); - EditorGUILayout.PropertyField(toggleItems, toggleItemsLabel, true); - EditorGUILayout.PropertyField(checkedIndex, checkedIndexLabel, true); - EditorGUILayout.PropertyField(textColor, textColorLabel, true); - - EditorGUILayout.PropertyField(localizeItems, localizeLabel, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/DialogItemParameterEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/DialogItemParameterEditor.cs.meta deleted file mode 100644 index 74302d9b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/DialogItemParameterEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9b2689be03af85347b650746b302032b -timeCreated: 1516771675 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/MultiChoiceDialogControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/MultiChoiceDialogControllerEditor.cs deleted file mode 100644 index 8f773005..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/MultiChoiceDialogControllerEditor.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(MultiChoiceDialogController))] - public class MultiChoiceDialogControllerEditor : Editor - { - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty items; - GUIContent itemsLabel = new GUIContent("Items"); - SerializedProperty resultType; - GUIContent resultTypeLabel = new GUIContent("Result Type"); - SerializedProperty okButton; - GUIContent okButtonLabel = new GUIContent("Ok Button"); - SerializedProperty cancelButton; - GUIContent cancelButtonLabel = new GUIContent("Cancel Button"); - SerializedProperty style; - GUIContent styleLabel = new GUIContent("Style"); - SerializedProperty saveValue; - GUIContent saveValueLabel = new GUIContent("Save Value"); - SerializedProperty saveKey; - GUIContent saveKeyLabel = new GUIContent("Save Key"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - SerializedProperty OnResult; - SerializedProperty OnResultIndex; - SerializedProperty OnValueChanged; - SerializedProperty OnValueIndexChanged; - SerializedProperty OnCancel; - SerializedProperty OnCancelIndex; - - private void OnEnable() - { - title = serializedObject.FindProperty("title"); - items = serializedObject.FindProperty("items"); - resultType = serializedObject.FindProperty("resultType"); - okButton = serializedObject.FindProperty("okButton"); - cancelButton = serializedObject.FindProperty("cancelButton"); - style = serializedObject.FindProperty("style"); - saveValue = serializedObject.FindProperty("saveValue"); - saveKey = serializedObject.FindProperty("saveKey"); - localize = serializedObject.FindProperty("localize"); - OnResult = serializedObject.FindProperty("OnResult"); - OnResultIndex = serializedObject.FindProperty("OnResultIndex"); - OnValueChanged = serializedObject.FindProperty("OnValueChanged"); - OnValueIndexChanged = serializedObject.FindProperty("OnValueIndexChanged"); - OnCancel = serializedObject.FindProperty("OnCancel"); - OnCancelIndex = serializedObject.FindProperty("OnCancelIndex"); - } - - public override void OnInspectorGUI() - { - var obj = target as MultiChoiceDialogController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(title, titleLabel, true); - EditorGUILayout.PropertyField(items, itemsLabel, true); - EditorGUILayout.PropertyField(resultType, resultTypeLabel, true); - - EditorGUILayout.PropertyField(okButton, okButtonLabel, true); - EditorGUILayout.PropertyField(cancelButton, cancelButtonLabel, true); - EditorGUILayout.PropertyField(style, styleLabel, true); - - EditorGUILayout.PropertyField(saveValue, saveValueLabel, true); - EditorGUILayout.PropertyField(saveKey, saveKeyLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - - switch (obj.resultType) - { - case MultiChoiceDialogController.ResultType.Index: - EditorGUILayout.PropertyField(OnResultIndex, true); - EditorGUILayout.PropertyField(OnValueIndexChanged, true); - EditorGUILayout.PropertyField(OnCancelIndex, true); - break; - case MultiChoiceDialogController.ResultType.Value: - case MultiChoiceDialogController.ResultType.Text: - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnValueChanged, true); - EditorGUILayout.PropertyField(OnCancel, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/MultiChoiceDialogControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/MultiChoiceDialogControllerEditor.cs.meta deleted file mode 100644 index 31cda459..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/MultiChoiceDialogControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b5e5bcf8c36d7a448aef42b42dea8dcb -timeCreated: 1516613630 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/NumericTextDialogControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/NumericTextDialogControllerEditor.cs deleted file mode 100644 index dd5f5800..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/NumericTextDialogControllerEditor.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(NumericTextDialogController))] - public class NumericTextDialogControllerEditor : Editor - { - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty message; - GUIContent messageLabel = new GUIContent("Message"); - SerializedProperty defaultValue; - GUIContent defaultValueLabel = new GUIContent("Default Value"); - SerializedProperty maxLength; - GUIContent maxLengthLabel = new GUIContent("Max Length"); - SerializedProperty enableDecimal; - GUIContent enableDecimalLabel = new GUIContent("Enable Decimal"); - SerializedProperty enableSign; - GUIContent enableSignLabel = new GUIContent("Enable Sign"); - SerializedProperty resultType; - GUIContent resultTypeLabel = new GUIContent("Result Type"); - SerializedProperty okButton; - GUIContent okButtonLabel = new GUIContent("Ok Button"); - SerializedProperty cancelButton; - GUIContent cancelButtonLabel = new GUIContent("Cancel Button"); - SerializedProperty style; - GUIContent styleLabel = new GUIContent("Style"); - SerializedProperty saveValue; - GUIContent saveValueLabel = new GUIContent("Save Value"); - SerializedProperty saveKey; - GUIContent saveKeyLabel = new GUIContent("Save Key"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - SerializedProperty OnResult; - SerializedProperty OnResultText; - - private void OnEnable() - { - title = serializedObject.FindProperty("title"); - message = serializedObject.FindProperty("message"); - defaultValue = serializedObject.FindProperty("defaultValue"); - maxLength = serializedObject.FindProperty("maxLength"); - enableDecimal = serializedObject.FindProperty("enableDecimal"); - enableSign = serializedObject.FindProperty("enableSign"); - resultType = serializedObject.FindProperty("resultType"); - okButton = serializedObject.FindProperty("okButton"); - cancelButton = serializedObject.FindProperty("cancelButton"); - style = serializedObject.FindProperty("style"); - saveValue = serializedObject.FindProperty("saveValue"); - saveKey = serializedObject.FindProperty("saveKey"); - localize = serializedObject.FindProperty("localize"); - OnResult = serializedObject.FindProperty("OnResult"); - OnResultText = serializedObject.FindProperty("OnResultText"); - } - - public override void OnInspectorGUI() - { - var obj = target as NumericTextDialogController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - //obj.title = EditorGUILayout.TextField("Title", obj.title); - EditorGUILayout.PropertyField(title, titleLabel, true); - - //obj.message = EditorGUILayout.TextField("Message", obj.message); - EditorGUILayout.PropertyField(message, messageLabel, true); - - EditorGUILayout.PropertyField(defaultValue, defaultValueLabel, true); - - //obj.maxLength = EditorGUILayout.IntField("Max Length", obj.maxLength); - EditorGUILayout.PropertyField(maxLength, maxLengthLabel, true); - - //obj.enableDecimal = EditorGUILayout.Toggle("Enable Decimal", obj.enableDecimal); - EditorGUILayout.PropertyField(enableDecimal, enableDecimalLabel, true); - - //obj.enableSign = EditorGUILayout.Toggle("Enable Sign", obj.enableSign); - EditorGUILayout.PropertyField(enableSign, enableSignLabel, true); - - //obj.resultType = (NumericTextDialogController.ResultType)EditorGUILayout.EnumPopup("Result Type", obj.resultType); - EditorGUILayout.PropertyField(resultType, resultTypeLabel, true); - - //obj.okButton = EditorGUILayout.TextField("Ok Button", obj.okButton); - EditorGUILayout.PropertyField(okButton, okButtonLabel, true); - - //obj.cancelButton = EditorGUILayout.TextField("Cancel Button", obj.cancelButton); - EditorGUILayout.PropertyField(cancelButton, cancelButtonLabel, true); - - //obj.style = EditorGUILayout.TextField("Style", obj.style); - EditorGUILayout.PropertyField(style, styleLabel, true); - - //obj.saveValue = EditorGUILayout.Toggle("Save Value", obj.saveValue); - EditorGUILayout.PropertyField(saveValue, saveValueLabel, true); - - EditorGUILayout.PropertyField(saveKey, saveKeyLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - - switch (obj.resultType) - { - case NumericTextDialogController.ResultType.Value: - EditorGUILayout.PropertyField(OnResult, true); - break; - case NumericTextDialogController.ResultType.Text: - EditorGUILayout.PropertyField(OnResultText, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/NumericTextDialogControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/NumericTextDialogControllerEditor.cs.meta deleted file mode 100644 index 928310c1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/NumericTextDialogControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9d4a46561aeecc14aba32d13eb8d22dc -timeCreated: 1517460447 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SelectDialogControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SelectDialogControllerEditor.cs deleted file mode 100644 index d41ef5e4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SelectDialogControllerEditor.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(SelectDialogController))] - public class SelectDialogControllerEditor : Editor - { - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty items; - GUIContent itemsLabel = new GUIContent("Items"); - SerializedProperty resultType; - GUIContent resultTypeLabel = new GUIContent("Result Type"); - SerializedProperty style; - GUIContent styleLabel = new GUIContent("Style"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - SerializedProperty OnResult; - SerializedProperty OnResultIndex; - - private void OnEnable() - { - title = serializedObject.FindProperty("title"); - items = serializedObject.FindProperty("items"); - resultType = serializedObject.FindProperty("resultType"); - style = serializedObject.FindProperty("style"); - localize = serializedObject.FindProperty("localize"); - OnResult = serializedObject.FindProperty("OnResult"); - OnResultIndex = serializedObject.FindProperty("OnResultIndex"); - } - - public override void OnInspectorGUI() - { - var obj = target as SelectDialogController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - //obj.title = EditorGUILayout.TextField("Title", obj.title); - EditorGUILayout.PropertyField(title, titleLabel, true); - - EditorGUILayout.PropertyField(items, itemsLabel, true); - - //obj.resultType = (SelectDialogController.ResultType)EditorGUILayout.EnumPopup("Result Type", obj.resultType); - EditorGUILayout.PropertyField(resultType, resultTypeLabel, true); - - //obj.style = EditorGUILayout.TextField("Style", obj.style); - EditorGUILayout.PropertyField(style, styleLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - - switch (obj.resultType) - { - case SelectDialogController.ResultType.Index: - EditorGUILayout.PropertyField(OnResultIndex, true); - break; - case SelectDialogController.ResultType.Value: - case SelectDialogController.ResultType.Text: - EditorGUILayout.PropertyField(OnResult, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SelectDialogControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SelectDialogControllerEditor.cs.meta deleted file mode 100644 index f8603aa6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SelectDialogControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9743b3a9cf21c194a86361a058ede400 -timeCreated: 1516598816 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SingleChoiceDialogControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SingleChoiceDialogControllerEditor.cs deleted file mode 100644 index 409332a7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SingleChoiceDialogControllerEditor.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(SingleChoiceDialogController))] - public class SingleChoiceDialogControllerEditor : Editor - { - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty items; - GUIContent itemsLabel = new GUIContent("Items"); - SerializedProperty selectedIndex; - GUIContent selectedIndexLabel = new GUIContent("Selected Index"); - SerializedProperty resultType; - GUIContent resultTypeLabel = new GUIContent("Result Type"); - SerializedProperty okButton; - GUIContent okButtonLabel = new GUIContent("Ok Button"); - SerializedProperty cancelButton; - GUIContent cancelButtonLabel = new GUIContent("Cancel Button"); - SerializedProperty style; - GUIContent styleLabel = new GUIContent("Style"); - SerializedProperty saveValue; - GUIContent saveValueLabel = new GUIContent("Save Value"); - SerializedProperty saveKey; - GUIContent saveKeyLabel = new GUIContent("Save Key"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - SerializedProperty OnResult; - SerializedProperty OnResultIndex; - SerializedProperty OnValueChanged; - SerializedProperty OnValueIndexChanged; - SerializedProperty OnCancel; - SerializedProperty OnCancelIndex; - - private void OnEnable() - { - title = serializedObject.FindProperty("title"); - items = serializedObject.FindProperty("items"); - selectedIndex = serializedObject.FindProperty("selectedIndex"); - resultType = serializedObject.FindProperty("resultType"); - okButton = serializedObject.FindProperty("okButton"); - cancelButton = serializedObject.FindProperty("cancelButton"); - style = serializedObject.FindProperty("style"); - saveValue = serializedObject.FindProperty("saveValue"); - saveKey = serializedObject.FindProperty("saveKey"); - localize = serializedObject.FindProperty("localize"); - OnResult = serializedObject.FindProperty("OnResult"); - OnResultIndex = serializedObject.FindProperty("OnResultIndex"); - OnValueChanged = serializedObject.FindProperty("OnValueChanged"); - OnValueIndexChanged = serializedObject.FindProperty("OnValueIndexChanged"); - OnCancel = serializedObject.FindProperty("OnCancel"); - OnCancelIndex = serializedObject.FindProperty("OnCancelIndex"); - } - - public override void OnInspectorGUI() - { - var obj = target as SingleChoiceDialogController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(title, titleLabel, true); - - EditorGUILayout.PropertyField(items, itemsLabel, true); - EditorGUILayout.PropertyField(selectedIndex, selectedIndexLabel, true); - EditorGUILayout.PropertyField(resultType, resultTypeLabel, true); - - EditorGUILayout.PropertyField(okButton, okButtonLabel, true); - EditorGUILayout.PropertyField(cancelButton, cancelButtonLabel, true); - EditorGUILayout.PropertyField(style, styleLabel, true); - - EditorGUILayout.PropertyField(saveValue, saveValueLabel, true); - EditorGUILayout.PropertyField(saveKey, saveKeyLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - - switch (obj.resultType) - { - case SingleChoiceDialogController.ResultType.Index: - EditorGUILayout.PropertyField(OnResultIndex, true); - EditorGUILayout.PropertyField(OnValueIndexChanged, true); - EditorGUILayout.PropertyField(OnCancelIndex, true); - break; - case SingleChoiceDialogController.ResultType.Value: - case SingleChoiceDialogController.ResultType.Text: - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnValueChanged, true); - EditorGUILayout.PropertyField(OnCancel, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SingleChoiceDialogControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SingleChoiceDialogControllerEditor.cs.meta deleted file mode 100644 index 75d074e5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SingleChoiceDialogControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 825162309acd207409f01950167517da -timeCreated: 1516606016 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SpeechRecognizerDialogControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SpeechRecognizerDialogControllerEditor.cs deleted file mode 100644 index 694a9576..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SpeechRecognizerDialogControllerEditor.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(SpeechRecognizerDialogController))] - public class SpeechRecognizerDialogControllerEditor : Editor - { - SerializedProperty locale; - GUIContent localeLabel = new GUIContent("Locale"); - SerializedProperty message; - GUIContent messageLabel = new GUIContent("Message"); - SerializedProperty saveSetting; - GUIContent saveSettingLabel = new GUIContent("Save Setting"); - SerializedProperty saveKey; - GUIContent saveKeyLabel = new GUIContent("Save Key"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - SerializedProperty OnResult; - SerializedProperty OnError; - - private void OnEnable() - { - locale = serializedObject.FindProperty("locale"); - message = serializedObject.FindProperty("message"); - saveSetting = serializedObject.FindProperty("saveSetting"); - saveKey = serializedObject.FindProperty("saveKey"); - localize = serializedObject.FindProperty("localize"); - OnResult = serializedObject.FindProperty("OnResult"); - OnError = serializedObject.FindProperty("OnError"); - } - - int localeIndex = 0; - - public override void OnInspectorGUI() - { - //var obj = target as SpeechRecognizerDialogController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - - //'Locale' input support - EditorGUI.BeginChangeCheck(); - localeIndex = EditorGUILayout.Popup("(Locale Input Support)", localeIndex, AndroidLocale.ConstantValues); - if (EditorGUI.EndChangeCheck()) - { - if (0 < localeIndex && localeIndex < AndroidLocale.ConstantValues.Length) - locale.stringValue = AndroidLocale.ConstantValues[localeIndex]; - } - EditorGUILayout.PropertyField(locale, localeLabel, true); - - EditorGUILayout.PropertyField(message, messageLabel, true); - - EditorGUILayout.PropertyField(saveSetting, saveSettingLabel, true); - EditorGUILayout.PropertyField(saveKey, saveKeyLabel, true); - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnError, true); - - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SpeechRecognizerDialogControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SpeechRecognizerDialogControllerEditor.cs.meta deleted file mode 100644 index 8d9dcc0d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/Editor/SpeechRecognizerDialogControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7d6b78228ec234e49a02affb98ada5da -timeCreated: 1524912545 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiChoiceDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiChoiceDialogController.cs deleted file mode 100644 index 568b9b12..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiChoiceDialogController.cs +++ /dev/null @@ -1,541 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Multi Choice Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) 'SaveValue' is better not to use it when dynamically changing items (SetItem(), Show(strnig[])). It becomes incompatible with saved value. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※動的に items を変更(SetItem(), Show(strnig[]))するときは、値の保存(saveValue)は使用しない方が良い(保存された値との整合性が無くなるため)。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class MultiChoiceDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - - [Serializable] - public class Item - { - public string text = ""; //Text for each item - public string value = ""; //Value for each item - public bool isOn = false; //Selected item - - public Item() { } - public Item(string text, string value, bool isOn = false) - { - this.text = text; - this.value = value; - this.isOn = isOn; - } - - public Item Clone() - { - return (Item)MemberwiseClone(); - } - } - [SerializeField] private Item[] items; //Choices - - //Callback value type - [Serializable] public enum ResultType { Index, Text, Value } - public ResultType resultType = ResultType.Value; - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the seleted index (Also local value is always overwritten). It is better not to use it when dynamically changing items (It becomes incompatible with saved value). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem items; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //texts or values - public ResultHandler OnResult; - - [Serializable] public class ResultIndexHandler : UnityEvent { } //indexes - public ResultIndexHandler OnResultIndex; - - [Serializable] public class ValueChangedHandler : UnityEvent { } //texts or values - public ValueChangedHandler OnValueChanged; - - [Serializable] public class ValueIndexChangedHandler : UnityEvent { } //indexes - public ValueIndexChangedHandler OnValueIndexChanged; - - [Serializable] public class CancelHandler : UnityEvent { } //texts or values - public CancelHandler OnCancel; - - [Serializable] public class CancelIndexHandler : UnityEvent { } //indexes - public CancelIndexHandler OnCancelIndex; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SELECTED_PREF = "_selected"; //For selected state array - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_selected'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SELECTED_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - bool[] selected = XPlayerPrefs.GetArray(SaveKey, IsOn); - SetOn(selected); - } - - //Save local values manually. - //・To be saved value is only the 'isOn' state array. - public void SavePrefs() - { - XPlayerPrefs.SetArray(SaveKey, IsOn); //bool[] - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Convert the local selected state (Item.isOn) to an array. - //・If saveValue is true, it will be automatically saved. - public bool[] CurrentValue { - get { return IsOn; } - set { - SetOn(value); - if (saveValue) - SavePrefs(); - } - } - - //Propeties - public string[] Texts { - get { return items.Select(e => e.text).ToArray(); } - } - - public string[] Values { - get { return items.Select(e => e.value).ToArray(); } - } - - public bool[] IsOn { - get { return items.Select(e => e.isOn).ToArray(); } - } - - //Create arrays to be arguments of dialogs at once. - private void GetItemArrays(out string[] texts, out string[] values, out bool[] checkedItems) - { - texts = new string[items.Length]; - values = new string[items.Length]; - checkedItems = new bool[items.Length]; - for (int i = 0; i < items.Length; i++) - { - texts[i] = items[i].text; - values[i] = items[i].value; - checkedItems[i] = items[i].isOn; - } - } - - //Set to local values by selected array - //・It is substituted in order from the top (Those less than the length are ignored). - private void SetOn(params bool[] selected) - { - if (selected == null) - return; - - int len = Mathf.Min(selected.Length, items.Length); - for (int i = 0; i < len; i++) - items[i].isOn = selected[i]; - } - - //Set to local values by selected index array (callback value directly). - //・Turn on elements specified by index and turn off others. - private void SetOn(params int[] indexes) - { - if (indexes == null) - indexes = new int[0]; //Length=0 -> all false - - HashSet set = new HashSet(indexes); - for (int i = 0; i < items.Length; i++) - items[i].isOn = set.Contains(i); - } - - - //Set items dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //(*) When the resultType is 'Value', the value becomes the index of string type. - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※「resultType」が「Value」の場合、値は文字列型のインデクスになる。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(string[] texts, bool isOn) - { - if (texts == null) - return; - - items = new Item[texts.Length]; - for (int i = 0; i < texts.Length; i++) - items[i] = new Item(texts[i], i.ToString(), isOn); //value is empty -> index (string type) - } - - //・overload (for callback on inspecter) - //・All values are off. - public void SetItem(string[] texts) - { - SetItem(texts, false); //all off - } - - //Set items dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in PlayerPrefs. - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(Item[] items) - { - if (items == null) - return; - - this.items = items; - } - - - //The values for reset. - private Item[] initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = (Item[])items.Clone(); - for (int i = 0; i < items.Length; i++) - initValue[i] = items[i].Clone(); - } - - //Restore the values of the inspector and delete PlayerPrefs key. - public void ResetValue() - { - items = (Item[])initValue.Clone(); - for (int i = 0; i < initValue.Length; i++) - items[i] = initValue[i].Clone(); - - DeletePrefs(); - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (items.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - else - { - if (resultType == ResultType.Value) - { - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.value)) - set.Add(item.value); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Value'."); - } - else if (resultType == ResultType.Text) - { - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.text)) - set.Add(item.text); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Text'."); - } - } - - //Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - //Note: Search only within the same type. - MultiChoiceDialogController[] objs = FindObjectsOfType(); - if (objs.Length > 1) - { - HashSet set = new HashSet(objs.Select(e => e.gameObject.name).ToArray()); - if (set.Count != objs.Length) - Debug.LogError("[" + gameObject.name + "] There is duplicate 'gameObject.name'."); - } - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], language, items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("MultiChoiceDialogController.Show called"); -#elif UNITY_ANDROID - string[] texts; string[] values; bool[] checkedItems; - GetItemArrays(out texts, out values, out checkedItems); - - AndroidPlugin.ShowMultiChoiceDialog( - title, - texts, - checkedItems, - gameObject.name, "ReceiveResult", "ReceiveChanged", "ReceiveCancel", - true, //For internal processing, only uses Index type. - okButton, cancelButton, - style); -#endif - } - - //Set items dynamically and show dialog (current items will be overwritten). - //Note: When the resultType is 'Value', the value becomes the index of string type. - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //Note: Empty and duplication are not checked. - public void Show(string[] texts) - { - SetItem(texts, false); //all off - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - int[] indexes; - if (!string.IsNullOrEmpty(result)) - { - try { - indexes = result.Split('\n').Select(e => int.Parse(e)).ToArray(); //For internal processing, only uses Index type. - } - catch (Exception) { - return; - } - } - else - indexes = new int[0]; //Necessary for SetOn() -> all off - - if (saveValue) - { - SetOn(indexes); - SavePrefs(); - } - - switch (resultType) - { - case ResultType.Index: - if (OnResultIndex != null) - OnResultIndex.Invoke(indexes); - break; - case ResultType.Text: - if (OnResult != null) - OnResult.Invoke(indexes.Select(i => items[i].text).ToArray()); - break; - case ResultType.Value: - if (OnResult != null) - OnResult.Invoke(indexes.Select(i => items[i].value).ToArray()); - break; - } - } - - //Returns value when choice. - public void ReceiveChanged(string result) - { - int[] indexes; - if (!string.IsNullOrEmpty(result)) - { - try { - indexes = result.Split('\n').Select(e => int.Parse(e)).ToArray(); //For internal processing, only uses Index type. - } - catch (Exception) { - return; - } - } - else - indexes = new int[0]; //Necessary for all empty - - switch (resultType) - { - case ResultType.Index: - if (OnValueIndexChanged != null) - OnValueIndexChanged.Invoke(indexes); - break; - case ResultType.Text: - if (OnValueChanged != null) - OnValueChanged.Invoke(indexes.Select(i => items[i].text).ToArray()); - break; - case ResultType.Value: - if (OnValueChanged != null) - OnValueChanged.Invoke(indexes.Select(i => items[i].value).ToArray()); - break; - } - } - - //Returns value when 'Cancel' pressed or closed. (= initial value) - private void ReceiveCancel(string result) - { - if (result != "CANCEL_DIALOG" && result != "CLOSE_DIALOG") - return; - - switch (resultType) - { - case ResultType.Index: - if (OnCancelIndex != null) - { - List list = new List(); - for (int i = 0; i < items.Length; i++) - if (items[i].isOn) - list.Add(i); - OnCancelIndex.Invoke(list.ToArray()); - } - break; - case ResultType.Text: - if (OnCancel != null) - { - List list = new List(); - foreach (var item in items) - if (item.isOn) - list.Add(item.text); - OnCancel.Invoke(list.ToArray()); - } - break; - case ResultType.Value: - if (OnCancel != null) - { - List list = new List(); - foreach (var item in items) - if (item.isOn) - list.Add(item.value); - OnCancel.Invoke(list.ToArray()); - } - break; - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiChoiceDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiChoiceDialogController.cs.meta deleted file mode 100644 index ab9cb26e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiChoiceDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0065360fbaa145a45a077e5602a09141 -timeCreated: 1516197317 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiLineTextDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiLineTextDialogController.cs deleted file mode 100644 index 70fdecbf..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiLineTextDialogController.cs +++ /dev/null @@ -1,227 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Multi Line Text Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class MultiLineTextDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - [SerializeField, Multiline] - private string text = "Text"; //Default text - public int maxLength = 0; //Limit on number of characters (When it is 0 there is no limit). - public int lines = 5; //Number of rows that can be displayed. - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the text (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for text. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - public string textID = "text"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text string - public ResultHandler OnResult; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string TEXT_PREF = "_text"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_text'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + TEXT_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - text = PlayerPrefs.GetString(SaveKey, text); - } - - //Save local values manually. - public void SavePrefs() - { - PlayerPrefs.SetString(SaveKey, text); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //The currently (default) text. - //・If saveValue is true, it will be automatically saved. - public string CurrentValue { - get { return text; } - set { - text = string.IsNullOrEmpty(value) ? "" : value; - if (saveValue) - SavePrefs(); - } - } - - - //The value for reset. - private string initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = text; - } - - //Restore the value of inspector and delete PlayerPrefs key. - public void ResetValue() - { - text = initValue; - DeletePrefs(); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - initValue = text = localize.localizeResource.Text(localize.textID, text); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - initValue = localize.localizeResource.Text(localize.textID, language, initValue); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("MultiLineTextDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowMultiLineTextDialog( - title, - message, - text, - maxLength, - lines, - gameObject.name, "ReceiveResult", - okButton, cancelButton, - style); -#endif - } - - //Set text dynamically and show dialog (current text will be overwritten) - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - public void Show(string text) - { - this.text = text; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString text) - { - if (text != null) - Show(text.Text); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - if (saveValue) - { - text = result; - SavePrefs(); - } - - if (OnResult != null) - OnResult.Invoke(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiLineTextDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiLineTextDialogController.cs.meta deleted file mode 100644 index 8da867d9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/MultiLineTextDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c28aa9aed18ce854c81e1aa700742199 -timeCreated: 1516503380 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/NumericTextDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/NumericTextDialogController.cs deleted file mode 100644 index e7463590..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/NumericTextDialogController.cs +++ /dev/null @@ -1,256 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Numeric Text Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class NumericTextDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - [SerializeField] private float defaultValue = 0;//Default value - public int maxLength = 0; //Limit on number of characters (When it is 0 there is no limit. Including decimal and sign). - public bool enableDecimal = false; //Set to true when using decimal. - public bool enableSign = false; //Set to true when using sign. - - //Callback value type - [Serializable] - public enum ResultType - { - Value, //float type - Text, //string type - } - public ResultType resultType = ResultType.Value; - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the text (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for text. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //float value - public ResultHandler OnResult; - - [Serializable] public class ResultTextHandler : UnityEvent { } //text string - public ResultTextHandler OnResultText; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string TEXT_PREF = "_text"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_text'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + TEXT_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - string str = PlayerPrefs.GetString(SaveKey, defaultValue.ToString()); //string type in PlayerPrefs. - float value; - if (float.TryParse(str, out value)) - defaultValue = value; - } - - //Save local values manually. - public void SavePrefs() - { - PlayerPrefs.SetString(SaveKey, defaultValue.ToString()); //string type in PlayerPrefs. - PlayerPrefs.Save(); - } - - //To save callback results directly (string type). Because there is rounding error will occur when converting float type. - private void SavePrefs(string result) - { - PlayerPrefs.SetString(SaveKey, result); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //The currently (default) value. - //・If saveValue is true, it will be automatically saved. - public float CurrentValue { - get { return defaultValue; } - set { - defaultValue = value; - if (saveValue) - SavePrefs(); - } - } - - - //The value for reset. - private float initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = defaultValue; - } - - //Restore the value of inspector and delete PlayerPrefs key. - public void ResetValue() - { - defaultValue = initValue; - DeletePrefs(); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("NumericTextDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowNumericTextDialog( - title, - message, - defaultValue, - maxLength, - enableDecimal, - enableSign, - gameObject.name, "ReceiveResult", - okButton, cancelButton, - style); -#endif - } - - //Set value dynamically and show dialog (current value will be overwritten) - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - public void Show(float value) - { - defaultValue = value; - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - result = string.IsNullOrEmpty(result) ? "0" : result; //empty is "0" (text string) - - float value; - if (!float.TryParse(result, out value)) - return; - - if (saveValue) - { - defaultValue = value; - SavePrefs(result); //Saved as string type (Because there is rounding error will occur when converting float type). - } - - switch (resultType) - { - case ResultType.Value: - if (OnResult != null) - OnResult.Invoke(value); - break; - case ResultType.Text: - if (OnResultText != null) - OnResultText.Invoke(result); - break; - } - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/NumericTextDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/NumericTextDialogController.cs.meta deleted file mode 100644 index 9daac85e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/NumericTextDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fe6c95b96ddd8d24eb869fb036016a96 -timeCreated: 1516510199 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKDialogController.cs deleted file mode 100644 index 2cecf7b3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKDialogController.cs +++ /dev/null @@ -1,134 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// OK Dialog Controller - /// - ///・The value of the callback is always 'resultValue'. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///・コールバックは常に「resultValue」の値が返ってくる。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class OKDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - public string okButton = "OK"; //Text of 'OK' button. - public string resultValue = "ok"; //Callback value when 'OK' pressed. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class CloseHandler : UnityEvent { } //resultValue - public CloseHandler OnClose; - -#region Properties and Local values Section - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("OKDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowDialog( - title, - message, - gameObject.name, "ReceiveResult", - okButton, resultValue, - style); -#endif - } - - //Set message dynamically and show dialog (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - - - //Returns value when closed dialog. - private void ReceiveResult(string result) - { - if (result == resultValue) - { - if (OnClose != null) - OnClose.Invoke(resultValue); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKDialogController.cs.meta deleted file mode 100644 index 6b6049ed..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7103fea428fe7f14e9d5648c44543f25 -timeCreated: 1516186295 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKWithCheckBoxDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKWithCheckBoxDialogController.cs deleted file mode 100644 index 5478f74d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKWithCheckBoxDialogController.cs +++ /dev/null @@ -1,232 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// OK with CheckBox Dialog Controller - /// - ///・The value of the callback is always 'resultValue'. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveChecked), it is better to give a specific save name (saveCheckedKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///・コールバックは常に「resultValue」の値が返ってくる。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveChecked)をするときは、なるべく固有の保存名(saveCheckedKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class OKWithCheckBoxDialogController : SavedCheckedBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - public string okButton = "OK"; //Text of 'OK' button. - public string resultValue = "closed"; //Callback value when closed dialog. - - //CheckBox - [SerializeField] private bool defaultChecked = false; //Default state of CheckBox (If saved, it will be overwritten). - public string checkBoxText = "Remember me"; //Text of CheckBox - public Color checkBoxTextColor = Color.black; //Text color of CheckBox - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveChecked = true; //Whether to save the CheckBox value (Also local value is always overwritten). - [SerializeField] private string saveCheckedKey = ""; //When specifying the PlayerPrefs key for CheckBox. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string checkBoxTextID = "checkBoxText"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class CloseHandler : UnityEvent { } //resultValue, checked - public CloseHandler OnClose; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveCheckedKey is empty) - const string CHECKED_PREF = "_checked"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_checked'") - public string SaveCheckedKey { - get { return string.IsNullOrEmpty(saveCheckedKey) ? gameObject.name + CHECKED_PREF : saveCheckedKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - defaultChecked = XPlayerPrefs.GetBool(SaveCheckedKey, defaultChecked); - } - - //Save local values manually. - //・To be saved value is only checked state. - public void SavePrefs() - { - XPlayerPrefs.SetBool(SaveCheckedKey, defaultChecked); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveCheckedKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveCheckedKey); } - } - - //Checked already saved state. When first time (before saving) always false. - public override bool SavedChecked { - get { return XPlayerPrefs.GetBool(SaveCheckedKey, false); } - } - -#endregion - -#region Properties and Local values Section - - //Initial state of CheckBox. - //・If saveChecked is true, it will be automatically saved. - public bool DefaultChecked { - get { return defaultChecked; } - set { - defaultChecked = value; - if (saveChecked) - SavePrefs(); - } - } - - //The value for reset. - private bool initChecked; - - //Store the value of the inspector. - private void StoreInitChecked() - { - initChecked = defaultChecked; - } - - //Restore the value of the inspector and delete PlayerPrefs key. - public void ResetChecked() - { - defaultChecked = initChecked; - DeletePrefs(); - } - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - checkBoxText = localize.localizeResource.Text(localize.checkBoxTextID, checkBoxText); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - checkBoxText = localize.localizeResource.Text(localize.checkBoxTextID, language, checkBoxText); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitChecked(); - - if (saveChecked) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("OKWithCheckBoxDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowDialogWithCheckBox( - title, - message, - checkBoxText, checkBoxTextColor, - defaultChecked, - gameObject.name, "ReceiveResult", - okButton, resultValue, - style); -#endif - } - - //Set message dynamically and show dialog (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - - - //The callback value (resultValue) always returns. - private void ReceiveResult(string result) - { - bool check = result.EndsWith(", CHECKED_TRUE"); - if (saveChecked) - { - defaultChecked = check; - SavePrefs(); - } - - if (result.StartsWith(resultValue)) - { - if (OnClose != null) - OnClose.Invoke(resultValue, check); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKWithCheckBoxDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKWithCheckBoxDialogController.cs.meta deleted file mode 100644 index 2fbe5325..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/OKWithCheckBoxDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6414285c8af83fe419bd98d09197a7ae -timeCreated: 1516186318 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/PasswordTextDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/PasswordTextDialogController.cs deleted file mode 100644 index a8e5ff3c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/PasswordTextDialogController.cs +++ /dev/null @@ -1,123 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Password Text Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class PasswordTextDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - public int maxLength = 0; //Limit on number of characters (When it is 0 there is no limit). - public bool numberOnly = false; //Only number characters can be entered. - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text (*)number -> string type - public ResultHandler OnResult; - -#region Properties and Local values Section - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show(string password) - { -#if UNITY_EDITOR - Debug.Log("PasswordTextDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowPasswordTextDialog( - title, - message, - password, - maxLength, - numberOnly, - gameObject.name, "ReceiveResult", - okButton, cancelButton, - style); -#endif - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - if (OnResult != null) - OnResult.Invoke(result); //Note: It is not encrypted (plane text). - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/PasswordTextDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/PasswordTextDialogController.cs.meta deleted file mode 100644 index 5484e4b8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/PasswordTextDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 36d1fd62d92ce8147bb83f799c91260d -timeCreated: 1516510265 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedBehaviour.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedBehaviour.cs deleted file mode 100644 index 77a82649..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedBehaviour.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UnityEngine; - -namespace FantomLib -{ - /// - /// For get the state of the saved checkbox (SavedChecked property). - /// Because to be able to register in the inspector (SavedCheckedSwitcher), - /// make it an abstract class instead of an interface. - /// - public abstract class SavedCheckedBehaviour : LocalizableBehaviour - { - virtual public bool SavedChecked { get { return false; } } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedBehaviour.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedBehaviour.cs.meta deleted file mode 100644 index 3cd550c0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedBehaviour.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 43ffcde7557f5ad468ae2ba31eda9615 -timeCreated: 1516686822 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedSwitcher.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedSwitcher.cs deleted file mode 100644 index 9e9c30c5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedSwitcher.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// SavedChecked Switcher - ///・Switch the processing (callback) depends on the SavedChecked state. - ///・When first time (before saving) always false (SavedChecked). - /// - public class SavedCheckedSwitcher : MonoBehaviour - { - //Inspector Settings - public SavedCheckedBehaviour target; //YesNoWithCheckBoxDialogController or OKWithCheckBoxDialogController - - //Callbacks - public UnityEvent OnTrue; //Execute (callback) when SavedChecked is true. - public UnityEvent OnFalse; //Execute (callback) when SavedChecked is false. Note: At first time (before saving), always false. - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Switch the processing by SavedChecked and execute (callback). - public void StartSwitch() - { - if (target == null) - return; - - if (target.SavedChecked) - { - if (OnTrue != null) - OnTrue.Invoke(); - } - else - { - if (OnFalse != null) - OnFalse.Invoke(); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedSwitcher.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedSwitcher.cs.meta deleted file mode 100644 index 7bac2af7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SavedCheckedSwitcher.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 664bfb0b17081d74b80ac92f3503fde4 -timeCreated: 1516686228 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SelectDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SelectDialogController.cs deleted file mode 100644 index 66254b56..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SelectDialogController.cs +++ /dev/null @@ -1,306 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Select Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class SelectDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - - [Serializable] - public class Item - { - public string text = ""; //Text for each item - public string value = ""; //Value for each item - - public Item() { } - public Item(string text, string value) - { - this.text = text; - this.value = value; - } - - public Item Clone() - { - return (Item)MemberwiseClone(); - } - } - [SerializeField] private Item[] items; //Choices - - //Callback value type - [Serializable] public enum ResultType { Index, Text, Value } - public ResultType resultType = ResultType.Value; - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem items; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text or value - public ResultHandler OnResult; - - [Serializable] public class ResultIndexHandler : UnityEvent { } //index - public ResultIndexHandler OnResultIndex; - -#region Properties and Local values Section - - //Propeties - public string[] Texts { - get { return items.Select(e => e.text).ToArray(); } - } - - public string[] Values { - get { return items.Select(e => e.value).ToArray(); } - } - - - //Set items dynamically (current items will be overwritten) - //(*) When the resultType is 'Value', the value becomes the index of string type. - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※「resultType」が「Value」の場合、値は文字列型のインデクスになる。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(string[] texts) - { - if (texts == null) - return; - - items = new Item[texts.Length]; - for (int i = 0; i < texts.Length; i++) - items[i] = new Item(texts[i], i.ToString()); //value is empty -> index (string type) - } - - //Set items dynamically (current items will be overwritten) - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(Item[] items) - { - if (items == null) - return; - - this.items = items; - } - - - //The value for reset. - private Item[] initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = (Item[])items.Clone(); - for (int i = 0; i < items.Length; i++) - initValue[i] = items[i].Clone(); - } - - //Restore the value of inspector. - public void ResetValue() - { - items = (Item[])initValue.Clone(); - for (int i = 0; i < initValue.Length; i++) - items[i] = initValue[i].Clone(); - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (items.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - else - { - if (resultType == ResultType.Value) - { - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.value)) - set.Add(item.value); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Value'."); - } - else if (resultType == ResultType.Text) - { - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.text)) - set.Add(item.text); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Text'."); - } - } - - //Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - //Note: Search only within the same type. - SelectDialogController[] objs = FindObjectsOfType(); - if (objs.Length > 1) - { - HashSet set = new HashSet(objs.Select(e => e.gameObject.name).ToArray()); - if (set.Count != objs.Length) - Debug.LogError("[" + gameObject.name + "] There is duplicate 'gameObject.name'."); - } - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], language, items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitValue(); - } - - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog with local values - public void Show() - { -#if UNITY_EDITOR - Debug.Log("SelectDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowSelectDialog( - title, - Texts, - gameObject.name, - "ReceiveResult", - true, //For internal processing, only uses Index type. - style); -#endif - } - - //Set items dynamically and show dialog (current items will be overwritten) - //Note: When the resultType is 'Value', the value becomes the index of string type. - //Note: Empty and duplication are not checked. - public void Show(string[] texts) - { - SetItem(texts); - Show(); - } - - - //Returns value when choiced item. - private void ReceiveResult(string result) - { - int index; //For internal processing, only uses Index type. - if (!int.TryParse(result, out index)) - return; - - switch (resultType) - { - case ResultType.Index: - if (OnResultIndex != null) - OnResultIndex.Invoke(index); - break; - case ResultType.Text: - if (OnResult != null) - OnResult.Invoke(items[index].text); - break; - case ResultType.Value: - if (OnResult != null) - OnResult.Invoke(items[index].value); - break; - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SelectDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SelectDialogController.cs.meta deleted file mode 100644 index 602a4f32..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SelectDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ea0179a2df2fedc40b67e600b3ef9c1a -timeCreated: 1516190708 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleChoiceDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleChoiceDialogController.cs deleted file mode 100644 index 4b3b3dc8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleChoiceDialogController.cs +++ /dev/null @@ -1,466 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Single Choice Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) 'SaveValue' is better not to use it when dynamically changing items (SetItem(), Show(strnig[])). It becomes incompatible with saved value. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※動的に items を変更(SetItem(), Show(strnig[]))するときは、値の保存(saveValue)は使用しない方が良い(保存された値との整合性が無くなるため)。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class SingleChoiceDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - - [Serializable] - public class Item - { - public string text = ""; //Text for each item - public string value = ""; //Value for each item - - public Item() { } - public Item(string text, string value) - { - this.text = text; - this.value = value; - } - - public Item Clone() - { - return (Item)MemberwiseClone(); - } - } - [SerializeField] private Item[] items; //Choices - - [SerializeField] private int selectedIndex = 0; //Default selected index - - //Callback value type - [Serializable] public enum ResultType { Index, Text, Value } - public ResultType resultType = ResultType.Value; - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the seleted index (Also local value is always overwritten). It is better not to use it when dynamically changing items (It becomes incompatible with saved value). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem items; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text or value - public ResultHandler OnResult; - - [Serializable] public class ResultIndexHandler : UnityEvent { } //index - public ResultIndexHandler OnResultIndex; - - [Serializable] public class ValueChangedHandler : UnityEvent { } //text or value - public ValueChangedHandler OnValueChanged; - - [Serializable] public class ValueIndexChangedHandler : UnityEvent { } //index - public ValueIndexChangedHandler OnValueIndexChanged; - - [Serializable] public class CancelHandler : UnityEvent { } //text or value - public CancelHandler OnCancel; - - [Serializable] public class CancelIndexHandler : UnityEvent { } //index - public CancelIndexHandler OnCancelIndex; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SELECTED_PREF = "_selected"; //For selected index - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_selected'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SELECTED_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - selectedIndex = Mathf.Clamp(PlayerPrefs.GetInt(SaveKey, selectedIndex), 0, items.Length -1); - } - - //Save local values manually. - //・To be saved value is only selected index. - public void SavePrefs() - { - PlayerPrefs.SetInt(SaveKey, selectedIndex); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //The currently (default) selected index. - //・If saveValue is true, it will be automatically saved. - public int CurrentValue { - get { return selectedIndex; } - set { - selectedIndex = Mathf.Clamp(value, 0, items.Length - 1); - if (saveValue) - SavePrefs(); - } - } - - //Propeties - public string[] Texts { - get { return items.Select(e => e.text).ToArray(); } - } - - public string[] Values { - get { return items.Select(e => e.value).ToArray(); } - } - - - //Set items dynamically (current items will be overwritten) - //・The selected index is 0. It can be changed by 'CurrentValue' property. - //(*) When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //(*) When the resultType is 'Value', the value becomes the index of string type. - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //・選択済みインデクスは 0 になる。変更したい場合は「CurrentValue」で設定する。 - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※「resultType」が「Value」の場合、値は文字列型のインデクスになる。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(string[] texts) - { - if (texts == null) - return; - - items = new Item[texts.Length]; - for (int i = 0; i < texts.Length; i++) - items[i] = new Item(texts[i], i.ToString()); //value is empty -> index (string type) - - selectedIndex = 0; - } - - //Set items dynamically (current items will be overwritten) - //・The selected index is 0. It can be changed by 'CurrentValue' property. - //(*) When changed dynamically, it is inconsistent with the value saved in PlayerPrefs (better to use saveValue is false). - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //・選択済みインデクスは 0 になる。変更したい場合は「CurrentValue」で設定する。 - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(Item[] items) - { - if (items == null) - return; - - this.items = items; - selectedIndex = 0; - } - - - //The value for reset. - private Item[] initValue; - private int initSelectIndex; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = (Item[])items.Clone(); - for (int i = 0; i < items.Length; i++) - initValue[i] = items[i].Clone(); - - initSelectIndex = selectedIndex; - } - - //Restore the value of inspector and delete PlayerPrefs key. - public void ResetValue() - { - items = (Item[])initValue.Clone(); - for (int i = 0; i < initValue.Length; i++) - items[i] = initValue[i].Clone(); - - selectedIndex = initSelectIndex; - DeletePrefs(); - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (items.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - else - { - if (resultType == ResultType.Value) - { - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.value)) - set.Add(item.value); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Value'."); - } - else if (resultType == ResultType.Text) - { - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.text)) - set.Add(item.text); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Text'."); - } - } - - //Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - //Note: Search only within the same type. - SingleChoiceDialogController[] objs = FindObjectsOfType(); - if (objs.Length > 1) - { - HashSet set = new HashSet(objs.Select(e => e.gameObject.name).ToArray()); - if (set.Count != objs.Length) - Debug.LogError("[" + gameObject.name + "] There is duplicate 'gameObject.name'."); - } - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], language, items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - selectedIndex = Mathf.Clamp(selectedIndex, 0, items.Length - 1); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("SingleChoiceDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowSingleChoiceDialog( - title, - Texts, - Mathf.Clamp(selectedIndex, 0, items.Length - 1), - gameObject.name, "ReceiveResult", "ReceiveChanged", "ReceiveCancel", - true, //For internal processing, only uses Index type. - okButton, cancelButton, - style); -#endif - } - - - //Set items dynamically and show dialog (current items will be overwritten) - //Note: When the resultType is 'Value', the value becomes the index of string type. - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //Note: Empty and duplication are not checked. - public void Show(string[] texts) - { - SetItem(texts); - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - int index; //For internal processing, only uses Index type. - if (!int.TryParse(result, out index)) - return; - - if (saveValue) - { - selectedIndex = index; - SavePrefs(); - } - - switch (resultType) - { - case ResultType.Index: - if (OnResultIndex != null) - OnResultIndex.Invoke(index); - break; - case ResultType.Text: - if (OnResult != null) - OnResult.Invoke(items[index].text); - break; - case ResultType.Value: - if (OnResult != null) - OnResult.Invoke(items[index].value); - break; - } - } - - //Returns value when choice. - public void ReceiveChanged(string result) - { - int index; //For internal processing, only uses Index type. - if (!int.TryParse(result, out index)) - return; - - switch (resultType) - { - case ResultType.Index: - if (OnValueIndexChanged != null) - OnValueIndexChanged.Invoke(index); - break; - case ResultType.Text: - if (OnValueChanged != null) - OnValueChanged.Invoke(items[index].text); - break; - case ResultType.Value: - if (OnValueChanged != null) - OnValueChanged.Invoke(items[index].value); - break; - } - } - - //Returns value when 'Cancel' pressed or closed. (= initial value) - private void ReceiveCancel(string result) - { - if (result != "CANCEL_DIALOG" && result != "CLOSE_DIALOG") - return; - - switch (resultType) - { - case ResultType.Index: - if (OnCancelIndex != null) - OnCancelIndex.Invoke(selectedIndex); - break; - case ResultType.Text: - if (OnCancel != null) - OnCancel.Invoke(items[selectedIndex].text); - break; - case ResultType.Value: - if (OnCancel != null) - OnCancel.Invoke(items[selectedIndex].value); - break; - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleChoiceDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleChoiceDialogController.cs.meta deleted file mode 100644 index 924d9b4f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleChoiceDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a383e57c50b74684cb40ead155e69b79 -timeCreated: 1516193841 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleLineTextDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleLineTextDialogController.cs deleted file mode 100644 index 6b4cda89..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleLineTextDialogController.cs +++ /dev/null @@ -1,225 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Single Line Text Dialog Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class SingleLineTextDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - [SerializeField] private string text = "Text"; //Default text - public int maxLength = 0; //Limit on number of characters (When it is 0 there is no limit). - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the text (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for text. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - public string textID = "text"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text string - public ResultHandler OnResult; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string TEXT_PREF = "_text"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_text'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + TEXT_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - text = PlayerPrefs.GetString(SaveKey, text); - } - - //Save local values manually. - public void SavePrefs() - { - PlayerPrefs.SetString(SaveKey, text); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //The currently (default) text. - //・If saveValue is true, it will be automatically saved. - public string CurrentValue { - get { return text; } - set { - text = string.IsNullOrEmpty(value) ? "" : value; - if (saveValue) - SavePrefs(); - } - } - - - //The value for reset. - private string initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = text; - } - - //Restore the value of inspector and delete PlayerPrefs key. - public void ResetValue() - { - text = initValue; - DeletePrefs(); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - initValue = text = localize.localizeResource.Text(localize.textID, text); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - initValue = localize.localizeResource.Text(localize.textID, language, initValue); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("SingleLineTextDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowSingleLineTextDialog( - title, - message, - text, - maxLength, - gameObject.name, "ReceiveResult", - okButton, cancelButton, - style); -#endif - } - - //Set text dynamically and show dialog (current text will be overwritten) - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - public void Show(string text) - { - this.text = text; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString text) - { - if (text != null) - Show(text.Text); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - if (saveValue) - { - text = result; - SavePrefs(); - } - - if (OnResult != null) - OnResult.Invoke(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleLineTextDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleLineTextDialogController.cs.meta deleted file mode 100644 index bab4a832..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SingleLineTextDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 3c598d3a58297f04dacdd86084291a0c -timeCreated: 1516454928 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SliderDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SliderDialogController.cs deleted file mode 100644 index 6fa00f7f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SliderDialogController.cs +++ /dev/null @@ -1,519 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Slider Dialog Controller - /// - ///(*) The message character string (message) and the buttons are not displayed when the item does not fit in the dialog (exclusive to the scrolling display). - /// In that case, you will only be able to display the button if you lose the message (to empty("")): Android dialog specification(?). - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) 'SaveValue' is better not to use it when dynamically changing items (SetItem(), Show(strnig[])). It becomes incompatible with saved value. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される)。 - /// その場合、メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※動的に items を変更(SetItem(), Show(strnig[]))するときは、値の保存(saveValue)は使用しない方が良い(保存された値との整合性が無くなるため)。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class SliderDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message (It should be empty when overflowing) - - [Serializable] - public class Item - { - public string text = ""; //Text for each item - public string key = ""; //Identification key for each item - public float value = 100; //Default (current) value - public float minValue = 0; //Lower limit of value - public float maxValue = 100; //Upper limit of value - [Range(0, 3)] public int digits = 0; //The number of digits to the right of the decimal point (integer when 0). - - public Item() { } - public Item(string text, string key, float value = 100, float minValue = 0, float maxValue = 100, int digits = 0) - { - this.text = text; - this.key = key; - this.value = Mathf.Clamp(value, minValue, maxValue); - this.minValue = minValue; - this.maxValue = maxValue; - this.digits = Mathf.Clamp(digits, 0, 3); - } - - public Item Clone() - { - return (Item)MemberwiseClone(); - } - } - [SerializeField] private Item[] items; //All items - - public Color itemsTextColor = Color.black; //Text color of all items - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the seleted (Also local value is always overwritten). It is better not to use it when dynamically changing items (It becomes incompatible with saved value). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem items; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent> { } //key, value - public ResultHandler OnResult; - - [Serializable] public class ValueChangedHandler : UnityEvent { } //key, value - public ValueChangedHandler OnValueChanged; - - [Serializable] public class CancelHandler : UnityEvent> { } //key, value - public CancelHandler OnCancel; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SLIDER_PREF = "_sliders"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_sliders'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SLIDER_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - Param param = Param.GetPlayerPrefs(SaveKey); - SetValue(param); - } - - //Save local values manually. - //・To be saved value is only the 'key & value' pairs (Dictionary ). - public void SavePrefs() - { - Dictionary dic = items.ToDictionary(e => e.key, e => e.value.ToString()); //Duplicate key is not allowed. - XPlayerPrefs.SetDictionary(SaveKey, dic); //compatible 'Param' class - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Convert the local values to Dictionary - //・If saveValue is true, it will be automatically saved. - public Dictionary CurrentValue { - get { return items.ToDictionary(e => e.key, e => e.value); } //Duplicate key is not allowed. - set { - SetValue(value); - if (saveValue) - SavePrefs(); - } - } - - //Propeties - public string[] Texts { - get { return items.Select(e => e.text).ToArray(); } - } - - public string[] Keys { - get { return items.Select(e => e.key).ToArray(); } - } - - public float[] Values { - get { return items.Select(e => e.value).ToArray(); } - } - - public float[] MinValues { - get { return items.Select(e => e.minValue).ToArray(); } - } - - public float[] MaxValues { - get { return items.Select(e => e.maxValue).ToArray(); } - } - - public int[] Digits { - get { return items.Select(e => e.digits).ToArray(); } - } - - //Create arrays to be arguments of dialogs at once. - private void GetItemArrays(out string[] texts, out string[] keys, - out float[] values, out float[] minValues, out float[] maxValues, out int[] digits) - { - texts = new string[items.Length]; - keys = new string[items.Length]; - values = new float[items.Length]; - minValues = new float[items.Length]; - maxValues = new float[items.Length]; - digits = new int[items.Length]; - for (int i = 0; i < items.Length; i++) - { - texts[i] = items[i].text; - keys[i] = items[i].key; - values[i] = items[i].value; - minValues[i] = items[i].minValue; - maxValues[i] = items[i].maxValue; - digits[i] = items[i].digits; - } - } - - //Param -> local values - //・Note: Nonexistent keys and type mismatch are ignored. - private void SetValue(Param param) - { - if (param == null) - return; - - foreach (var item in param) - { - if (keyToIndex.ContainsKey(item.Key)) - { - float value; - if (float.TryParse(item.Value, out value)) - items[keyToIndex[item.Key]].value = value; - } - } - } - - //Dictionary -> local values - //・Note: Nonexistent keys are ignored. - private void SetValue(Dictionary dic) - { - if (dic == null) - return; - - foreach (var item in dic) - { - if (keyToIndex.ContainsKey(item.Key)) - items[keyToIndex[item.Key]].value = item.Value; - } - } - - - //Set items dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //(*) The key becomes the index of string type. - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※キー(key)は文字列型のインデクスになる。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(string[] texts, float value) - { - if (texts == null) - return; - - items = new Item[texts.Length]; - for (int i = 0; i < texts.Length; i++) - items[i] = new Item(texts[i], i.ToString(), value); //key is empty -> index (string type) - - MakeKeyToIndexTable(); - } - - //・overload (For callback registration in the inspector) - //・All values are 100. - public void SetItem(string[] texts) - { - SetItem(texts, 100); //all values are 100 - } - - //Set items dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in PlayerPrefs (better to use saveValue is false). - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(Item[] items) - { - if (items == null) - return; - - this.items = items; - MakeKeyToIndexTable(); - } - - - //The values for reset. - private Item[] initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = (Item[])items.Clone(); - for (int i = 0; i < items.Length; i++) - initValue[i] = items[i].Clone(); - } - - //Restore the values of the inspector and delete PlayerPrefs key. - public void ResetValue() - { - items = (Item[])initValue.Clone(); - for (int i = 0; i < initValue.Length; i++) - items[i] = initValue[i].Clone(); - - MakeKeyToIndexTable(); - DeletePrefs(); - } - - - //'key -> index' convert table - private Dictionary keyToIndex = new Dictionary(); - - //Make 'key -> index' table - private void MakeKeyToIndexTable() - { - keyToIndex.Clear(); - for (int i = 0; i < items.Length; i++) - { - if (!string.IsNullOrEmpty(items[i].key)) - keyToIndex[items[i].key] = i; - } - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (items.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - else - { - if (keyToIndex.Count != items.Length) - Debug.LogError("[" + gameObject.name + "] There is empty or duplicate 'Key'."); - - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.text)) - set.Add(item.text); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Text'."); - } - - //Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - //Note: Search only within the same type. - SliderDialogController[] objs = FindObjectsOfType(); - if (objs.Length > 1) - { - HashSet set = new HashSet(objs.Select(e => e.gameObject.name).ToArray()); - if (set.Count != objs.Length) - Debug.LogError("[" + gameObject.name + "] There is duplicate 'gameObject.name'."); - } - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], language, items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - MakeKeyToIndexTable(); - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("SliderDialogController.Show called"); -#elif UNITY_ANDROID - string[] texts; string[] keys; float[] values; - float[] minValues; float[] maxValues; int[] digits; - GetItemArrays(out texts, out keys, out values, - out minValues, out maxValues, out digits); - - AndroidPlugin.ShowSliderDialog( - title, - message, - texts, - keys, - values, - minValues, - maxValues, - digits, - itemsTextColor, - gameObject.name, "ReceiveResult", "ReceiveChanged", "ReceiveCancel", - okButton, cancelButton, - style); -#endif - } - - //Set items dynamically and show dialog (current items will be overwritten). - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //Note: Empty and duplication are not checked. - public void Show(string[] texts) - { - SetItem(texts, 100); //all values are 100 - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - Param param = Param.Parse(result); //Parse: "key1=value1\nkey2=value2" -> same as Dictionary (Param) - if (param == null) - return; - - if (saveValue) - { - SetValue(param); - Param.SetPlayerPrefs(SaveKey, param); - PlayerPrefs.Save(); - } - - if (OnResult != null) - { - try { - OnResult.Invoke(param.Select(e => new { k = e.Key, v = float.Parse(e.Value) }).ToDictionary(a => a.k, a => a.v)); - } - catch (Exception) { } - } - } - - //Returns value when slider moving. - public void ReceiveChanged(string result) - { - if (OnValueChanged != null) - { - string[] arr = result.Split('='); - float value; - if (float.TryParse(arr[1], out value)) - OnValueChanged.Invoke(arr[0], value); - } - } - - //Returns value when 'Cancel' pressed or closed. (= initial value) - private void ReceiveCancel(string result) - { - if (result != "CANCEL_DIALOG" && result != "CLOSE_DIALOG") - return; - - if (OnCancel != null) - OnCancel.Invoke(CurrentValue); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SliderDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SliderDialogController.cs.meta deleted file mode 100644 index f8b868f0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SliderDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 64a3b2ac225f7a94f95e38a1434bc41d -timeCreated: 1516338357 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SpeechRecognizerDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SpeechRecognizerDialogController.cs deleted file mode 100644 index 626a8604..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SpeechRecognizerDialogController.cs +++ /dev/null @@ -1,232 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Speech Recognizer Dialog Controller (Use dialog of Google) - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Locale list) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (Locale 一覧) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - public class SpeechRecognizerDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - [SerializeField] private string locale = ""; //Locale (e.g. "en", "en-US", "ja", "ja-JP") / empty = system default - [Multiline] public string message = ""; //Dialog message - - //Save PlayerPrefs Settings - public bool saveSetting = false; //Whether to save the settings (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for settings. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string messageID = "message"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //recognization words - public ResultHandler OnResult; //Callback when recognization success - - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SETTING_PREF = "_setting"; - const string LOCALE_KEY = "locale"; - - private Param setting = new Param(); //Compatibale Dictionary - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_setting'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SETTING_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - setting = Param.GetPlayerPrefs(SaveKey, setting); - Locale = setting.GetString(LOCALE_KEY, Locale); - } - - //Save local values manually. - public void SavePrefs() - { - setting.Set(LOCALE_KEY, Locale); - Param.SetPlayerPrefs(SaveKey, setting); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Properties - private static bool isSupportedRecognizer = false; //Cached supported Speech Recognizer (Because Recognizer shares one, it is static). - private static bool isSupportedChecked = false; //Already checked (Because Recognizer shares one, it is static). - - //Whether the device supports Speech Recognizer. - public bool IsSupportedRecognizer { - get { - if (!isSupportedChecked) - { -#if UNITY_EDITOR - isSupportedRecognizer = true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - isSupportedRecognizer = AndroidPlugin.IsSupportedSpeechRecognizer(); -#endif - isSupportedChecked = true; - } - return isSupportedRecognizer; - } - } - - //Whether necessary permissions are granted. - public bool IsPermissionGranted { - get { -#if UNITY_EDITOR - return true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - return AndroidPlugin.CheckPermission("android.permission.RECORD_AUDIO"); -#else - return false; -#endif - } - } - - //Change locale (empty is system default) - public string Locale { - get { return locale; } - set { - if (locale != value) - { - locale = (value == AndroidLocale.Default) ? "" : value; - - if (saveSetting) - SavePrefs(); - } - } - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - message = localize.localizeResource.Text(localize.messageID, message); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - message = localize.localizeResource.Text(localize.messageID, language, message); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - - if (saveSetting) - LoadPrefs(); - } - - private void Start() - { - if (!IsSupportedRecognizer) - { - if (OnError != null) - OnError.Invoke("Not supported: Speech Recognizer"); - } - if (!IsPermissionGranted) - { - if (OnError != null) - OnError.Invoke("Permission denied: RECORD_AUDIO"); - } - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { - if (!IsSupportedRecognizer || !IsPermissionGranted) - return; -#if UNITY_EDITOR - Debug.Log("ShowSpeechRecognizer called"); -#elif UNITY_ANDROID - if (string.IsNullOrEmpty(locale)) - AndroidPlugin.ShowSpeechRecognizer( - gameObject.name, "ReceiveResult", message); - else - AndroidPlugin.ShowSpeechRecognizer(locale, - gameObject.name, "ReceiveResult", message); -#endif - } - - //Set message dynamically and show (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - - - //Returns value when speech recognition succeeds. - private void ReceiveResult(string result) - { - if (string.IsNullOrEmpty(result)) - return; - - if (OnResult != null) - OnResult.Invoke(result.Split('\n')); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SpeechRecognizerDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SpeechRecognizerDialogController.cs.meta deleted file mode 100644 index 69d4778a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SpeechRecognizerDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6f45b8e4cb501b44c979183dc676bbbe -timeCreated: 1516857068 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SwitchDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SwitchDialogController.cs deleted file mode 100644 index ea56e5af..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SwitchDialogController.cs +++ /dev/null @@ -1,486 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Switch Dialog Controller - /// - ///(*) The message character string (message) and the buttons are not displayed when the item does not fit in the dialog (exclusive to the scrolling display). - /// In that case, you will only be able to display the button if you lose the message (to empty("")): Android dialog specification(?). - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) 'SaveValue' is better not to use it when dynamically changing items (SetItem(), Show(string[])). It becomes incompatible with saved value. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される)。 - /// その場合、メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※動的に items を変更(SetItem(), Show(strnig[]))するときは、値の保存(saveValue)は使用しない方が良い(保存された値との整合性が無くなるため)。 - ///※値の保存(saveValue)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class SwitchDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message (It should be empty when overflowing) - - [Serializable] - public class Item - { - public string text = ""; //Text for each item - public string key = ""; //Identification key for each item - public bool isOn = false; //Switch is On - - public Item() { } - public Item(string text, string key, bool isOn = false) - { - this.text = text; - this.key = key; - this.isOn = isOn; - } - - public Item Clone() - { - return (Item)MemberwiseClone(); - } - } - [SerializeField] private Item[] items; //All items - - public Color itemsTextColor = Color.black; //Text color of all items - - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the seleted (Also local value is always overwritten). It is better not to use it when dynamically changing items (It becomes incompatible with saved value). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem items; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent> { } //key, isOn - public ResultHandler OnResult; - - [Serializable] public class ValueChangedHandler : UnityEvent { } //key, isOn - public ValueChangedHandler OnValueChanged; - - [Serializable] public class CancelHandler : UnityEvent> { } //key, isOn - public CancelHandler OnCancel; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SWITCH_PREF = "_switches"; //For all switches on/off - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_switches'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SWITCH_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - Param param = Param.GetPlayerPrefs(SaveKey); - SetOn(param); - } - - //Save local values manually. - //・To be saved value is only the 'key & value' pairs (Dictionary ). - public void SavePrefs() - { - Dictionary dic = items.ToDictionary(e => e.key, e => e.isOn.ToString()); //Duplicate key is not allowed. - XPlayerPrefs.SetDictionary(SaveKey, dic); //compatible 'Param' class - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Convert the local on/off state to Dictionary - //・If saveValue is true, it will be automatically saved. - public Dictionary CurrentValue { - get { return items.ToDictionary(e => e.key, e => e.isOn); } - set { - SetOn(value); - if (saveValue) - SavePrefs(); - } - } - - //Propeties - public string[] Texts { - get { return items.Select(e => e.text).ToArray(); } - } - - public string[] Keys { - get { return items.Select(e => e.key).ToArray(); } - } - - public bool[] IsOn { - get { return items.Select(e => e.isOn).ToArray(); } - } - - //Create arrays to be arguments of dialogs at once. - private void GetItemArrays(out string[] texts, out string[] keys, out bool[] checkedItems) - { - texts = new string[items.Length]; - keys = new string[items.Length]; - checkedItems = new bool[items.Length]; - for (int i = 0; i < items.Length; i++) - { - texts[i] = items[i].text; - keys[i] = items[i].key; - checkedItems[i] = items[i].isOn; - } - } - - //Param -> local values - private void SetOn(Param param) - { - if (param == null) - return; - - foreach (var item in param) - { - if (keyToIndex.ContainsKey(item.Key)) - { - bool value; - if (bool.TryParse(item.Value, out value)) - items[keyToIndex[item.Key]].isOn = value; - } - } - } - - //Dictionary -> local values - private void SetOn(Dictionary dic) - { - if (dic == null) - return; - - foreach (var item in dic) - { - if (keyToIndex.ContainsKey(item.Key)) - items[keyToIndex[item.Key]].isOn = item.Value; - } - } - - - //Set items dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //(*) The key becomes the index of string type. - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※キー(key)は文字列型のインデクスになる。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(string[] texts, bool isOn) - { - if (texts == null) - return; - - items = new Item[texts.Length]; - for (int i = 0; i < texts.Length; i++) - items[i] = new Item(texts[i], i.ToString(), isOn); //key is empty -> index (string type) - - MakeKeyToIndexTable(); - } - - //・overload (For callback registration in the inspector) - //・All values are off. - public void SetItem(string[] texts) - { - SetItem(texts, false); //all off - } - - //Set items dynamically (current items will be overwritten) - //(*) When changed dynamically, it is inconsistent with the value saved in PlayerPrefs (better to use saveValue is false). - //(*) Empty and duplication are not checked. - //(*) localization will be incompatible. - // - //動的にアイテムを設定する(現在のアイテムは上書き) - //※動的にアイテム変更した場合、保存データ(PlayerPrefs)と互換性が無くなるので注意(saveValue オプションはオフで使う方が良い)。 - //※空や重複データはチェックされないので注意。 - //※ローカライズデータは互換性が無くなるので注意。 - public void SetItem(Item[] items) - { - if (items == null) - return; - - this.items = items; - MakeKeyToIndexTable(); - } - - - //The values for reset. - private Item[] initValue; - - //Store the values of the inspector. - private void StoreInitValue() - { - initValue = (Item[])items.Clone(); - for (int i = 0; i < items.Length; i++) - initValue[i] = items[i].Clone(); - } - - //Restore the values of the inspector and delete PlayerPrefs key. - public void ResetValue() - { - items = (Item[])initValue.Clone(); - for (int i = 0; i < initValue.Length; i++) - items[i] = initValue[i].Clone(); - - MakeKeyToIndexTable(); - DeletePrefs(); - } - - - //'key -> index' convert table - private Dictionary keyToIndex = new Dictionary(); - - //Make 'key -> index' table - private void MakeKeyToIndexTable() - { - keyToIndex.Clear(); - for (int i = 0; i < items.Length; i++) - { - if (!string.IsNullOrEmpty(items[i].key)) - keyToIndex[items[i].key] = i; - } - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (items.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - else - { - if (keyToIndex.Count != items.Length) - Debug.LogError("[" + gameObject.name + "] There is empty or duplicate 'Key'."); - - HashSet set = new HashSet(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.text)) - set.Add(item.text); - } - if (set.Count != items.Length) - Debug.LogWarning("[" + gameObject.name + "] There is empty or duplicate 'Text'."); - } - - //Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - //Note: Search only within the same type. - SwitchDialogController[] objs = FindObjectsOfType(); - if (objs.Length > 1) - { - HashSet set = new HashSet(objs.Select(e => e.gameObject.name).ToArray()); - if (set.Count != objs.Length) - Debug.LogError("[" + gameObject.name + "] There is duplicate 'gameObject.name'."); - } - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing Items, it is better not to use it because it is incompatible. - //※動的にItemsを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], language, items[i].text); - if (initValue != null && i < initValue.Length) - initValue[i].text = items[i].text; - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - MakeKeyToIndexTable(); - ApplyLocalize(); - StoreInitValue(); - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("SwitchDialogController.Show called"); -#elif UNITY_ANDROID - string[] texts; string[] keys; bool[] checkedItems; - GetItemArrays(out texts, out keys, out checkedItems); - - AndroidPlugin.ShowSwitchDialog( - title, - message, - texts, - keys, - checkedItems, - itemsTextColor, - gameObject.name, "ReceiveResult", "ReceiveChanged", "ReceiveCancel", - okButton, cancelButton, - style); -#endif - } - - //Set items dynamically and show dialog (current items will be overwritten). - //Note: When changed dynamically, it is inconsistent with the value saved in Playerprefs (better to use saveValue is false). - //Note: Empty and duplication are not checked. - public void Show(string[] texts) - { - SetItem(texts, false); //all off - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - Param param = Param.Parse(result); //Parse: "key1=value1\nkey2=value2" -> same as Dictionary (Param) - if (param == null) - return; - - if (saveValue) - { - SetOn(param); - Param.SetPlayerPrefs(SaveKey, param); - PlayerPrefs.Save(); - } - - if (OnResult != null) - { - try { - OnResult.Invoke(param.Select(e => new { k = e.Key, v = bool.Parse(e.Value) }).ToDictionary(a => a.k, a => a.v)); - } - catch (Exception) { } - } - } - - //Returns value when switch pressed. - public void ReceiveChanged(string result) - { - if (OnValueChanged != null) - { - string[] arr = result.Split('='); - bool isOn; - if (bool.TryParse(arr[1], out isOn)) - OnValueChanged.Invoke(arr[0], isOn); - } - } - - //Returns value when 'Cancel' pressed or closed. (= initial value) - private void ReceiveCancel(string result) - { - if (result != "CANCEL_DIALOG" && result != "CLOSE_DIALOG") - return; - - if (OnCancel != null) - OnCancel.Invoke(CurrentValue); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SwitchDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SwitchDialogController.cs.meta deleted file mode 100644 index 7277dd7e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/SwitchDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 756c8bae0dc0a2646a22969cab1ec978 -timeCreated: 1516266743 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/TimePickerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/TimePickerController.cs deleted file mode 100644 index 133f0356..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/TimePickerController.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// TimePicker Dialog Controller - ///・Note: Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// (Datetime format) - /// https://developer.android.com/reference/java/text/SimpleDateFormat.html - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class TimePickerController : MonoBehaviour - { - //Inspector Settings - public string defaultTime = ""; //When it is empty, it is the current time. - public string resultTimeFormat = "H:mm"; //Java Datetime format. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //time string - public ResultHandler OnResult; - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("DatePickerController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowTimePickerDialog( - defaultTime, - resultTimeFormat, - gameObject.name, - "ReceiveResult", - style); -#endif - } - - //Set time string dynamically and show dialog (current time string will be overwritten) - public void Show(string defaultTime) - { - this.defaultTime = defaultTime; - Show(); - } - - - //Returns value when 'OK' pressed. - private void ReceiveResult(string result) - { - if (OnResult != null) - OnResult.Invoke(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/TimePickerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/TimePickerController.cs.meta deleted file mode 100644 index d6a39698..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/TimePickerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 50b3925ef07204945800a22808c44626 -timeCreated: 1516265065 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/ToastController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/ToastController.cs deleted file mode 100644 index 9606977d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/ToastController.cs +++ /dev/null @@ -1,122 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Toast Controller - /// - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// - public class ToastController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - [Multiline] public string message = "Message"; //Message to be displayed on Toast. - public bool longDuration = false; //Display time is long (true = 3.5s / false = 2.0s). - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string messageID = "message"; - } - public LocalizeData localize; - -#region Properties and Local values Section - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - message = localize.localizeResource.Text(localize.messageID, message); - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing message, it is better not to use it because it is incompatible. - //※動的に message を変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - message = localize.localizeResource.Text(localize.messageID, language, message); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show Toast with local message - public void Show() - { -#if UNITY_EDITOR - Debug.Log("ToastController.Show called : " + message); -#elif UNITY_ANDROID - AndroidPlugin.ShowToast(message, longDuration); -#endif - } - - //Set message dynamically and show (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //Set message and longDuration dynamically, and show (current message will be overwritten) - public void Show(string message, bool longDuration) - { - this.message = message; - this.longDuration = longDuration; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message, bool longDuration) - { - if (message != null) - Show(message.Text, longDuration); - } - - - //Force close Toast - public void Cancel() - { -#if UNITY_EDITOR - Debug.Log("ToastController.Cancel called"); -#elif UNITY_ANDROID - AndroidPlugin.CancelToast(); -#endif - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/ToastController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/ToastController.cs.meta deleted file mode 100644 index e175e205..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/ToastController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 4316387d07040284094307887ef41918 -timeCreated: 1516178784 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/VolumeSliderDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/VolumeSliderDialogController.cs deleted file mode 100644 index f8682e40..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/VolumeSliderDialogController.cs +++ /dev/null @@ -1,395 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Audio; - -namespace FantomLib -{ - /// - /// Volume Slider Dialog Controller - /// - /// Software Volume operation of the AudioMixer in the Slider Dialog - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#VolumeSliderDialogController - ///・Register the exporse parameter name of the AudioMixer and the AudioSource for preview playback as items in the inspector. - ///・On the Silder Dialog, express the software volume with 0~100 -> convert to AudioMixer: -80~0db - ///(*) The message character string (message) and the buttons are not displayed when the item does not fit in the dialog (exclusive to the scrolling display). - /// In that case, you will only be able to display the button if you lose the message (to empty("")): Android dialog specification(?). - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveVolume), it is better to give a specific save name (saveKey) individually. - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - /// スライダーダイアログでミキサーの音量操作をするスクリプト - /// http://fantom1x.blog130.fc2.com/blog-entry-281.html#VolumeSliderDialogController - ///・インスペクタにミキサーのエクスポーズパラメーター名とプレビュー再生するソースをアイテムとして登録する。 - ///・ダイアログでは音量を 0~100 で表現する(→ ミキサー:-80~0db に変換する)。 - ///※メッセージ文字列(message)、決定ボタンはアイテムがダイアログに収まらないとき表示されないので注意(スクロール表示に専有される)。 - /// その場合、メッセージを無くす(空文字("")にする)とボタンのみ表示できるようになる:Androidダイアログの仕様(?)。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveVolume)をするときは、なるべく固有の保存名(saveKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class VolumeSliderDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public AudioMixer mixer; //AudioMixer to control the volume //ボリュームをコントロールするミキサー - - public string title = "Sound Volume Setting"; //Dialog title //音量の設定 - [Multiline] public string message = "You can preview play by moving the slider."; //Dialog message (It should be empty when overflowing) //スライダーを動かすとプレビュー再生できます。 - public Color itemTextColor = Color.black; //Text color of all items - public string okButton = "OK"; //Text of 'OK' button. - public string cancelButton = "Cancel"; //Text of 'Cancel' button. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; - - public bool showToast = true; //Display on toast when receiving results. //結果受信時にトーストで表示する。 - - public bool saveVolume = true; //Save the software volume (PlayerPrefs) //音量を保存する - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. //固有の保存名(PlayerPrefs のキー) - - - //Item parameters for Slider Dialog - //スライダーのアイテムの情報クラス - [Serializable] - public class SliderItem - { - public string key; //Returns key and Expose parameter name used in Slider Dialog //ダイアログで使用するキー&エクスポーズパラメーター名(※スライダーで音量コールバックするときには必要) - public string text; //Display text in dialog //ダイアログでの表示テキスト - public AudioSource source; //AudioSource to preview playback (Set in the inspector) //プレビュー再生するソース(インスペクタで設定する) - [Range(0, 100)] public int volume = 50; //Software volume: 0~100 //音量:0~100 で表現 - - public SliderItem() { } - - public SliderItem(string key, string text, int volume) - { - this.key = key; - this.text = text; - this.volume = volume; - } - } - - //Slider Dialog Items - //スライダーのアイテムたち - [SerializeField] - private SliderItem[] items = new SliderItem[] { - new SliderItem("master", "Master", 100), //マスター - new SliderItem("bgm", "Music", 50), //音楽 - new SliderItem("se", "Effect", 50), //効果音 - new SliderItem("voice", "Voice", 50), //ボイス - }; - - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string okButtonID = "okButton"; - public string cancelButtonID = "cancelButton"; - - [Serializable] - public class LocalizeItem - { - public LocalizeStringResource localizeResource; - public string[] textID; - } - public LocalizeItem items; - } - public LocalizeData localize; - -#region PlayerPrefs Section - - //PlayerPrefs Key (It is used only when saveKey is empty) - const string VOLUME_PREF = "_volume"; //add name (PlayerPrefs) - - //Saved key in PlayerPrefs - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + VOLUME_PREF : saveKey; } - } - - //Set a software volume to PlayerPrefs (*) It does not affect the current software volume - //外部からの設定保存(保存された PlayerPrefs のみ更新:現在の音量には影響しない) - public void SetPrefs(Dictionary pref) - { - if (pref != null && pref.Count > 0) - XPlayerPrefs.SetDictionary(SaveKey, pref); - } - -#endregion - -#region Properties and Local values Section - - //Generate arrays to be arguments of Slider Dialog - //ダイアログの引数にする配列たちを生成する - private void GetItemArrays(out string[] keys, out string[] texts, out float[] volumes, out int[] revert) - { - keys = new string[items.Length]; - texts = new string[items.Length]; - volumes = new float[items.Length]; - revert = new int[items.Length]; - for (int i = 0; i < items.Length; i++) - { - keys[i] = items[i].key; - texts[i] = items[i].text; - volumes[i] = revert[i] = items[i].volume; - } - } - - //key -> SliderItem - //key → オブジェクトを引く辞書 - private Dictionary dic = new Dictionary(); - - //For reset (Save the value of inspector at startup) - //リセット用(起動時のインスペクタの値を保存しておく) - private Dictionary initVolumes = new Dictionary(); //key, volume - - //Set a software volume (Convert to db) - //音量の設定(デシベル変換) - //volume: 0~100 -> -80~0db (AudioMixer) - public void SetVolume(string key, float volume) - { - //Convert to db //デシベル変換 - float val = Mathf.Clamp(volume / 100f, 0.0001f, 1.0f); - float db = 20 * Mathf.Log10(val); - mixer.SetFloat(key, Mathf.Clamp(db, -80.0f, 0.0f)); - - //Store to local //内部にも保持 - if (dic.ContainsKey(key)) - dic[key].volume = (int)Mathf.Clamp(volume, 0, 100); - } - - //Get software volumes - //音量の取得 - public Dictionary GetVolumes() - { - return items.ToDictionary(e => e.key, e => e.volume); - } - - //Reset software volume -> Restore the value (defVolumes) and delete PlayerPrefs - //音量を初期状態(インスペクタで設定した値)に戻す。保存データを消去 - public void ResetVolumes() - { - foreach (var item in initVolumes) - SetVolume(item.Key, item.Value); - - PlayerPrefs.DeleteKey(SaveKey); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - okButton = localize.localizeResource.Text(localize.okButtonID, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], items[i].text); - } - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - okButton = localize.localizeResource.Text(localize.okButtonID, language, okButton); - cancelButton = localize.localizeResource.Text(localize.cancelButtonID, language, cancelButton); - } - - if (localize.items.localizeResource != null) - { - int len = Mathf.Min(items.Length, localize.items.textID.Length); - for (int i = 0; i < len; i++) - { - items[i].text = localize.items.localizeResource.Text(localize.items.textID[i], language, items[i].text); - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); //Localize text - - //Load the software volume - //保存された音量の読み込み - Dictionary pref = null; - if (saveVolume) - pref = XPlayerPrefs.GetDictionary(SaveKey); //nothing -> null //無いとき=null; - - foreach (var item in items) - { - dic[item.key] = item; //Register in dictionary with key //キーで辞書に登録 - initVolumes[item.key] = item.volume; //Save the value of inspector at startup //起動時のインスペクタをデフォとする - - //Update stored saved volume //保存された音量があったら更新 - if (pref != null && pref.ContainsKey(item.key)) - item.volume = pref[item.key]; - - SetVolume(item.key, item.volume); - } - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Preview playback (Ignored if the key is not found or already played) - //プレビュー再生(キーが見つからない/既に再生されている場合は無視される) - public void Play(string key) - { - if (dic.ContainsKey(key)) - { - AudioSource src = dic[key].source; - if (src != null && !src.isPlaying) - src.Play(); - } - } - - //Stop preview (Ignored if the key is not found or already stopped) - //プレビュー停止(キーが見つからない/既に停止している場合は無視される) - public void Stop(string key) - { - if (dic.ContainsKey(key)) - { - AudioSource src = dic[key].source; - if (src != null && src.isPlaying) - src.Stop(); - } - } - -#pragma warning disable 0649 //'revertVolumes' is always null, but actually it is used on the Android platform. - //When cancel/closed to revert - private int[] revertVolumes; - - //Call Adroid Slider Dialog for software volume - //音量用のダイアログを開く - public void OpenVolumeDialog() - { -#if UNITY_EDITOR - Debug.Log("VolumeSliderDialogController.OpenVolumeDialog called"); -#elif UNITY_ANDROID - string[] keys; string[] texts; float[] volumes; - GetItemArrays(out keys, out texts, out volumes, out revertVolumes); - AndroidPlugin.ShowSliderDialog( - title, message, - texts, keys, volumes, null, null, null, itemTextColor, - gameObject.name, "ReceiveVolume", "PreviewVolume", "ReceiveCancel", - okButton, cancelButton, style); -#endif - } - - //Alias (overload) - public void Show() - { - OpenVolumeDialog(); - } - - - //When "OK", the setting completion callback handler - //設定完了(「OK」時)のコールバックハンドラ - private void ReceiveVolume(string message) - { -#if UNITY_EDITOR - Debug.Log("ReceiveVolume : " + message); -#endif - if (!string.IsNullOrEmpty(message)) - { - Dictionary pref = new Dictionary(); //For save //音量の保存用(アイテムキーと音量のペアで保存) - string[] arr = message.Split('\n'); - string str = ""; //for toast message - for (int i = 0; i < arr.Length && i < items.Length; i++) - { - string[] param = arr[i].Split('='); - items[i].volume = (param.Length > 1) ? int.Parse(param[1]) : int.Parse(param[0]); - pref[items[i].key] = items[i].volume; //item key and software volume pair //アイテムキーと音量のペア - str += (i > 0 ? "\n" : "") + items[i].text + " : " + items[i].volume; - } - - if (showToast) - { -#if !UNITY_EDITOR && UNITY_ANDROID - AndroidPlugin.ShowToast(str); -#endif - } - - if (saveVolume && pref.Count > 0) - { - SetPrefs(pref); //Save the volume with item key and volume pair //アイテムのキーと音量のペアで音量を保存 - PlayerPrefs.Save(); - } - } - } - - //Preview playback callback handler ('key' required) - //プレビュー再生コールバックハンドラ(キーが必要) - private void PreviewVolume(string message) - { -#if UNITY_EDITOR - Debug.Log("PreviewVolume : " + message); -#endif - if (!string.IsNullOrEmpty(message)) - { - string[] param = message.Split('='); //"key=value" format only //key=value の形式 - if (param.Length > 1) - { - //Select AudioSource from the key - //スライダーのキーから AudioSource を選択 - string key = param[0]; - Play(key); - - //Set a software volume - //音量設定 - float vol = float.Parse(param[1]); - SetVolume(key, vol); - } - } - } - - //When cancel or closed. Revert volumes. - private void ReceiveCancel(string message) - { - if (message != "CANCEL_DIALOG" && message != "CLOSE_DIALOG") - return; - - if (revertVolumes != null) - { - for (int i = 0; i < revertVolumes.Length; i++) - SetVolume(items[i].key, revertVolumes[i]); - } - } - } - -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/VolumeSliderDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/VolumeSliderDialogController.cs.meta deleted file mode 100644 index 6607802b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/VolumeSliderDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b3eaa184c8b1f0046b75690a7b943500 -timeCreated: 1511188267 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoDialogController.cs deleted file mode 100644 index f9bcc743..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoDialogController.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Yes/No Dialog Controller - /// - ///・The value of the callback is 'yesValue' when it is a 'Yes' button pressed, and becomes 'noValue' when it is a 'No' button pressed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///・「はい」ボタンのときは yesValue、「いいえ」ボタンのときは noValue がコールバックに返される。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class YesNoDialogController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - public string yesButton = "OK"; //Text of 'Yes' button. - public string yesValue = "yes"; //Callback value when 'Yes' pressed. - public string noButton = "Cancel"; //Text of 'No' button. - public string noValue = "no"; //Callback value when 'No' pressed. - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string yesButtonID = "yesButton"; - public string noButtonID = "noButton"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class YesHandler : UnityEvent { } //yesValue - public YesHandler OnYes; - - [Serializable] public class NoHandler : UnityEvent { } //noValue - public NoHandler OnNo; - -#region Properties and Local values Section - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - yesButton = localize.localizeResource.Text(localize.yesButtonID, yesButton); - noButton = localize.localizeResource.Text(localize.noButtonID, noButton); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - yesButton = localize.localizeResource.Text(localize.yesButtonID, language, yesButton); - noButton = localize.localizeResource.Text(localize.noButtonID, language, noButton); - } - } - - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("YesNoDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowDialog( - title, - message, - gameObject.name, "ReceiveResult", - yesButton, yesValue, - noButton, noValue, - style); -#endif - } - - //Set message dynamically and show dialog (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - - - //Returns value when button pressed. - private void ReceiveResult(string result) - { - if (result == yesValue) - { - if (OnYes != null) - OnYes.Invoke(yesValue); - } - else if (result == noValue) - { - if (OnNo != null) - OnNo.Invoke(noValue); - } - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoDialogController.cs.meta deleted file mode 100644 index 4460b452..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 3fd9af66fb0e06341b18740e113c16bf -timeCreated: 1516177251 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoWithCheckBoxDialogController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoWithCheckBoxDialogController.cs deleted file mode 100644 index d13435ea..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoWithCheckBoxDialogController.cs +++ /dev/null @@ -1,265 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Yes/No with CheckBox Dialog Controller - /// - ///・The value of the callback is 'yesValue' when it is a Yes button pressed, and becomes 'noValue' when it is a No button pressed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveChecked), it is better to give a specific save name (saveCheckedKey) individually - /// (By default it is saved as GameObject.name [*using PlayerPrefs], so the same name across the scene, it will be overwritten). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///・「はい」ボタンのときは yesValue、「いいえ」ボタンのときは noValue がコールバックに返される。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - ///※値の保存(saveChecked)をするときは、なるべく固有の保存名(saveCheckedKey)を設定した方が良い - ///(デフォルトではGameObject名で保存されるため[※PlayerPrefs を利用]、シーンをまたがって同じ名前があると上書きされてしまう)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class YesNoWithCheckBoxDialogController : SavedCheckedBehaviour, ILocalizable - { - //Inspector Settings - public string title = "Title"; //Dialog title - [Multiline] public string message = "Message"; //Dialog message - public string yesButton = "OK"; //Text of 'Yes' button. - public string yesValue = "yes"; //Callback value when 'Yes' pressed. - public string noButton = "Cancel"; //Text of 'No' button. - public string noValue = "no"; //Callback value when 'No' pressed. - - //CheckBox - [SerializeField] private bool defaultChecked = false; //Default state of CheckBox (If saved, it will be overwritten). - public string checkBoxText = "Remember me"; //Text of CheckBox - public Color checkBoxTextColor = Color.black; //Text color of CheckBox - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Dialog theme - - //Save PlayerPrefs Settings - public bool saveChecked = true; //Whether to save the CheckBox value (Also local value is always overwritten). - - [Serializable] - public enum SaveCondition - { - Both, //'Yes' or 'No' - YesOnly, //Save only when pressed 'Yes'. - NoOnly, //Save only when pressed 'No'. - } - public SaveCondition saveCondition = SaveCondition.YesOnly; - - [SerializeField] private string saveCheckedKey = ""; //When specifying the PlayerPrefs key for CheckBox. - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - public string yesButtonID = "yesButton"; - public string noButtonID = "noButton"; - public string checkBoxTextID = "checkBoxText"; - } - public LocalizeData localize; - - //Callbacks - [Serializable] public class YesHandler : UnityEvent { } //yesValue, checked - public YesHandler OnYes; - - [Serializable] public class NoHandler : UnityEvent { } //noValue, checked - public NoHandler OnNo; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveCheckedKey is empty) - const string CHECKED_PREF = "_checked"; //For Checkbox - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_checked'") - public string SaveCheckedKey { - get { return string.IsNullOrEmpty(saveCheckedKey) ? gameObject.name + CHECKED_PREF : saveCheckedKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - defaultChecked = XPlayerPrefs.GetBool(SaveCheckedKey, defaultChecked); - } - - //Save local values manually. - //・To be saved value is only checked state. - public void SavePrefs() - { - XPlayerPrefs.SetBool(SaveCheckedKey, defaultChecked); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveCheckedKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveCheckedKey); } - } - - //Checked already saved state. When first time (before saving) always false. - public override bool SavedChecked { - get { return XPlayerPrefs.GetBool(SaveCheckedKey, false); } - } - -#endregion - -#region Properties and Local values Section - - //Initial state of CheckBox. - //・If saveChecked is true, it will be automatically saved. - public bool DefaultChecked { - get { return defaultChecked; } - set { - defaultChecked = value; - if (saveChecked) - SavePrefs(); - } - } - - //The value for reset. - private bool initChecked; - - //Store the value of the inspector. - private void StoreInitChecked() - { - initChecked = defaultChecked; - } - - //Restore the value of the inspector and delete PlayerPrefs key. - public void ResetChecked() - { - defaultChecked = initChecked; - DeletePrefs(); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - yesButton = localize.localizeResource.Text(localize.yesButtonID, yesButton); - noButton = localize.localizeResource.Text(localize.noButtonID, noButton); - checkBoxText = localize.localizeResource.Text(localize.checkBoxTextID, checkBoxText); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - yesButton = localize.localizeResource.Text(localize.yesButtonID, language, yesButton); - noButton = localize.localizeResource.Text(localize.noButtonID, language, noButton); - checkBoxText = localize.localizeResource.Text(localize.checkBoxTextID, language, checkBoxText); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - StoreInitChecked(); - - if (saveChecked) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show dialog - public void Show() - { -#if UNITY_EDITOR - Debug.Log("YesNoWithCheckBoxDialogController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowDialogWithCheckBox( - title, - message, - checkBoxText, checkBoxTextColor, - defaultChecked, - gameObject.name, "ReceiveResult", - yesButton, yesValue, - noButton, noValue, - style); -#endif - } - - //Set message dynamically and show dialog (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - - - //Returns value when button pressed. - private void ReceiveResult(string result) - { - bool check = result.EndsWith(", CHECKED_TRUE"); - bool yes = result.StartsWith(yesValue); - bool no = result.StartsWith(noValue); - if (saveChecked) - { - if (saveCondition == SaveCondition.Both || - (saveCondition == SaveCondition.YesOnly && yes) || - (saveCondition == SaveCondition.NoOnly && no)) - { - defaultChecked = check; - SavePrefs(); - } - } - - if (yes) - { - if (OnYes != null) - OnYes.Invoke(yesValue, check); - } - else if (no) - { - if (OnNo != null) - OnNo.Invoke(noValue, check); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoWithCheckBoxDialogController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoWithCheckBoxDialogController.cs.meta deleted file mode 100644 index 9643474c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Dialogs/YesNoWithCheckBoxDialogController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 625ed08a6429cb6499ab86ab599b95fd -timeCreated: 1516184876 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions.meta deleted file mode 100644 index c2dd23a2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 031d1a4846d9101469f7e5fe46a67e0f -folderAsset: yes -timeCreated: 1517282599 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ActionURIOnThisPackageBase.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ActionURIOnThisPackageBase.cs deleted file mode 100644 index e261429f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ActionURIOnThisPackageBase.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Base class that executes ActionURI with URI as its package - /// - /// URI を自身のパッケージとした ActionURI を実行するベースクラス - /// - public abstract class ActionURIOnThisPackageBase : MonoBehaviour - { - //(*) Required override action. - protected virtual string action { - get { return "android.intent.action.VIEW"; } - } - - - // Use this for initialization - protected void Start() - { - - } - - // Update is called once per frame - //protected void Update() - //{ - - //} - - - //Start Action to URI - public virtual void StartAction() - { - string uri = "package:" + Application.identifier; //add scheme -#if UNITY_EDITOR - Debug.Log(name + ".Show : uri = " + uri); -#elif UNITY_ANDROID - AndroidPlugin.StartActionURI(action, uri); -#endif - } - - //Alias - public virtual void Show() - { - StartAction(); - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ActionURIOnThisPackageBase.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ActionURIOnThisPackageBase.cs.meta deleted file mode 100644 index 345e89eb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ActionURIOnThisPackageBase.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b84c666b4cf6753438897cb5c85c7770 -timeCreated: 1521295003 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AndroidActionController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AndroidActionController.cs deleted file mode 100644 index eda27bc5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AndroidActionController.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Android Action Controller - ///・Call the action to Android Native. - ///(*) Note that depending on the action, there are cases where it can not be used depending on authority (security) , URI or file path. - ///(*) In many cases it is better to use ContentInfo.fileUri (standard URI). - /// (Action) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - /// - ///・Android 実機でアクションを実行する。 - ///※アクションによっては権限(セキュリティ)やURI、ファイルのパスによって使えない場合がある。 - ///※ContentInfo.fileUri(標準的な URI)を使った方が良い場合が多い。 - /// (Action) - /// https://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW - /// https://developer.android.com/reference/android/provider/Settings.html#ACTION_ACCESSIBILITY_SETTINGS - /// - public class AndroidActionController : MonoBehaviour - { - //Inspector Settings - public string action = "android.intent.action.VIEW"; - - [Serializable] - public enum ActionType - { - ActionOnly = -1, //No arguments - URI = 0, //Action to URI - ExtraQuery, //Use Extra and Query to action. - Chooser, //Start action with Chooser - UriWithMimeType, //Action to URI with MIME type - } - public ActionType actionType = ActionType.URI; - - //Parameters to give to the action etc. - public string title = ""; - public string uri = ""; - public string extra = "query"; - public string query = "keyword"; - public string mimetype = "text/plain"; - - [Serializable] - public class Extra - { - public string name; - public string value; - } - public Extra[] addExtras; - - -#region Properties and Local values Section - - //Create arrays to be arguments of multiple parameters from addExtras. - private void GetAddExtrasArrays(out string[] names, out string[] values, string extra = "", string query = "") - { - if (string.IsNullOrEmpty(extra)) - { - names = addExtras.Select(e => e.name).ToArray(); - values = addExtras.Select(e => e.value).ToArray(); - } - else - { - names = new string[addExtras.Length + 1]; - values = new string[addExtras.Length + 1]; - names[0] = extra; - values[0] = query; - for (int i = 0; i < addExtras.Length; i++) - { - names[i + 1] = addExtras[i].name; - values[i + 1] = addExtras[i].value; - } - } - } - - //Check empty etc. - private void CheckForErrors() - { - if (string.IsNullOrEmpty(action)) - Debug.LogError("Action is empty."); - - switch (actionType) - { - case ActionType.ActionOnly: - break; - case ActionType.URI: - if (string.IsNullOrEmpty(uri)) - Debug.LogWarning("Uri is empty."); - break; - case ActionType.ExtraQuery: - if (string.IsNullOrEmpty(extra)) - Debug.LogWarning("Extra is empty."); - break; - case ActionType.Chooser: - if (string.IsNullOrEmpty(mimetype)) - Debug.LogWarning("MIME Type is empty."); - break; - case ActionType.UriWithMimeType: - if (string.IsNullOrEmpty(uri)) - Debug.LogWarning("Uri is empty."); - if (string.IsNullOrEmpty(mimetype)) - Debug.LogWarning("MIME Type is empty."); - break; - } - } - -#endregion - - // Use this for initialization - private void Start() - { -#if UNITY_EDITOR - CheckForErrors(); //Check for fatal errors (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start the action to Android - public void StartAction() - { -#if UNITY_EDITOR - Debug.Log("AndroidActionControlloer.StartAction called"); -#elif UNITY_ANDROID - switch (actionType) - { - case ActionType.ActionOnly: - if (addExtras.Length > 0) - { - string[] names; string[] values; - GetAddExtrasArrays(out names, out values); - AndroidPlugin.StartAction(action, names, values); - } - else - AndroidPlugin.StartAction(action); - break; - - case ActionType.URI: - if (addExtras.Length > 0) - { - string[] names; string[] values; - GetAddExtrasArrays(out names, out values); - AndroidPlugin.StartActionURI(action, uri, names, values); - } - else - AndroidPlugin.StartActionURI(action, uri); - break; - - case ActionType.ExtraQuery: - if (addExtras.Length > 0) - { - string[] names; string[] values; - GetAddExtrasArrays(out names, out values, extra, query); - AndroidPlugin.StartAction(action, names, values); - } - else - AndroidPlugin.StartAction(action, extra, query); - break; - - case ActionType.Chooser: - if (addExtras.Length > 0) - { - string[] names; string[] values; - GetAddExtrasArrays(out names, out values, extra, query); - AndroidPlugin.StartActionWithChooser(action, names, values, mimetype, title); - } - else - AndroidPlugin.StartActionWithChooser(action, extra, query, mimetype, title); - break; - - case ActionType.UriWithMimeType: - AndroidPlugin.StartActionURI(action, uri, mimetype); - break; - } -#endif - } - - //Start the action to URI (current value will be overwritten) - public void StartActionURI(string uri) - { - if (actionType != ActionType.URI && actionType != ActionType.UriWithMimeType) - return; - - this.uri = uri; - StartAction(); - } - - //Start the action to URI with MIME type (current value will be overwritten) - public void StartActionUriWithMimeType(string uri, string mimetype) - { - if (actionType != ActionType.UriWithMimeType) - return; - - this.uri = uri; - this.mimetype = mimetype; - StartAction(); - } - - //Start the action to URI with Chooser (current value will be overwritten) - public void StartActionWithChooser(string query) - { - if (actionType != ActionType.Chooser) - return; - - this.query = query; - StartAction(); - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AndroidActionController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AndroidActionController.cs.meta deleted file mode 100644 index 335acf35..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AndroidActionController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: dd85558adcbd7c740a9624afcd3d269b -timeCreated: 1516540751 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AppInstallCheckController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AppInstallCheckController.cs deleted file mode 100644 index 2668d5ce..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AppInstallCheckController.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// App Install Check Controller - /// - /// Check if the package exists on the Android system. - /// When it exists (= installed), it returns the localized application name, version number, version name. - /// You can not get packages that are not published to the Android system (always return false). - ///・Information to be acquired is as follows: - /// ・Localized application name (only if set in the application) - /// ・Version code (Internal number that always increments [integer value]) - /// ・Version name (Character string used as the version [number] to be displayed to the user) - /// https://developer.android.com/studio/publish/versioning.html#appversioning - /// - /// - /// Androidシステムにパッケージが存在するかを確認する。 - /// 存在する(=インストールされている)ときは、ローカライズされたアプリ名、バージョン番号、バージョン名を返す。 - /// Androidシステムに公開されてないパッケージは取得できない(常にfalseが返る)。 - ///・取得される情報は以下の通り - /// ・ローカライズされたアプリ名(アプリで設定されてる場合のみ) - /// ・アプリのバージョン番号(常にインクリメントする内部番号[整数値]) - /// ・アプリのバージョン名(ユーザーに表示するバージョン[番号]として使用される文字列) - /// https://developer.android.com/studio/publish/versioning.html#appversioning - /// - public class AppInstallCheckController : MonoBehaviour - { - //Inspector Settings - public string packageName = "com.android.vending"; //Package name (Applicatin ID) to check - - public bool checkOnStart = false; //Execute check automatically at 'Start()' - - //Callbacks - [Serializable] public class InstalledHandler : UnityEvent { } //app name, version code, version name - public InstalledHandler OnInstalled; //When installed - - public UnityEvent OnNotInstalled; //When not installed - - - - // Use this for initialization - private void Start() - { - if (checkOnStart) - CheckInstall(); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - - //Check if the package exists on the Android system. - public void CheckInstall() - { - if (string.IsNullOrEmpty(packageName)) - return; - -#if UNITY_EDITOR - Debug.Log("AppInstallCheckController.CheckInstall called."); -#elif UNITY_ANDROID - if(AndroidPlugin.IsExistApplication(packageName)) - { - string appName = AndroidPlugin.GetApplicationName(packageName); - int verCode = AndroidPlugin.GetVersionCode(packageName); - string verName = AndroidPlugin.GetVersionName(packageName); - if (OnInstalled != null) - OnInstalled.Invoke(appName, verCode, verName); - } - else - { - if (OnNotInstalled != null) - OnNotInstalled.Invoke(); - } -#endif - } - - //Set packageName dynamically and check install (current packageName will be overwritten) - public void CheckInstall(string packageName) - { - this.packageName = packageName; - CheckInstall(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AppInstallCheckController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AppInstallCheckController.cs.meta deleted file mode 100644 index 412424d3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/AppInstallCheckController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ddc9bc94f3730a54291995761148248b -timeCreated: 1523506231 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ApplicationDetailsSettingsController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ApplicationDetailsSettingsController.cs deleted file mode 100644 index c600cfe6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ApplicationDetailsSettingsController.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Application Details Settings Controller - /// - ///・Open this Application Details settings. - /// - ///・現在アプリの詳細設定画面を開く。 - /// - public class ApplicationDetailsSettingsController : ActionURIOnThisPackageBase - { - protected override string action { - get { return "android.settings.APPLICATION_DETAILS_SETTINGS"; } - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ApplicationDetailsSettingsController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ApplicationDetailsSettingsController.cs.meta deleted file mode 100644 index 66b56ab1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ApplicationDetailsSettingsController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 67f1812629a627a44bdc6078509a14a5 -timeCreated: 1521213535 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BatteryStatusController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BatteryStatusController.cs deleted file mode 100644 index a466dd8b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BatteryStatusController.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Battery Status Controller - /// - ///·Get battery status in detail (Stored in the BatteryInfo class). - ///·Status information is sent when there is a change on the Android system. - ///·BatteryInfo.status is the same as UnityEngine.BatteryStatus (https://docs.unity3d.com/en/current/ScriptReference/BatteryStatus.html). - /// 'status' represents the state of charge of the device (string type). - /// https://developer.android.com/reference/android/os/BatteryManager.html#BATTERY_STATUS_CHARGING - /// 'Health' represents the state of the battery condition (string type). - /// https://developer.android.com/reference/android/os/BatteryManager.html#BATTERY_HEALTH_COLD - ///(*)It is always stopped by 'OnDisable()', 'OnDestroy()', 'OnApplicationQuit()' (Unreleasing listening causes memory leak, so release when not using it). (*) Also released by 'AndroidPlugin.Release()'. - ///(*)Pause/Resume of the application requires no operation (automatically stop/start). - ///(*)Required 'FullPluginOnUnityPlayerActivity' in 'AndroidManifest.xml' (rename and use 'AndroidManifest-FullPlugin~.xml'). - /// - ///・バッテリーのステータスを詳細に取得する(BatteryInfo クラスに格納される)。 - ///・ステータス情報は Androidシステム上で変化のあったときに送られる。 - ///・BatteryInfo.status は UnityEngine.BatteryStatus(https://docs.unity3d.com/ja/current/ScriptReference/BatteryStatus.html) と同じものになる。 - ///「health」とはバッテリーのコンディションを表す(文字列型) - /// GOOD : 良好 - /// OVERHEAT : オーバーヒート - /// DEAD : 故障 - /// OVER_VOLTAGE : 過電圧 - /// UNSPECIFIED_FAILURE : 特定失敗 - /// COLD : 低温 - /// https://developer.android.com/reference/android/os/BatteryManager.html#BATTERY_STATUS_CHARGING - ///「status」とは充電状態を表す(文字列型) - /// CHARGING : 充電中 - /// DISCHARGING : 充電を止めた - /// NOT_CHARGING : 充電中でない - /// FULL : 満タン - /// https://developer.android.com/reference/android/os/BatteryManager.html#BATTERY_HEALTH_COLD - ///※OnDisable(), OnDestroy(), OnApplicationQuit() では必ず停止される(リスニングの未解放はメモリリークの原因となるため、利用しないときは常に解放する)。※AndroidPlugin.Release() でも解放される。 - ///※アプリケーションの Pause(一時停止)/Resume(復帰)では操作不要(自動的に停止・再開される)。 - ///※「FullPluginOnUnityPlayerActivity」を「AndroidManifest.xml」で使う必要がある(「AndroidManifest-FullPlugin~.xml」をリネームして使う)。 - /// - public class BatteryStatusController : MonoBehaviour - { - //Inspector settings - public bool startListeningOnEnable = false; //Automatically start listening with 'OnEnable()' (Always stopped in 'OnDisable()'). //OnEnable() でリスニングを自動で開始する(OnDisable() では常に停止する)。 - - //Callbacks - [Serializable] public class StatusHandler : UnityEvent { } - public StatusHandler OnStatus; - - - // Use this for initialization - private void Start() - { - - } - - private void OnEnable() - { - if (startListeningOnEnable) - StartListening(); - } - - private void OnDisable() - { - StopListening(); - } - - private void OnDestroy() - { - StopListening(); - } - - private void OnApplicationQuit() - { - StopListening(); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start listening for battery information acquisition. - //バッテリーの情報取得のリスニングを開始する - public void StartListening() - { - if (OnStatus == null) - return; -#if UNITY_EDITOR - Debug.Log("BatteryStatusController.StartListening called"); -#elif UNITY_ANDROID - AndroidPlugin.StartBatteryStatusListening(gameObject.name, "ReceiveStatus"); -#endif - } - - //Stop (release) listening for battery information acquisition. - //バッテリーの情報取得のリスニングを停止(解放)する - public void StopListening() - { - if (OnStatus == null) - return; -#if UNITY_EDITOR - Debug.Log("BatteryStatusController.StopListening called"); -#elif UNITY_ANDROID - AndroidPlugin.StopBatteryStatusListening(); -#endif - } - - - //Callback handler for battery information. - private void ReceiveStatus(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - BatteryInfo info = JsonUtility.FromJson(json); - if (OnStatus != null) - OnStatus.Invoke(info); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BatteryStatusController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BatteryStatusController.cs.meta deleted file mode 100644 index d608b715..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BatteryStatusController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f59071276b3587a459431df6ac269a62 -timeCreated: 1519122382 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BluetoothSettingController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BluetoothSettingController.cs deleted file mode 100644 index de18b5cb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BluetoothSettingController.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Bluetooth Setting Controller - ///・Show the dialog that request to enable bluetooth. - /// - ///・Bluetooth の接続要求ダイアログを表示する。 - /// - public class BluetoothSettingController : MonoBehaviour - { - //Callbacks - //Callback when receive result. //結果受信時のコールバック - [Serializable] public class ResultHandler : UnityEvent { } //isOn - public ResultHandler OnResult; - - //Callback when error occurrence. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - -#region Properties and Local values Section - - //Whether necessary permissions are granted. - public bool IsPermissionGranted { - get { -#if UNITY_EDITOR - return true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - return AndroidPlugin.CheckPermission("android.permission.BLUETOOTH"); -#else - return false; -#endif - } - } - -#endregion - - // Use this for initialization - private void Start() - { - if (!IsPermissionGranted) - { - if (OnError != null) - OnError.Invoke("Permission denied: BLUETOOTH"); - } - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Request to enable Bluetooth - public void StartRequest() - { - if (!IsPermissionGranted) - return; -#if UNITY_EDITOR - Debug.Log("BluetoothSettingController.StartRequest called"); -#elif UNITY_ANDROID - AndroidPlugin.StartBluetoothRequestEnable(gameObject.name, "ReceiveResult"); -#endif - } - - - //Callback handler when receive result - private void ReceiveResult(string result) - { - if (result.StartsWith("SUCCESS")) - { - if (OnResult != null) - OnResult.Invoke(true); - } - else if (result.StartsWith("CANCEL")) - { - if (OnResult != null) - OnResult.Invoke(false); - } - else - { - if (OnError != null) - OnError.Invoke(result); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BluetoothSettingController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BluetoothSettingController.cs.meta deleted file mode 100644 index f6dffa52..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/BluetoothSettingController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8c8021efc7b9db04986d423381cbbb39 -timeCreated: 1518188450 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/CpuRateController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/CpuRateController.cs deleted file mode 100644 index 59d6d88c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/CpuRateController.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Listening for CPU Rate information - /// - /// CPU使用率の情報取得のリスニング - /// - public class CpuRateController : MonoBehaviour { - - //Inspector settings - public bool startListeningOnEnable = false; //Automatically start listening with 'OnEnable()' (Always stopped in 'OnDisable()'). //OnEnable() でリスニングを自動で開始する(OnDisable() では常に停止する)。 - - [Range(1, 600)] public float interval = 2f; //Measurement interval [sec] (* The shorter the load the higher) //計測間隔 [秒](※短いほど負荷が高い) - - //Callbacks - [Serializable] public class StatusHandler : UnityEvent { } //CPU 0 ~ n - public StatusHandler OnStatus; - - - // Use this for initialization - private void Start() - { - - } - - private void OnEnable() - { - if (startListeningOnEnable) - StartListening(); - } - - private void OnDisable() - { - StopListening(); - } - - private void OnDestroy() - { - StopListening(); - } - - private void OnApplicationQuit() - { - StopListening(); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start listening for CPU Rate information acquisition. - //CPU使用率の情報取得のリスニングを開始する - public void StartListening() - { - if (OnStatus == null) - return; -#if UNITY_EDITOR - Debug.Log("CpuRateController.StartListening called"); -#elif UNITY_ANDROID - AndroidPlugin.StartCpuRateListening(gameObject.name, "ReceiveStatus", interval); -#endif - } - - //Stop (release) listening for CPU Rate information acquisition. - //CPU使用率の情報取得のリスニングを停止(解放)する - public void StopListening() - { - if (OnStatus == null) - return; -#if UNITY_EDITOR - Debug.Log("CpuRateController.StopListening called"); -#elif UNITY_ANDROID - AndroidPlugin.StopCpuRateListening(); -#endif - } - - - //Callback handler for CPU Rate information. - private void ReceiveStatus(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - string[] items = json.Split('\n'); - CpuRateInfo[] infos = new CpuRateInfo[items.Length]; - - for (int i = 0; i < infos.Length; i++) - { - infos[i] = JsonUtility.FromJson(items[i]); - } - - if (OnStatus != null) - OnStatus.Invoke(infos); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/CpuRateController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/CpuRateController.cs.meta deleted file mode 100644 index b1d4586d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/CpuRateController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c67b06b5fa1e07f4ca26e97b92d6f136 -timeCreated: 1532966729 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DeviceCredentialsController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DeviceCredentialsController.cs deleted file mode 100644 index aa60048e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DeviceCredentialsController.cs +++ /dev/null @@ -1,178 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Device Credentials Controller (API Level 21 or higher) - /// - ///(*) The authentication method depends on user's setting (fingerprint, pattern, PIN, password, etc.). - ///(*) Only 'OnSuccess' callback is registered by method just before opening Device Credentials (Since only the public method can be used in the inspector, which is not good security). - /// It is also deleted when it is closed (for security, prevent malfunction reasons). - ///(*) Authentication works only in a unique execution (Judge only one session. Multiple (duplication) is not accepted). - ///(*) The session timeout (invalid) at a certain time (SESSION_TIMEOUT). This session timeout is different from Android's authentication system (timeout in this script.). - ///(*) message (description character string) may not be reflected by the device (because the system rewrites depending on the state). - ///(*) Title and message are basically empty (because messages are set automatically by system language). - /// - /// - ///※認証方法はユーザーの設定による(指紋・パターン・PIN・パスワード等)。 - ///※認証画面を開く直前に、「OnSuccess」コールバックのみメソッドによる登録を必要としている(インペクタでは public メソッドしか使えず、セキュリティ的に良くないため)。 - /// また閉じられたときに必ず削除される(セキュリティや誤動作を防ぐため)。 - ///※認証はユニークな動作となる(唯一のセッションのみ判定する。複数(重複)は受け付けない)。 - ///※一定時間で(SESSION_TIMEOUT)でセッションがタイムアウト(無効)になる。このセッションがタイムアウトは Andrdoiの認証システムのものとは別のものである(このスクリプト内でのタイムアウト)。 - ///※message(メッセージ文字列)はデバイスによって反映されない場合がある(状況によってシステムが書き換えるため)。 - ///※title, message は基本的に空で良い(システム言語によって自動でメッセージが設定されるため)。 - /// - public class DeviceCredentialsController : MonoBehaviour - { - //Inspector Settings - public string title = ""; //Empty is system default title (*empty recommended) - [Multiline] public string message = ""; //Empty is system default message (*empty recommended) - - //Callbacks - //(*) When registering a method in UnityEvent with the inspector, it is used in 'public' scope and it is not good security, so it changed to other scope. - //※インペクタで UnityEvent にメソッドを登録する場合、public スコープでの利用となり、セキュリティ的に良くないので、スコープを変更している。 - private UnityEvent OnSuccess = new UnityEvent(); //ok (authorized) - - public UnityEvent OnFailure; //unauthorized, cancel - - [Serializable] public class ErrorHandler : UnityEvent { } //error status - public ErrorHandler OnError; - -#region Properties and Local values Section - - const float SESSION_TIMEOUT = 5f * 60; //Time to automatically cancel session [second] - static long resetTimeTicks; //Force reset time (tick = 1/10000000[sec]) - static volatile string sessionID; //Generated sessionID each time (also a unique execution flag.) - static HashSet check = new HashSet(); //Duplication check - - //Register the callback of 'OnSuccess'. - //(*) When the authentication screen is closed, it is always deleted. - //※認証画面が閉じられたら、必ず削除される。 - internal void SetOnSuccess(UnityAction OnSuccess) - { - if (OnSuccess != null && !check.Contains(OnSuccess)) - { - check.Add(OnSuccess); - this.OnSuccess.AddListener(OnSuccess); - } - } - - //Unregister all callbacks of 'OnSuccess'. - //'OnSuccuss'コールバックを全て削除する。 - internal void RemoveOnSuccessAll() - { - OnSuccess.RemoveAllListeners(); - check.Clear(); - } - - //Set sessionID and timeout time (resetTimeTicks) - //セッションIDとタイムアウト時刻をセットする - private void StartSession() - { -#if UNITY_ANDROID - sessionID = AndroidPlugin.GenerateSessionID(); -#endif - resetTimeTicks = (long)(SESSION_TIMEOUT * TimeSpan.TicksPerSecond) + DateTime.Now.Ticks; - } - - //Delete sessionID and 'OnSuccuss' callback. - //セッションIDと'OnSuccuss'コールバックを削除する。 - private void ResetSession() - { - sessionID = ""; - resetTimeTicks = 0; - RemoveOnSuccessAll(); - } - - //Check session timeout. - private bool CheckTimeout() - { - return (resetTimeTicks < DateTime.Now.Ticks); - } - -#endregion - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - - //Show confirm device credentials screen - //(*) It is necessary to register 'OnSuccess' with method in advance. - //(*) The support status is always checked (because the system setting may be changed dynamically) - // - //※事前にメソッドで「OnSuccess」を登録する必要がある。 - //※サポート状態は常にチェックされる(動的にシステム設定が変更される可能性があるため) - internal void Show() - { - if (!string.IsNullOrEmpty(sessionID) && !CheckTimeout()) - return; -#if UNITY_EDITOR - Debug.Log(name + ".Show called"); -#elif UNITY_ANDROID - StartSession(); - AndroidPlugin.ShowDeviceCredentials(gameObject.name, "ReceiveResult", sessionID, title, message); -#endif - } - - //Set 'OnSuccess' callback and show (overload) - //「OnSuccess」を登録して、認証画面を開く。 - internal void Show(UnityAction OnSuccess) - { - SetOnSuccess(OnSuccess); - Show(); - } - - - //Receive the result - private void ReceiveResult(string json) - { - if (string.IsNullOrEmpty(json) || string.IsNullOrEmpty(sessionID) - || CheckTimeout()) - { - if (OnError != null) - OnError.Invoke("Invalid session or timeout."); - - ResetSession(); - return; - } - - CredentialInfo info = JsonUtility.FromJson(json); - if (info.sessionID == sessionID) - { - switch (info.status) - { - case "SUCCESS_CREDENTIALS": //ok - if (OnSuccess != null) - OnSuccess.Invoke(); - break; - case "UNAUTHORIZED_CREDENTIALS": //including cancel - if (OnFailure != null) - OnFailure.Invoke(); - break; - default: - if (OnError != null) - OnError.Invoke(info.status); //not supported, secure off - break; - } - } - - //Unregister each time //毎回削除する - ResetSession(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DeviceCredentialsController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DeviceCredentialsController.cs.meta deleted file mode 100644 index 20a07a4b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DeviceCredentialsController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 13aff3541c8d07f4da487d28b0bbf147 -timeCreated: 1521820294 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DialerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DialerController.cs deleted file mode 100644 index c81d4b37..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DialerController.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Dialer Controller - /// - public class DialerController : MonoBehaviour - { - //Inspector Settings - public string phoneNumber = "0123456789"; //not necessary: '-' (will be removed) - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show Dialer with local number - public void Show() - { - phoneNumber = phoneNumber.Replace("-", ""); - string uri = "tel:" + phoneNumber; -#if UNITY_EDITOR - Debug.Log(name + ".Show : uri = " + uri); -#elif UNITY_ANDROID - AndroidPlugin.StartActionURI("android.intent.action.DIAL", uri); -#endif - } - - //Set phoneNumber dynamically and show Dialer (current phoneNumber will be overwritten) - public void Show(string phoneNumber) - { - this.phoneNumber = phoneNumber; - Show(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DialerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DialerController.cs.meta deleted file mode 100644 index 1418215a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/DialerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f98be02f74c7e5c42ba9096e39888efe -timeCreated: 1521431054 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor.meta deleted file mode 100644 index 58ca7a9f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5b762b4b60944434e853f7986d48d6d0 -folderAsset: yes -timeCreated: 1517282633 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/AndroidActionControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/AndroidActionControllerEditor.cs deleted file mode 100644 index b4306bc3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/AndroidActionControllerEditor.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(AndroidActionController))] - public class AndroidActionControllerEditor : Editor - { - SerializedProperty action; - GUIContent actionLabel = new GUIContent("Action"); - SerializedProperty actionType; - GUIContent actionTypeLabel = new GUIContent("Action Type"); - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty uri; - GUIContent uriLabel = new GUIContent("URI"); - SerializedProperty extra; - GUIContent extraLabel = new GUIContent("Extra"); - SerializedProperty query; - GUIContent queryLabel = new GUIContent("Query"); - SerializedProperty mimetype; - GUIContent mimetypeLabel = new GUIContent("MIME Type"); - - SerializedProperty addExtras; - GUIContent addExtrasLabel = new GUIContent("Add Extras"); - - private void OnEnable() - { - action = serializedObject.FindProperty("action"); - actionType = serializedObject.FindProperty("actionType"); - title = serializedObject.FindProperty("title"); - uri = serializedObject.FindProperty("uri"); - extra = serializedObject.FindProperty("extra"); - query = serializedObject.FindProperty("query"); - mimetype = serializedObject.FindProperty("mimetype"); - addExtras = serializedObject.FindProperty("addExtras"); - } - - int actionStringIndex = 0; - - public override void OnInspectorGUI() - { - var obj = target as AndroidActionController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - - //'Action' input support - EditorGUI.BeginChangeCheck(); - actionStringIndex = EditorGUILayout.Popup("(Action Input Support)", actionStringIndex, ActionString.ConstantValues); - if (EditorGUI.EndChangeCheck()) - { - if (0 < actionStringIndex && actionStringIndex < ActionString.ConstantValues.Length) - obj.action = ActionString.ConstantValues[actionStringIndex]; - } - - EditorGUILayout.PropertyField(action, actionLabel, true); - EditorGUILayout.PropertyField(actionType, actionTypeLabel, true); - - - switch (obj.actionType) - { - case AndroidActionController.ActionType.ActionOnly: - EditorGUILayout.PropertyField(addExtras, addExtrasLabel, true); - break; - - case AndroidActionController.ActionType.URI: - EditorGUILayout.PropertyField(uri, uriLabel, true); - EditorGUILayout.PropertyField(addExtras, addExtrasLabel, true); - break; - - case AndroidActionController.ActionType.ExtraQuery: - EditorGUILayout.PropertyField(extra, extraLabel, true); - EditorGUILayout.PropertyField(query, queryLabel, true); - EditorGUILayout.PropertyField(addExtras, addExtrasLabel, true); - break; - - case AndroidActionController.ActionType.Chooser: - EditorGUILayout.PropertyField(extra, extraLabel, true); - EditorGUILayout.PropertyField(query, queryLabel, true); - EditorGUILayout.PropertyField(mimetype, mimetypeLabel, true); - EditorGUILayout.PropertyField(title, titleLabel, true); - EditorGUILayout.PropertyField(addExtras, addExtrasLabel, true); - break; - - case AndroidActionController.ActionType.UriWithMimeType: - EditorGUILayout.PropertyField(uri, uriLabel, true); - EditorGUILayout.PropertyField(mimetype, mimetypeLabel, true); - break; - } - - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/AndroidActionControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/AndroidActionControllerEditor.cs.meta deleted file mode 100644 index 3e03e8ae..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/AndroidActionControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2a7ce0184df03a147a3d7386c7bb99df -timeCreated: 1516540826 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/GalleryPickControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/GalleryPickControllerEditor.cs deleted file mode 100644 index ba283f9e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/GalleryPickControllerEditor.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(GalleryPickController))] - public class GalleryPickControllerEditor : Editor - { - SerializedProperty pickType; - GUIContent pickTypeLabel = new GUIContent("Pick Type"); - - SerializedProperty OnResult; - SerializedProperty OnResultInfo; - SerializedProperty OnResultVideoInfo; - SerializedProperty OnError; - - private void OnEnable() - { - pickType = serializedObject.FindProperty("pickType"); - - OnResult = serializedObject.FindProperty("OnResult"); - OnResultInfo = serializedObject.FindProperty("OnResultInfo"); - OnResultVideoInfo = serializedObject.FindProperty("OnResultVideoInfo"); - OnError = serializedObject.FindProperty("OnError"); - } - - public override void OnInspectorGUI() - { - var obj = target as GalleryPickController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(pickType, pickTypeLabel, true); - - switch (obj.pickType) - { - case GalleryPickController.PickType.Image: - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnResultInfo, true); - EditorGUILayout.PropertyField(OnError, true); - break; - - case GalleryPickController.PickType.Video: - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnResultVideoInfo, true); - EditorGUILayout.PropertyField(OnError, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/GalleryPickControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/GalleryPickControllerEditor.cs.meta deleted file mode 100644 index 4c3ad8a0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/GalleryPickControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d1267822b01a821409956d148dce400a -timeCreated: 1527233909 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/MarketSearchControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/MarketSearchControllerEditor.cs deleted file mode 100644 index a2e3fbf9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/MarketSearchControllerEditor.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(MarketSearchController))] - public class MarketSearchControllerEditor : Editor - { - SerializedProperty searchType; - GUIContent searchTypeLabel = new GUIContent("Search Type"); - SerializedProperty packageName; - GUIContent packageNameLabel = new GUIContent("Package Name"); - SerializedProperty keyword; - GUIContent keywordLabel = new GUIContent("Keyword"); - - private void OnEnable() - { - searchType = serializedObject.FindProperty("searchType"); - packageName = serializedObject.FindProperty("packageName"); - keyword = serializedObject.FindProperty("keyword"); - } - - public override void OnInspectorGUI() - { - var obj = target as MarketSearchController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(searchType, searchTypeLabel, true); - - switch (obj.searchType) - { - case MarketSearchController.SearchType.PackageName: - EditorGUILayout.PropertyField(packageName, packageNameLabel, true); - break; - - case MarketSearchController.SearchType.Keyword: - EditorGUILayout.PropertyField(keyword, keywordLabel, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/MarketSearchControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/MarketSearchControllerEditor.cs.meta deleted file mode 100644 index 8e1786df..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/MarketSearchControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 08b8a06294907824e8fde2bbb554d1e0 -timeCreated: 1523198497 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/NotificationControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/NotificationControllerEditor.cs deleted file mode 100644 index dca1868b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/NotificationControllerEditor.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(NotificationController))] - public class NotificationControllerEditor : Editor - { - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty message; - GUIContent messageLabel = new GUIContent("Message"); - SerializedProperty tapAction; - GUIContent tapActionLabel = new GUIContent("Tap Action"); - SerializedProperty url; - GUIContent urlLabel = new GUIContent("URL"); - SerializedProperty iconName; - GUIContent iconNameLabel = new GUIContent("Icon Name"); - SerializedProperty idTag; - GUIContent idTagLabel = new GUIContent("ID Tag"); - SerializedProperty showTimestamp; - GUIContent showTimestampLabel = new GUIContent("Show Timestamp"); - SerializedProperty vibratorType; - GUIContent vibratorTypeLabel = new GUIContent("Vibrator Type"); - SerializedProperty vibratorPattern; - GUIContent vibratorPatternLabel = new GUIContent("Vibrator Pattern"); - SerializedProperty vibratorDuration; - GUIContent vibratorDurationLabel = new GUIContent("Vibrator Duration"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - private void OnEnable() - { - title = serializedObject.FindProperty("title"); - message = serializedObject.FindProperty("message"); - tapAction = serializedObject.FindProperty("tapAction"); - url = serializedObject.FindProperty("url"); - iconName = serializedObject.FindProperty("iconName"); - idTag = serializedObject.FindProperty("idTag"); - showTimestamp = serializedObject.FindProperty("showTimestamp"); - vibratorType = serializedObject.FindProperty("vibratorType"); - vibratorPattern = serializedObject.FindProperty("vibratorPattern"); - vibratorDuration = serializedObject.FindProperty("vibratorDuration"); - localize = serializedObject.FindProperty("localize"); - } - - public override void OnInspectorGUI() - { - var obj = target as NotificationController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target), typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - //obj.title = EditorGUILayout.TextField("Title", obj.title); - EditorGUILayout.PropertyField(title, titleLabel, true); - - //obj.message = EditorGUILayout.TextField("Message", obj.message); - EditorGUILayout.PropertyField(message, messageLabel, true); - - //obj.tapAction = (NotificationController.TapAction)EditorGUILayout.EnumPopup("Tap Action", obj.tapAction); - EditorGUILayout.PropertyField(tapAction, tapActionLabel, true); - - switch (obj.tapAction) - { - case NotificationController.TapAction.BackToApplication: - break; - case NotificationController.TapAction.OpenURL: - //obj.url = EditorGUILayout.TextField("URL", obj.url); - EditorGUILayout.PropertyField(url, urlLabel, true); - break; - } - - //obj.iconName = EditorGUILayout.TextField("Icon Name", obj.iconName); - EditorGUILayout.PropertyField(iconName, iconNameLabel, true); - - //obj.idTag = EditorGUILayout.TextField("ID Tag", obj.idTag); - EditorGUILayout.PropertyField(idTag, idTagLabel, true); - - //obj.showTimestamp = EditorGUILayout.Toggle("Show Timestamp", obj.showTimestamp); - EditorGUILayout.PropertyField(showTimestamp, showTimestampLabel, true); - - //obj.vibratorType = (NotificationController.VibratorType)EditorGUILayout.EnumPopup("Vibrator Type", obj.vibratorType); - EditorGUILayout.PropertyField(vibratorType, vibratorTypeLabel, true); - - switch (obj.vibratorType) - { - case NotificationController.VibratorType.OneShot: - EditorGUILayout.PropertyField(vibratorDuration, vibratorDurationLabel, true); - break; - case NotificationController.VibratorType.Pattern: - EditorGUILayout.PropertyField(vibratorPattern, vibratorPatternLabel, true); - break; - } - - EditorGUILayout.PropertyField(localize, localizeLabel, true); - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} - diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/NotificationControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/NotificationControllerEditor.cs.meta deleted file mode 100644 index aa21c94b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/NotificationControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1c3018b6311a22642944917cca438bac -timeCreated: 1516544980 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/PermissionCheckControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/PermissionCheckControllerEditor.cs deleted file mode 100644 index dd3df6ae..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/PermissionCheckControllerEditor.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(PermissionCheckController))] - public class PermissionCheckControllerEditor : Editor { - - SerializedProperty permission; - GUIContent permissionLabel = new GUIContent("Permission"); - SerializedProperty checkOnStart; - GUIContent checkOnStartLabel = new GUIContent("Check On Start"); - SerializedProperty requestWhenNotGranted; - GUIContent requestWhenNotGrantedLabel = new GUIContent("Request When Not Granted"); - - SerializedProperty title; - GUIContent titleLabel = new GUIContent("Title"); - SerializedProperty message; - GUIContent messageLabel = new GUIContent("Message"); - SerializedProperty style; - GUIContent styleLabel = new GUIContent("Style"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - SerializedProperty OnResult; - SerializedProperty OnGranted; - SerializedProperty OnDenied; - SerializedProperty OnAllowed; - - private void OnEnable() - { - permission = serializedObject.FindProperty("permission"); - checkOnStart = serializedObject.FindProperty("checkOnStart"); - requestWhenNotGranted = serializedObject.FindProperty("requestWhenNotGranted"); - title = serializedObject.FindProperty("title"); - message = serializedObject.FindProperty("message"); - style = serializedObject.FindProperty("style"); - localize = serializedObject.FindProperty("localize"); - OnResult = serializedObject.FindProperty("OnResult"); - OnGranted = serializedObject.FindProperty("OnGranted"); - OnDenied = serializedObject.FindProperty("OnDenied"); - OnAllowed = serializedObject.FindProperty("OnAllowed"); - } - - public override void OnInspectorGUI() - { - var obj = target as PermissionCheckController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(permission, permissionLabel, true); - EditorGUILayout.PropertyField(checkOnStart, checkOnStartLabel, true); - EditorGUILayout.PropertyField(requestWhenNotGranted, requestWhenNotGrantedLabel, true); - - if (obj.requestWhenNotGranted) - { - EditorGUILayout.PropertyField(title, titleLabel, true); - EditorGUILayout.PropertyField(message, messageLabel, true); - EditorGUILayout.PropertyField(style, styleLabel, true); - EditorGUILayout.PropertyField(localize, localizeLabel, true); - } - - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnGranted, true); - EditorGUILayout.PropertyField(OnDenied, true); - - if (obj.requestWhenNotGranted) - { - EditorGUILayout.PropertyField(OnAllowed, true); - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/PermissionCheckControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/PermissionCheckControllerEditor.cs.meta deleted file mode 100644 index fb0955e1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/PermissionCheckControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 842188dc35a7f1f47b11bd2bad32864a -timeCreated: 1531666374 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SendTextControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SendTextControllerEditor.cs deleted file mode 100644 index 5478343a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SendTextControllerEditor.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(SendTextController))] - public class SendTextControllerEditor : Editor - { - SerializedProperty targetText; - GUIContent targetTextLabel = new GUIContent("Target Text"); - SerializedProperty selectionType; - GUIContent selectionTypeLabel = new GUIContent("Selection Type"); - SerializedProperty chooserTitle; - GUIContent chooserTitleLabel = new GUIContent("Chooser Title"); - SerializedProperty localize; - GUIContent localizeLabel = new GUIContent("Localize"); - - private void OnEnable() - { - targetText = serializedObject.FindProperty("targetText"); - selectionType = serializedObject.FindProperty("selectionType"); - chooserTitle = serializedObject.FindProperty("chooserTitle"); - localize = serializedObject.FindProperty("localize"); - } - - public override void OnInspectorGUI() - { - var obj = target as SendTextController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(targetText, targetTextLabel, true); - - EditorGUILayout.PropertyField(selectionType, selectionTypeLabel, true); - switch (obj.selectionType) - { - case SendTextController.SelectionType.Implicit: - // - break; - case SendTextController.SelectionType.Chooser: - EditorGUILayout.PropertyField(chooserTitle, chooserTitleLabel, true); - EditorGUILayout.PropertyField(localize, localizeLabel, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SendTextControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SendTextControllerEditor.cs.meta deleted file mode 100644 index 3ca8ebe5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SendTextControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0409125ca6d9395429088a28250d34c3 -timeCreated: 1524542270 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SpeechRecognizerControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SpeechRecognizerControllerEditor.cs deleted file mode 100644 index 9831d104..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SpeechRecognizerControllerEditor.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(SpeechRecognizerController))] - public class SpeechRecognizerControllerEditor : Editor - { - SerializedProperty locale; - GUIContent localeLabel = new GUIContent("Locale"); - SerializedProperty saveSetting; - GUIContent saveSettingLabel = new GUIContent("Save Setting"); - SerializedProperty saveKey; - GUIContent saveKeyLabel = new GUIContent("Save Key"); - - SerializedProperty OnReady; - SerializedProperty OnBegin; - SerializedProperty OnResult; - SerializedProperty OnError; - - private void OnEnable() - { - locale = serializedObject.FindProperty("locale"); - saveSetting = serializedObject.FindProperty("saveSetting"); - saveKey = serializedObject.FindProperty("saveKey"); - OnReady = serializedObject.FindProperty("OnReady"); - OnBegin = serializedObject.FindProperty("OnBegin"); - OnResult = serializedObject.FindProperty("OnResult"); - OnError = serializedObject.FindProperty("OnError"); - } - - int localeIndex = 0; - - public override void OnInspectorGUI() - { - //var obj = target as SpeechRecognizerController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - - //'Locale' input support - EditorGUI.BeginChangeCheck(); - localeIndex = EditorGUILayout.Popup("(Locale Input Support)", localeIndex, AndroidLocale.ConstantValues); - if (EditorGUI.EndChangeCheck()) - { - if (0 < localeIndex && localeIndex < AndroidLocale.ConstantValues.Length) - locale.stringValue = AndroidLocale.ConstantValues[localeIndex]; - } - EditorGUILayout.PropertyField(locale, localeLabel, true); - - EditorGUILayout.PropertyField(saveSetting, saveSettingLabel, true); - EditorGUILayout.PropertyField(saveKey, saveKeyLabel, true); - - EditorGUILayout.PropertyField(OnReady, true); - EditorGUILayout.PropertyField(OnBegin, true); - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnError, true); - - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SpeechRecognizerControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SpeechRecognizerControllerEditor.cs.meta deleted file mode 100644 index b58226ae..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/SpeechRecognizerControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 729f0b7c71788e8418d291d691f3ea16 -timeCreated: 1524912518 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/StorageLoadTextControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/StorageLoadTextControllerEditor.cs deleted file mode 100644 index 32646162..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/StorageLoadTextControllerEditor.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(StorageLoadTextController))] - public class StorageLoadTextControllerEditor : Editor { - - SerializedProperty targetText; - GUIContent targetTextLabel = new GUIContent("Target Text"); - SerializedProperty mimeTypes; - GUIContent mimeTypesLabel = new GUIContent("Mime Types"); - - SerializedProperty OnResult; - SerializedProperty OnError; - - private void OnEnable() - { - targetText = serializedObject.FindProperty("targetText"); - mimeTypes = serializedObject.FindProperty("mimeTypes"); - OnResult = serializedObject.FindProperty("OnResult"); - OnError = serializedObject.FindProperty("OnError"); - } - - public override void OnInspectorGUI() - { - //var obj = target as SendTextController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(targetText, targetTextLabel, true); - EditorGUILayout.PropertyField(mimeTypes, mimeTypesLabel, true); - - EditorGUILayout.PropertyField(OnResult, true); - EditorGUILayout.PropertyField(OnError, true); - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/StorageLoadTextControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/StorageLoadTextControllerEditor.cs.meta deleted file mode 100644 index 8b973bb1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/StorageLoadTextControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1be1ab23afb11f14b8459bf7b70211de -timeCreated: 1534731095 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/TextToSpeechControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/TextToSpeechControllerEditor.cs deleted file mode 100644 index a33a76e8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/TextToSpeechControllerEditor.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(TextToSpeechController))] - public class TextToSpeechControllerEditor : Editor - { - SerializedProperty locale; - GUIContent localeLabel = new GUIContent("Locale"); - - SerializedProperty speed; - GUIContent speedLabel = new GUIContent("Speed"); - SerializedProperty speedStep; - GUIContent speedStepLabel = new GUIContent("Speed Step"); - SerializedProperty pitch; - GUIContent pitchLabel = new GUIContent("Pitch"); - SerializedProperty pitchStep; - GUIContent pitchStepLabel = new GUIContent("Pitch Step"); - SerializedProperty saveSetting; - GUIContent saveSettingLabel = new GUIContent("Save Setting"); - SerializedProperty saveKey; - GUIContent saveKeyLabel = new GUIContent("Save Key"); - - SerializedProperty OnStart; - SerializedProperty OnDone; - SerializedProperty OnStop; - SerializedProperty OnStatus; - SerializedProperty OnSpeedChanged; - SerializedProperty OnPitchChanged; - - private void OnEnable() - { - locale = serializedObject.FindProperty("locale"); - speed = serializedObject.FindProperty("speed"); - speedStep = serializedObject.FindProperty("speedStep"); - pitch = serializedObject.FindProperty("pitch"); - pitchStep = serializedObject.FindProperty("pitchStep"); - saveSetting = serializedObject.FindProperty("saveSetting"); - saveKey = serializedObject.FindProperty("saveKey"); - OnStart = serializedObject.FindProperty("OnStart"); - OnDone = serializedObject.FindProperty("OnDone"); - OnStop = serializedObject.FindProperty("OnStop"); - OnStatus = serializedObject.FindProperty("OnStatus"); - OnSpeedChanged = serializedObject.FindProperty("OnSpeedChanged"); - OnPitchChanged = serializedObject.FindProperty("OnPitchChanged"); - } - - int localeIndex = 0; - - public override void OnInspectorGUI() - { - //var obj = target as TextToSpeechController; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - - //'Locale' input support - EditorGUI.BeginChangeCheck(); - localeIndex = EditorGUILayout.Popup("(Locale Input Support)", localeIndex, AndroidLocale.ConstantValues); - if (EditorGUI.EndChangeCheck()) - { - if (0 < localeIndex && localeIndex < AndroidLocale.ConstantValues.Length) - locale.stringValue = AndroidLocale.ConstantValues[localeIndex]; - } - EditorGUILayout.PropertyField(locale, localeLabel, true); - - EditorGUILayout.PropertyField(speed, speedLabel, true); - EditorGUILayout.PropertyField(speedStep, speedStepLabel, true); - EditorGUILayout.PropertyField(pitch, pitchLabel, true); - EditorGUILayout.PropertyField(pitchStep, pitchStepLabel, true); - EditorGUILayout.PropertyField(saveSetting, saveSettingLabel, true); - EditorGUILayout.PropertyField(saveKey, saveKeyLabel, true); - - EditorGUILayout.PropertyField(OnStart, true); - EditorGUILayout.PropertyField(OnDone, true); - EditorGUILayout.PropertyField(OnStop, true); - EditorGUILayout.PropertyField(OnStatus, true); - EditorGUILayout.PropertyField(OnSpeedChanged, true); - EditorGUILayout.PropertyField(OnPitchChanged, true); - - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} - diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/TextToSpeechControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/TextToSpeechControllerEditor.cs.meta deleted file mode 100644 index 957fcde3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/TextToSpeechControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7f3da11f0a620a1438a1fa54d351e39b -timeCreated: 1524912486 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/VibratorControllerEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/VibratorControllerEditor.cs deleted file mode 100644 index 2c52f783..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/VibratorControllerEditor.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(VibratorController))] - public class VibratorControllerEditor : Editor - { - SerializedProperty vibratorType; - GUIContent vibratorTypeLabel = new GUIContent("Vibrator Type"); - SerializedProperty pattern; - GUIContent patternLabel = new GUIContent("Pattern"); - SerializedProperty duration; - GUIContent durationLabel = new GUIContent("Duration"); - SerializedProperty OnError; - - private void OnEnable() - { - vibratorType = serializedObject.FindProperty("vibratorType"); - pattern = serializedObject.FindProperty("pattern"); - duration = serializedObject.FindProperty("duration"); - OnError = serializedObject.FindProperty("OnError"); - } - - public override void OnInspectorGUI() - { - var obj = target as VibratorController; - serializedObject.Update(); - - EditorGUILayout.PropertyField(vibratorType, vibratorTypeLabel, true); - - switch (obj.vibratorType) - { - case VibratorController.VibratorType.OneShot: - EditorGUILayout.PropertyField(duration, durationLabel, true); - break; - case VibratorController.VibratorType.Pattern: - case VibratorController.VibratorType.PatternLoop: - EditorGUILayout.PropertyField(pattern, patternLabel, true); - break; - } - - EditorGUILayout.PropertyField(OnError, true); - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/VibratorControllerEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/VibratorControllerEditor.cs.meta deleted file mode 100644 index 2f60dfa1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/Editor/VibratorControllerEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 66bc3884ba426d64dbd904f685969842 -timeCreated: 1518849336 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/GalleryPickController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/GalleryPickController.cs deleted file mode 100644 index a4259193..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/GalleryPickController.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Gallery Pick Controller - /// - /// Open the default gallery application and get the image and movie file information (path, width, height and other). - ///・If there are two or more application, select with the launcher. - ///(*) Recommended since API 19 (Android 4.4). In the API Level before that, file information may not be get correctly according to the specification of the default folder or ContentProvider. - ///(*) When reading from external storage (SD card etc.), permission is necessary ('READ_EXTERNAL_STORAGE' or 'WRITE_EXTERNAL_STORAGE'). - ///(*) The URI returned by the application you use is different, so be careful as the information you can get is different. - /// (The format like "content://media/external/images/media/(ID)" is the best (Standard application), in the case of application specific URI, information may be restricted) - ///(*) There is a possibility that width, height and other information can not be acquired depending on the saved state of the media (0 or empty when it can not be acquired). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// - /// デフォルトのギャラリーアプリを開いて、画像・動画ファイル情報(パスと幅・高さ 等)を取得する。 - ///・アプリが複数ある場合、ランチャーで選択する。 - ///※API 19 (Android 4.4) 以降推奨。それより前の API Level ではデフォルトのフォルダやコンテンツプロバイダの仕様により、正しくファイル情報が取得できない可能性あり。 - ///※External Storage(SDカード等)から読み込む場合にはパーミッションが必要('READ_EXTERNAL_STORAGE' または 'WRITE_EXTERNAL_STORAGE')。 - ///※利用するアプリによって返される URI は異なり、取得できる情報が違うので注意 - ///("content://media/external/images/media/(ID)" のような書式が一番良い(標準アプリ)。アプリ特有の URI の場合、情報が制限される可能性あり)。 - ///※メディアの保存状態によっては、幅や高さ、その他の情報が取得できない可能性がある(取得できなかったときは 0 または空になる)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - /// - public class GalleryPickController : MonoBehaviour - { - //Inspector Settings - public enum PickType { Image, Video } - public PickType pickType; - - - //Callbacks - //Callback when get file information is successful. //ファイル情報の取得が成功したときのコールバック - [Serializable] public class ResultHandler : UnityEvent { } //path, width, height - public ResultHandler OnResult; - - //For image information - [Serializable] public class ResultInfoHandler : UnityEvent { } //{path, uri, width, height, size, mimeType} - public ResultInfoHandler OnResultInfo; - - //For video information - [Serializable] public class ResultVideoInfoHandler : UnityEvent { } //{path, uri, width, height, size, mimeType, ...} - public ResultVideoInfoHandler OnResultVideoInfo; - - //Callback when get file information is fail. //ファイル情報の取得が失敗したときのコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; //Callback when fail to get path or other error - - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - - //Call the default gallery application. If there are two or more, select with the launcher. - public void Show() - { -#if UNITY_EDITOR - Debug.Log("GalleryPickController.Show called"); -#elif UNITY_ANDROID - switch (pickType) - { - case PickType.Image: - AndroidPlugin.OpenGallery(gameObject.name, "ReceiveResult", "ReceiveError"); - break; - case PickType.Video: - AndroidPlugin.OpenGalleryVideo(gameObject.name, "ReceiveResult", "ReceiveError"); - break; - } -#endif - } - - - //Callback handler when receive result - private void ReceiveResult(string result) - { - if (result[0] == '{') //When Json, success. //Json のとき、取得成功 - { - switch (pickType) - { - case PickType.Image: - { - ImageInfo info = JsonUtility.FromJson(result); - if (OnResult != null) - OnResult.Invoke(info.path, info.width, info.height); - if (OnResultInfo != null) - OnResultInfo.Invoke(info); - } - break; - - case PickType.Video: - { - VideoInfo info = JsonUtility.FromJson(result); - if (OnResult != null) - OnResult.Invoke(info.path, info.width, info.height); - if (OnResultVideoInfo != null) - OnResultVideoInfo.Invoke(info); - } - break; - } - } - else - ReceiveError(result); - } - - //Callback handler when receive error - private void ReceiveError(string message) - { - if (OnError != null) - OnError.Invoke(message); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/GalleryPickController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/GalleryPickController.cs.meta deleted file mode 100644 index b2c89856..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/GalleryPickController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 19d893ad925147d4fa4d474bd756c334 -timeCreated: 1518148089 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeController.cs deleted file mode 100644 index 9364a67f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeController.cs +++ /dev/null @@ -1,236 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Hardware volume control class (Media volume only) - /// http://fantom1x.blog130.fc2.com/blog-entry-283.html - ///・For example for VR (Cardboard/Hakosuko) setting (Register in the inspector): - /// enableHardKey = true, hardOperation = false, - /// "OnVolumeCalled" -> something UI (uGUI, etc.), "OnHardVolumeKeyUp" -> "VolumeUp()", "OnHardVolumeKeyDown" -> "VolumeDown()" - /// - public class HardVolumeController : MonoBehaviour - { - - public bool enableHardKey = false; //true = Receive and use hardware button events / false = Ignore hardware button events - - [SerializeField] private bool hardOperation = true; //true = Volume operation on smartphone possible /false = Disable volume operation at the smartphone (*) Change at the runtime by the 'HardOperation' property. - - public bool showUI = true; //Display System UI when operating volume from Unity. - - - - //Callback when hardware volume is operated - - //Callback when operating a hardware button, or when this class's volume operation method is called (-> Use for UI display etc.) - //Argument: int is the hardware volume after operation. - [Serializable] - public class VolumeCalledHandler : UnityEvent { } - public VolumeCalledHandler OnVolumeCalled; - - //Increase the volume with the hardware button Callback when operated. - public UnityEvent OnHardVolumeKeyUp; - - //Decrease the volume with the hardware button Callback when operated. - public UnityEvent OnHardVolumeKeyDown; - - - -#if UNITY_EDITOR - //For debug (Editor only) - public int debugVolume = 2; - public bool debugIncreasement = true; - public KeyCode debugVolumeUpKey = KeyCode.KeypadPlus; - public KeyCode debugVolumeDownKey = KeyCode.KeypadMinus; -#endif - - - - //Get maximum hardware volume property - private int mMaxVolume = -1; //For cache - - public int maxVolume { - get { - if (mMaxVolume < 0) - { -#if UNITY_EDITOR - mMaxVolume = 15; //For debug (Editor only) -#elif UNITY_ANDROID - mMaxVolume = AndroidPlugin.GetMediaMaxVolume(); -#endif - } - return mMaxVolume; - } - } - - - //Get current hardware volume property - public int volume { - get { - int vol = -1; -#if UNITY_EDITOR - vol = debugVolume; //For debug (Editor only) -#elif UNITY_ANDROID - vol = AndroidPlugin.GetMediaVolume(); -#endif - return vol; - } - set { - int vol = Mathf.Clamp(value, 0, maxVolume); -#if UNITY_ANDROID && !UNITY_EDITOR - vol = AndroidPlugin.SetMediaVolume(vol, showUI); -#endif -#if UNITY_EDITOR - debugVolume = vol; //For debug (Editor only) -#endif - if (OnVolumeCalled != null) - OnVolumeCalled.Invoke(vol); - } - } - - - //Enable/Disable the volume operation by the smartphone itself by pressing the hardware button - public bool HardOperation { - get { return hardOperation; } - set { - hardOperation = value; -#if UNITY_ANDROID && !UNITY_EDITOR - AndroidPlugin.HardKey.SetVolumeOperation(value); -#endif - } - } - - - - protected void OnEnable() - { -#if UNITY_EDITOR - Debug.Log("HardKey Listener registered."); -#elif UNITY_ANDROID - //Register listener for hardware volume button - AndroidPlugin.HardKey.SetKeyVolumeUpListener(this.gameObject.name, "HardVolumeKeyChange", "VolumeUp"); - AndroidPlugin.HardKey.SetKeyVolumeDownListener(this.gameObject.name, "HardVolumeKeyChange", "VolumeDown"); -#endif - HardOperation = hardOperation; //Set the inspector setting - } - - - protected void OnDisable() - { -#if UNITY_EDITOR - Debug.Log("HardKey Listener removed."); -#elif UNITY_ANDROID - //Unregister listener for hardware volume button - AndroidPlugin.HardKey.RemoveAllListeners(); -#endif - } - - - // Use this for initialization - protected void Start() - { - } - - - // Update is called once per frame - protected void Update() - { -#if UNITY_EDITOR - //For debug (Editor only) - if (Input.GetKeyDown(debugVolumeUpKey)) - { - if (debugIncreasement) - debugVolume = Mathf.Clamp(++debugVolume, 0, maxVolume); - - if (OnHardVolumeKeyUp != null) - OnHardVolumeKeyUp.Invoke(); - } - else if (Input.GetKeyDown(debugVolumeDownKey)) - { - if (debugIncreasement) - debugVolume = Mathf.Clamp(--debugVolume, 0, maxVolume); - - if (OnHardVolumeKeyDown != null) - OnHardVolumeKeyDown.Invoke(); - } -#endif - } - - - //Hardware volume button event callback handler (called from Android native) - protected void HardVolumeKeyChange(string message) - { - if (enableHardKey) - { - if (message == "VolumeUp") //(*) This value is the value registered for the listener (SetKeyVolumeUpListener()) - { - if (OnHardVolumeKeyUp != null) - OnHardVolumeKeyUp.Invoke(); - } - else if (message == "VolumeDown") //(*) This value is the value registered for the listener (SetKeyVolumeDownListener()) - { - if (OnHardVolumeKeyDown != null) - OnHardVolumeKeyDown.Invoke(); - } - } - } - - - //Increase volume (limit: maxVolume) - public void VolumeUp() - { - int vol = -1; -#if UNITY_EDITOR - vol = Mathf.Clamp(++debugVolume, 0, maxVolume); //For debug (Editor only) -#elif UNITY_ANDROID - vol = AndroidPlugin.AddMediaVolume(1, showUI); //current volume + 1 -#endif - if (OnVolumeCalled != null) - OnVolumeCalled.Invoke(vol); - } - - - //Decrease volume (limit: 0) - public void VolumeDown() - { - int vol = -1; -#if UNITY_EDITOR - vol = Mathf.Clamp(--debugVolume, 0, maxVolume); //For debug (Editor only) -#elif UNITY_ANDROID - vol = AndroidPlugin.AddMediaVolume(-1, showUI); //current volume - 1 -#endif - if (OnVolumeCalled != null) - OnVolumeCalled.Invoke(vol); - } - - - //Mute the volume (Set to 0) - public void VolumeMute() - { - int vol = -1; -#if UNITY_EDITOR - vol = debugVolume = 0; //デバッグ用値 -#elif UNITY_ANDROID - vol = AndroidPlugin.SetMediaVolume(0, showUI); //set volume = 0 -#endif - if (OnVolumeCalled != null) - OnVolumeCalled.Invoke(vol); - } - - - //Get the current volume - public void VolumeNow() - { - int vol = volume; //From property - - if (OnVolumeCalled != null) - OnVolumeCalled.Invoke(vol); - } - - } - -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeController.cs.meta deleted file mode 100644 index d1d89c52..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6f2bd74b82df86941a631fc6fa090c84 -timeCreated: 1506666565 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeControllerWithToast.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeControllerWithToast.cs deleted file mode 100644 index 36771592..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeControllerWithToast.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Hardware Volume When operated, Android Toast displays the current volume - /// - /// ハードウェア音量操作したとき、Android の Toast で現在の音量を表示する(AndroidPlugin を使用する) - /// - public class HardVolumeControllerWithToast : HardVolumeController - { - - public bool enableToast = true; //Display Android Toast on/off //Toast の表示可否 - - - protected void Awake() - { - //Register itself when it is empty (* Note that it is not displayed in the inspector). - //独自登録されてないとき、自身を登録する(※インスペクタには表示されないので注意) - if (OnVolumeCalled.GetPersistentEventCount() == 0) - { -#if UNITY_EDITOR - Debug.Log("OnVolumeCalled added DisplayVolume (auto)"); -#endif - OnVolumeCalled.AddListener(DisplayVolume); - } - } - - - //Display Android Toast - //Android の Toast で表示 - public void ShowToast(string message) - { - if (!enableToast) - return; - -#if UNITY_EDITOR - Debug.Log("ShowToast : " + message); -#elif UNITY_ANDROID - if (!string.IsNullOrEmpty(message)) - AndroidPlugin.ShowToast(message); -#endif - } - - - //Format to a string for display Android Toast - //Android の Toast で表示(文字列にフォーマットする) - public void DisplayVolume(int value) - { - ShowToast("Volume : " + value + " / " + maxVolume); - } - - } - -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeControllerWithToast.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeControllerWithToast.cs.meta deleted file mode 100644 index 0e74f7d4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/HardVolumeControllerWithToast.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 4943ba82bcc2aba429a8646bbedc2e9e -timeCreated: 1506677583 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/IgnoreBackgroundDataRestrictionsSettingsController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/IgnoreBackgroundDataRestrictionsSettingsController.cs deleted file mode 100644 index 2bf1a193..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/IgnoreBackgroundDataRestrictionsSettingsController.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Ignore Background Data Restrictions Settings Controller (API 24 or higher) - /// - ///・Open this Ignore Background Data Restrictions settings. - /// - ///・現在アプリのバックグラウンドデータの制限を無視する設定画面を開く。 - /// - public class IgnoreBackgroundDataRestrictionsSettingsController : ActionURIOnThisPackageBase - { - protected override string action { - get { return "android.settings.IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS"; } - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/IgnoreBackgroundDataRestrictionsSettingsController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/IgnoreBackgroundDataRestrictionsSettingsController.cs.meta deleted file mode 100644 index c119c68a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/IgnoreBackgroundDataRestrictionsSettingsController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 74626c10e616ad04bbc79c18b3f22b96 -timeCreated: 1521294050 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MailerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MailerController.cs deleted file mode 100644 index 952a18a2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MailerController.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Mailer Controller - /// - ///(*) Behavior may be different depending on the mailer (application) selected by the user. There are parameters that can not be received by the application (Gmail recommended). - ///(*) If you add an attachment file, it will be the same method as text sharing (text + attached file send), so applications other than mailer will also appear on the list. - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// (Theme[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - /// - ///※ユーザーが選択したメーラー(アプリ)によって挙動が異なる場合がある。アプリによって受け取れないパラメタがある(Gmail 推奨)。 - ///※添付ファイルを追加した場合は、テキスト共有と同じ方法になるので(テキスト+添付ファイル送信)、メーラー以外のアプリも一覧に出てくる。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// (テーマ[Style]) - /// https://developer.android.com/reference/android/R.style.html#Theme - /// - public class MailerController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string mailAddress = "xxx@example.com"; - public string subject = "Title"; //mail title - [Multiline] public string body = "Message"; //mail body - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string subjecctID = "subject"; - public string bodyID = "body"; - } - public LocalizeData localize; - -#region Properties and Local values Section - - private string attachmentURI; //image etc. - - //Replace with only one URI. - public void SetAttachment(string contentURI) - { - attachmentURI = contentURI; - } - - //Clear URI - public void ClearAttachment() - { - attachmentURI = ""; - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - subject = localize.localizeResource.Text(localize.subjecctID, subject); - body = localize.localizeResource.Text(localize.bodyID, body); - } - } - - //Specify language and apply (update) localized string - //(*) When dynamically changing text string, it is better not to use it because it is incompatible. - //※動的にテキストを変更する場合は、互換性がないので使わない方が良い。 - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - subject = localize.localizeResource.Text(localize.subjecctID, language, subject); - body = localize.localizeResource.Text(localize.bodyID, language, body); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show Mailer with local values - public void Show() - { -#if UNITY_EDITOR - Debug.Log(name + ".Show : mailAddress = " + mailAddress + ", attachment = " + attachmentURI); -#elif UNITY_ANDROID - if (!string.IsNullOrEmpty(attachmentURI)) - { - string[] extra = { "android.intent.extra.EMAIL", "android.intent.extra.SUBJECT", "android.intent.extra.TEXT", "android.intent.extra.STREAM" }; - string[] query = { mailAddress, subject, body, attachmentURI }; - AndroidPlugin.StartAction("android.intent.action.SEND", extra, query, "text/plain"); //SENDTO can not be used when attachment is added (It is the same way as text send). //添付ファイル付きの場合は SENDTO は使えない(テキスト送信と同じ方法になる) - } - else - AndroidPlugin.StartActionSendMail(mailAddress, subject, body); -#endif - } - - //Set values dynamically and show Mailer (current values will be overwritten) - public void Show(string mailAddress) - { - Show(mailAddress, this.subject, this.body); - } - - //Set values dynamically and show Mailer (current values will be overwritten) - public void Show(string mailAddress, string subject) - { - Show(mailAddress, subject, this.body); - } - - //Set values dynamically and show Mailer (current values will be overwritten) - public void Show(string mailAddress, string subject, string body) - { - this.mailAddress = mailAddress; - this.subject = subject; - this.body = body; - ClearAttachment(); - Show(); - } - - //Add attachment - //Set values dynamically and show Mailer (current values will be overwritten) - public void Show(string mailAddress, string subject, string body, string attachmentURI) - { - this.mailAddress = mailAddress; - this.subject = subject; - this.body = body; - SetAttachment(attachmentURI); - Show(); - } - - //(*) LocalizeString overload - //Set values dynamically and show Mailer (current values will be overwritten) - public void Show(string mailAddress, LocalizeString subject, LocalizeString body) - { - this.mailAddress = mailAddress; - if (subject != null) - this.subject = subject.Text; - if (body != null) - this.body = body.Text; - ClearAttachment(); - Show(); - } - - //(*) LocalizeString overload - //Add attachment - //Set values dynamically and show Mailer (current values will be overwritten) - public void Show(string mailAddress, LocalizeString subject, LocalizeString body, string attachmentURI) - { - this.mailAddress = mailAddress; - if (subject != null) - this.subject = subject.Text; - if (body != null) - this.body = body.Text; - SetAttachment(attachmentURI); - Show(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MailerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MailerController.cs.meta deleted file mode 100644 index 2a9939e7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MailerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 43bf2400a9a29f841aec5402c3f47e14 -timeCreated: 1521431068 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageOverlayPermissionController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageOverlayPermissionController.cs deleted file mode 100644 index 575c70fc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageOverlayPermissionController.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Manage Overlay Permission Controller (API 23 or higher) - /// - ///・Open Manage Overlay Permission settings. - /// - ///・フローティング表示するアプリ権限設定画面を開く。 - /// - public class ManageOverlayPermissionController : ActionURIOnThisPackageBase - { - protected override string action { - get { return "android.settings.action.MANAGE_OVERLAY_PERMISSION"; } - } - - - //Inspector settings - public bool thisApp = true; //false = all App - - - public override void StartAction() - { - if (thisApp) - base.StartAction(); - else - { -#if UNITY_EDITOR - Debug.Log(name + ".Show"); -#elif UNITY_ANDROID - AndroidPlugin.StartAction(action); -#endif - } - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageOverlayPermissionController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageOverlayPermissionController.cs.meta deleted file mode 100644 index 746d2d2a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageOverlayPermissionController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 77627b03b61414848b49d661bf04ac21 -timeCreated: 1521301006 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageWriteController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageWriteController.cs deleted file mode 100644 index b8258393..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageWriteController.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Manage Write Controller (API 23 or higher) - /// - ///・Open Manage Write Permission settings. - /// - ///・システム設定を変更できるアプリ権限設定画面を開く。 - /// - public class ManageWriteController : ActionURIOnThisPackageBase - { - protected override string action { - get { return "android.settings.action.MANAGE_WRITE_SETTINGS"; } - } - - - //Inspector settings - public bool thisApp = true; //false = all App - - - public override void StartAction() - { - if (thisApp) - base.StartAction(); - else - { -#if UNITY_EDITOR - Debug.Log(name + ".Show"); -#elif UNITY_ANDROID - AndroidPlugin.StartAction(action); -#endif - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageWriteController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageWriteController.cs.meta deleted file mode 100644 index a2bc3ddd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/ManageWriteController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9e6b1c266fadebf458da0e138c11024b -timeCreated: 1521304460 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MarketSearchController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MarketSearchController.cs deleted file mode 100644 index 70b827cc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MarketSearchController.cs +++ /dev/null @@ -1,90 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Market Search Controller - /// - /// Open and search Google Play - /// ·For package name (application ID), go to the detail screen. - /// ·For keywords, go to search results. - /// (*)Google Play needs to be installed. - /// - /// Google Play を開いて検索する - /// ・パッケージ名(アプリのID)の場合は詳細画面へ行く。 - /// ・キーワードの場合は検索結果へ行く。 - /// ※Google Play がインストールされている必要がある。 - /// - public class MarketSearchController : MonoBehaviour - { - //Inspector Settings - [Serializable] - public enum SearchType - { - PackageName, - Keyword, - } - public SearchType searchType = SearchType.PackageName; //search method - - public string packageName = "com.google.android.tts"; //Application ID - public string keyword = "Google TTS"; //Search keyword - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start Web Search with local packageName or keyword. - //It is also the query of the last search done. - public void Show() - { -#if UNITY_EDITOR - Debug.Log("MarketSearchController.Show : searchType = " + searchType - + ", packageName = " + packageName - + ", keyword = " + keyword); -#elif UNITY_ANDROID - switch (searchType) - { - case SearchType.PackageName: - if (!string.IsNullOrEmpty(packageName)) - AndroidPlugin.ShowMarketDetails(packageName); - break; - case SearchType.Keyword: - if (!string.IsNullOrEmpty(keyword)) - AndroidPlugin.StartMarketSearch(keyword); - break; - } -#endif - } - - //Set packageName dynamically and start Market Search (current packageName and searchType will be overwritten) - public void Show(string packageName) - { - this.packageName = packageName; - searchType = SearchType.PackageName; - Show(); - } - - //Set keyword dynamically and start Market Search (current keyword and searchType will be overwritten) - public void StartSearch(string keyword) - { - this.keyword = keyword; - searchType = SearchType.Keyword; - Show(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MarketSearchController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MarketSearchController.cs.meta deleted file mode 100644 index 96211c17..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MarketSearchController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2bae3da4375d55e459fed288c19761c8 -timeCreated: 1523195249 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MediaScannerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MediaScannerController.cs deleted file mode 100644 index 351d8143..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MediaScannerController.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Media Scanner Controller - /// - ///・Run MediaScanner for single or multiple paths. - ///・If you save your own files without using the Android system, you need to run MediaScanner to recognize the file. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - ///・単一または複数のパスについて、MediaScannerを実行する。 - ///・Androidシステムを使わずに、独自にファイルを保存したときなどには、MediaScannerを実行して、ファイルを認識させる必要がある。 - ///※Android から Unity へコールバック受信は「GameObject 名」で行われるため、ヒエラルキー上ではユニークにしておく必要がある。 - /// - public class MediaScannerController : MonoBehaviour - { - - //Callbacks - [Serializable] public class CompleteHandler : UnityEvent { } //path - public CompleteHandler OnComplete; - - [Serializable] public class CompleteInfoHandler : UnityEvent { } //{path, uri} - public CompleteInfoHandler OnCompleteInfo; - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Scan (update) a single file. - public void StartScan(string path) - { -#if UNITY_EDITOR - Debug.Log("MediaScannerController.StartScan called"); -#elif UNITY_ANDROID - AndroidPlugin.StartMediaScanner(path, gameObject.name, "ReceiveComplete", true); -#endif - } - - //Scan (update) multiple files. - public void StartScan(string[] paths) - { -#if UNITY_EDITOR - Debug.Log("MediaScannerController.StartScan called"); -#elif UNITY_ANDROID - AndroidPlugin.StartMediaScanner(paths, gameObject.name, "ReceiveComplete", true); -#endif - } - - - //Callback handler when receive complete - private void ReceiveComplete(string result) - { - if (string.IsNullOrEmpty(result)) - return; - - ContentInfo info; - if (result[0] == '{') //Json - info = JsonUtility.FromJson(result); - else - info = new ContentInfo(result, ""); //no URI infomation - - if (OnComplete != null) - OnComplete.Invoke(result); - - if (OnCompleteInfo != null) - OnCompleteInfo.Invoke(info); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MediaScannerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MediaScannerController.cs.meta deleted file mode 100644 index e8844f9d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/MediaScannerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 953b10b2451a8d14d9e7bfa74c9da7c3 -timeCreated: 1518339079 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/NotificationController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/NotificationController.cs deleted file mode 100644 index cd448113..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/NotificationController.cs +++ /dev/null @@ -1,212 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Notification Controller - /// - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// - public class NotificationController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string title = ""; //When it is empty, the application name is used (PlayerSettings > Product Name). - public string message = "Message"; //Message to be displayed on Notification. - - [Serializable] - public enum TapAction - { - BackToApplication, //Tap the Notification to return to the application. - OpenURL, //Tap the Notification to open the URL. - } - public TapAction tapAction = TapAction.BackToApplication; - - public string url = ""; //It is opened in the default browser. - public string iconName = "app_icon"; //Unity defaults to "app_icon" (Unless rewrite it with a 'AndroidManifest.xml' file). - public string idTag = "tag"; //Identification tag (When notified consecutively, same tag is displayed by overwriting). - public bool showTimestamp = true; //Display notification time. - - [Serializable] - public enum VibratorType { - OneShot, Pattern - } - public VibratorType vibratorType = VibratorType.OneShot; - - //Because it can not be saved in the inspector if it is a long type, it is converted from an int type. - //That is, the value will be in the int range (however, a long range is not necessary). - [SerializeField] private int vibratorDuration; //Vibration duration when SimpleOneShot (0 for nothing). - [SerializeField] private int[] vibratorPattern; //Vibration pattern. Specify the duration in milliseconds in the order of off, on, off, on, .... - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; - public string messageID = "message"; - } - public LocalizeData localize; - -#region Properties and Local values Section - - //Local values - //Because it can not be saved in the inspector if it is a long type, it is converted from an int type. - //That is, the value will be in the int range (however, a long range is not necessary). - private long mVibratorDuration; - private long[] mVibratorPattern; - - //Properties - public long[] VibratorPattern { - get { return mVibratorPattern; } - set { mVibratorPattern = value; } - } - - public long VibratorDuration { - get { return mVibratorDuration; } - set { mVibratorDuration = value; } - } - - //Check empty etc. - private void CheckForErrors() - { - if (tapAction == TapAction.OpenURL && string.IsNullOrEmpty(url)) - Debug.LogWarning("URL is empty."); - } - - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - if (!string.IsNullOrEmpty(title)) //When empty, the title is set to 'Application.productName' (PlayerSettings > Product Name) - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - if (!string.IsNullOrEmpty(title)) //When empty, the title is set to 'Application.productName' (PlayerSettings > Product Name) - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - //It mainly converts from int type to long type (also inspector -> local value). - mVibratorDuration = vibratorDuration; - if (vibratorPattern != null && vibratorPattern.Length > 0) - mVibratorPattern = vibratorPattern.Select(e => (long)e).ToArray(); - - ApplyLocalize(); //localize - } - - private void Start() - { - if (string.IsNullOrEmpty(title)) - title = Application.productName; //When empty (PlayerSettings > Product Name) -#if UNITY_EDITOR - CheckForErrors(); //Check for fatal errors (Editor only). -#endif - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Show Notification - public void Show() - { -#if UNITY_EDITOR - Debug.Log("NotificationController.Show called"); -#elif UNITY_ANDROID - switch (tapAction) - { - case TapAction.BackToApplication: - if (vibratorType == VibratorType.OneShot) - { - AndroidPlugin.ShowNotification( - title, - message, - string.IsNullOrEmpty(iconName) ? "app_icon" : iconName, - idTag, - showTimestamp, - mVibratorDuration); //Converted to a long type. - } - else - { - AndroidPlugin.ShowNotification( - title, - message, - string.IsNullOrEmpty(iconName) ? "app_icon" : iconName, - idTag, - showTimestamp, - mVibratorPattern); //Converted to a long type. - } - break; - - case TapAction.OpenURL: - if (string.IsNullOrEmpty(url)) - return; - - if (vibratorType == VibratorType.OneShot) - { - AndroidPlugin.ShowNotificationToActionURI( - title, - message, - string.IsNullOrEmpty(iconName) ? "app_icon" : iconName, - idTag, - "android.intent.action.VIEW", - url, - showTimestamp, - mVibratorDuration); //Converted to a long type. - } - else - { - AndroidPlugin.ShowNotificationToActionURI( - title, - message, - string.IsNullOrEmpty(iconName) ? "app_icon" : iconName, - idTag, - "android.intent.action.VIEW", - url, - showTimestamp, - mVibratorPattern); //Converted to a long type. - } - break; - } -#endif - } - - //Set message dynamically and show (current message will be overwritten) - public void Show(string message) - { - this.message = message; - Show(); - } - - //(*) LocalizeString overload - public void Show(LocalizeString message) - { - if (message != null) - Show(message.Text); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/NotificationController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/NotificationController.cs.meta deleted file mode 100644 index c760530e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/NotificationController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b100648c9b32a6e47b9dc72e7f300e3b -timeCreated: 1516529589 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/OrientationStatusController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/OrientationStatusController.cs deleted file mode 100644 index a804be56..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/OrientationStatusController.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Orientation Status Controller - /// - ///·Get the configuration change when the Android device rotates and call back. - ///·Status information is sent only when there is a change on the Android system. - ///·The status is as follows (※ Basically it can be considered "PORTRAIT" or "LANDSCAPE"). - /// PORTRAIT : The screen is oriented vertically - /// LANDSCAPE : The screen is oriented horizontally - /// UNDEFINED : Undefined (* Normally it is not.) - /// UNKNOWN : Unknown (* This also applies to "SQUARE" case, but it is not normal.) - ///(*)"ORIENTATION_SQUARE" is scheduled to be deprecated in API 16, so it will not be acquired (-> it will become "UNKNOWN", but it should not be present in the current device). - /// https://developer.android.com/reference/android/content/res/Configuration.html?hl=ja#ORIENTATION_LANDSCAPE - ///(*)The following attribute is required for 'activity' tag of 'AndroidManifest.xml' (* In the case of Unity application, it is added by default). - /// 'android:configChanges="orientation|screenSize"' - ///·Normally, for applications that rotate the screen in four directions, add the following attributes to the 'activity' tag of 'AndroidManifest.xml'. - /// 'android:screenOrientation="sensor"' - /// https://developer.android.com/guide/topics/manifest/activity-element.html - ///(*)Required 'FullPluginOnUnityPlayerActivity' in 'AndroidManifest.xml' (* Included by default in 'AndroidManifest-FullPlugin_Sensor.xml'). - /// - /// - ///・Android端末が回転したときのコンフィグ変化を取得し、コールバックする。 - ///・ステータス情報は Androidシステム上で変化のあったときのみ送られる。 - ///・ステータスは以下のようになる(※基本的には "PORTRAIT" または "LANDSCAPE" と考えて良い)。 - /// PORTRAIT : 画面が縦向き - /// LANDSCAPE : 画面が横向き - /// UNDEFINED : 未定義 (※普通はない) - /// UNKNOWN : 不明(※"SQUARE" の場合もこれになるが、普通はない) - ///※"ORIENTATION_SQUARE" は API 16 で廃止予定となっているため取得しない(→ UNKNOWN となるが、現在の端末には無いはず)。 - /// https://developer.android.com/reference/android/content/res/Configuration.html?hl=ja#ORIENTATION_LANDSCAPE - ///・画面回転を取得するには「AndroidManifest.xml」の「activity」タグに以下の属性が必要である(※Unity の場合、デフォルトで追加されている)。 - /// 'android:configChanges="orientation|screenSize"' - ///・通常、4方向に画面回転するアプリには「AndroidManifest.xml」の「activity」タグに以下の属性を付ける。 - /// 'android:screenOrientation="sensor"' - /// https://developer.android.com/guide/topics/manifest/activity-element.html - ///※「FullPluginOnUnityPlayerActivity」を「AndroidManifest.xml」で使う必要がある(※「AndroidManifest-FullPlugin_Sensor.xml」にはデフォルトで含まれている)。 - /// - public class OrientationStatusController : MonoBehaviour - { - //Inspector settings - public bool startListeningOnEnable = false; //Automatically set listener with 'OnEnable()' (Always removed in 'OnDisable()'). //OnEnable() でリスナーを自動で登録する(OnDisable() では常に解除する)。 - - //Callbacks - [Serializable] public class StatusChangedHandler : UnityEvent { } //orientation status - public StatusChangedHandler OnStatusChanged; - - - // Use this for initialization - private void Start() - { - - } - - private void OnEnable() - { - if (startListeningOnEnable) - StartListening(); - } - - private void OnDisable() - { - StopListening(); - } - - private void OnDestroy() - { - StopListening(); - } - - private void OnApplicationQuit() - { - StopListening(); - } - - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Set listener for orientation information acquisition. - //画面回転の情報取得のリスニングを開始する - public void StartListening() - { -#if UNITY_EDITOR - Debug.Log("OrientationStatusController.StartListening called"); -#elif UNITY_ANDROID - AndroidPlugin.SetOrientationChangeListener(gameObject.name, "ReceiveStatus"); -#endif - } - - //Remove (release) listener for orientation information acquisition. - //画面回転の情報取得のリスニングを停止(解放)する - public void StopListening() - { -#if UNITY_EDITOR - Debug.Log("OrientationStatusController.StopListening called"); -#elif UNITY_ANDROID - AndroidPlugin.RemoveOrientationChangeListener(); -#endif - } - - - //Callback handler for battery information. - private void ReceiveStatus(string status) - { - if (string.IsNullOrEmpty(status)) - return; - - if (OnStatusChanged != null) - OnStatusChanged.Invoke(status); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/OrientationStatusController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/OrientationStatusController.cs.meta deleted file mode 100644 index 05bec80b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/OrientationStatusController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9cd1f63f8945158438044f5ea83da73a -timeCreated: 1520492343 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/PermissionCheckController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/PermissionCheckController.cs deleted file mode 100644 index 8cb3d462..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/PermissionCheckController.cs +++ /dev/null @@ -1,193 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Permission Check Controller - /// - /// Check if permission is given and call back (Synonymous with 'in AndroidManifest.xml'). - ///·Requestable permissions need to be written in "AndroidManifest.xml" in advance. - ///·There is no request on the device before API 23 (Android 6.0), always callback only the result. - ///·The explanation dialog of the rationale will not always appear if the user checks "Don't ask again" on request. - ///·Use "Constant Value" in the developer manual for the permission string (eg: "android.permission.WRITE_EXTERNAL_STORAGE"). - /// https://developer.android.com/reference/android/Manifest.permission.html - /// - /// - /// パーミッションが許可(付与)されているかどうかを調べ、コールバックする(「AndroidManifest.xml」にあるか?と同義)。 - ///・要求できるパーミッションはあらかじめ「AndroidManifest.xml」に書かれている必要がある。 - ///・API 23 (Android 6.0) より前のデバイスでは要求は出ず、常に結果のみをコールバックする。 - ///・根拠の説明ダイアログは、要求のときユーザーが「今後表示しない」をチェックすると常に出なくなる。 - ///・パーミッションの文字列はデベロッパーマニュアルの「Constant Value」を使う(例:"android.permission.WRITE_EXTERNAL_STORAGE")。 - /// https://developer.android.com/reference/android/Manifest.permission.html - ///========================================================== - ///·Permissions used in fantomPlugin are as follows: - ///・プラグインで利用するパーミッションは以下の通り: - /// android.permission.RECORD_AUDIO - /// android.permission.WRITE_EXTERNAL_STORAGE (or android.permission.READ_EXTERNAL_STORAGE : When read only) - /// android.permission.BLUETOOTH - /// android.permission.VIBRATE - /// android.permission.BODY_SENSORS - ///========================================================== - /// - public class PermissionCheckController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public string permission = "android.permission.WRITE_EXTERNAL_STORAGE"; //Permission to check - - public bool checkOnStart = false; //Execute check automatically at 'Start()' - - public bool requestWhenNotGranted = false; //If permission is not granted, give explanation of the rationale dialog and request. - - public string title = "Title"; //Rationale dialog title - [Multiline] public string message = "Message"; //Rationale dialog message - - public string style = "android:Theme.DeviceDefault.Light.Dialog.Alert"; //Rationale dialog theme - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string titleID = "title"; //Rationale dialog title ID - public string messageID = "message"; //Rationale dialog message ID - } - public LocalizeData localize; - - - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //permission, granted - public ResultHandler OnResult; - - public UnityEvent OnGranted; //When permission granted - public UnityEvent OnDenied; //When permission denied - - [Serializable] public class AllowedHandler : UnityEvent { } //permission - public AllowedHandler OnAllowed; //When permission granted after the request - -#region Properties and Local values Section - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, title); - message = localize.localizeResource.Text(localize.messageID, message); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - title = localize.localizeResource.Text(localize.titleID, language, title); - message = localize.localizeResource.Text(localize.messageID, language, message); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - if (checkOnStart) - CheckPermission(); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - -#pragma warning disable 0649 //oldGranted' is never assigned to, and will always have its default value `false'. (But it is used for Android Platform.) - - bool oldGranted; - - //Check for permission (using local value) - public void CheckPermission() - { - if (string.IsNullOrEmpty(permission)) - return; - -#if UNITY_EDITOR - Debug.Log("PermissionCheckController.CheckPermission called."); -#elif UNITY_ANDROID - bool granted = oldGranted = AndroidPlugin.CheckPermission(permission); - - if (!granted && requestWhenNotGranted) - { - AndroidPlugin.CheckPermissionAndRequest(permission, title, message, gameObject.name, "ReceiveResultPermission", style); - } - else - { - if (OnResult != null) - { - OnResult.Invoke(permission, granted); - } - - if (granted) - { - if (OnGranted != null) - OnGranted.Invoke(); - } - else - { - if (OnDenied != null) - OnDenied.Invoke(); - } - } -#endif - } - - //Set permission string dynamically and check (current permission string will be overwritten) - public void CheckPermission(string permission) - { - this.permission = permission; - CheckPermission(); - } - - - //Callback hander of 'CheckPermissionAndRequest()' - private void ReceiveResultPermission(string result) - { - if (string.IsNullOrEmpty(result)) - return; - - bool granted = (result == "PERMISSION_GRANTED"); - - if (OnResult != null) - { - OnResult.Invoke(permission, granted); - } - - if (granted) - { - if (OnGranted != null) - OnGranted.Invoke(); - } - else - { - if (OnDenied != null) - OnDenied.Invoke(); - } - - if (OnAllowed != null) - { - if (granted && oldGranted != granted) - OnAllowed.Invoke(permission); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/PermissionCheckController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/PermissionCheckController.cs.meta deleted file mode 100644 index 95ef69d9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/PermissionCheckController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e387d0a6bea039c4c8d44a4296b7ffd6 -timeCreated: 1524108181 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/QRCodeScannerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/QRCodeScannerController.cs deleted file mode 100644 index 673d58f9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/QRCodeScannerController.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Launch QR Code (Bar Code) Scanner to acquire text. - /// Using ZXing ("zebra crossing") open source project (google). [ver.3.3.2] - /// https://github.com/zxing/zxing - /// (Apache License Version 2.0) - /// http://www.apache.org/licenses/LICENSE-2.0 - ///·Launch the QR Code Scanner application of ZXing and obtain the result text. - ///·When cancellation or acquisition fails, it returns a empty character (""). - ///·If ZXing's QR Code Scanner application is not in the device, a dialog prompting installation will be displayed. - /// https://play.google.com/store/apps/details?id=com.google.zxing.client.android - /// - /// - /// QRコード(バーコード)スキャナを起動してテキストを取得する。 - /// ZXing オープンソースプロジェクト(google)を利用。[ver.3.3.2] - /// https://github.com/zxing/zxing - /// (Apache License Version 2.0) - /// http://www.apache.org/licenses/LICENSE-2.0 - ///・ZXing の QRコードスキャナアプリを起動し、結果のテキストを取得する。 - ///・キャンセルまたは取得失敗したときなどは、空文字("")を返す。 - ///・端末に ZXing の QRコードスキャナアプリが入ってない場合は、インストールを促すダイアログが表示される。 - /// https://play.google.com/store/apps/details?id=com.google.zxing.client.android - /// - public class QRCodeScannerController : MonoBehaviour - { - //Callbacks - [Serializable] public class ResultHandler : UnityEvent { } //text string - public ResultHandler OnResult; - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Launch QR Code Scanner - public void Show() - { -#if UNITY_EDITOR - Debug.Log("QRCodeScannerController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.ShowQRCodeScanner(gameObject.name, "ReceiveResult"); -#endif - } - - //Returns value when Barcode scan succeed - private void ReceiveResult(string text) - { - if (OnResult != null) - OnResult.Invoke(text); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/QRCodeScannerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/QRCodeScannerController.cs.meta deleted file mode 100644 index 2adca332..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/QRCodeScannerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1726525528a5c374ca6bb027fcc6262e -timeCreated: 1523090309 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SendTextController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SendTextController.cs deleted file mode 100644 index bb5213a8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SendTextController.cs +++ /dev/null @@ -1,162 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Send Text Controller - /// - ///・Send text with Chooser (application selection widget). - ///・If you send it to Twitter application etc., you can share the text. - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// - ///・Chooser(アプリ選択ウィジェット)でテキストの送信をする。 - ///・Twitterなどに送れば、テキストをシェアできる。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// - public class SendTextController : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public Text targetText; //UI Text (When using 'Send()') - - [Serializable] - public enum SelectionType - { - Implicit, //System default - Chooser, //Select with Chooser - } - public SelectionType selectionType = SelectionType.Chooser; - - public string chooserTitle = "Select the application to share this text."; //Title of chooser. - - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string chooserTitleID = "chooserTitle"; - } - public LocalizeData localize; - -#region Properties and Local values Section - - //Initialize localized string - private void ApplyLocalize() - { - if (localize.localizeResource != null) - { - chooserTitle = localize.localizeResource.Text(localize.chooserTitleID, chooserTitle); - } - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - if (localize.localizeResource != null) - { - chooserTitle = localize.localizeResource.Text(localize.chooserTitleID, language, chooserTitle); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - - //Send the text of targetText. - public void Send() - { - if (targetText == null || string.IsNullOrEmpty(targetText.text)) - return; -#if UNITY_EDITOR - Debug.Log("SendTextController.Send : " + targetText.text); -#elif UNITY_ANDROID - switch (selectionType) - { - case SelectionType.Implicit: - AndroidPlugin.StartActionSendText(targetText.text); - break; - case SelectionType.Chooser: - AndroidPlugin.StartActionSendText(targetText.text, chooserTitle); - break; - } -#endif - } - - //Send text dynamically (It does not affect 'UI-Text'). - public void Send(string text) - { - if (string.IsNullOrEmpty(text)) - return; -#if UNITY_EDITOR - Debug.Log("SendTextController.Send : " + text); -#elif UNITY_ANDROID - switch (selectionType) - { - case SelectionType.Implicit: - AndroidPlugin.StartActionSendText(text); - break; - case SelectionType.Chooser: - AndroidPlugin.StartActionSendText(text, chooserTitle); - break; - } -#endif - } - - //Send text with attached file. - //Send text dynamically (It does not affect 'UI-Text'). - public void Send(string text, string contentURI) - { - if (string.IsNullOrEmpty(text)) - return; -#if UNITY_EDITOR - Debug.Log("SendTextController.Send : " + text + ", contentURI = " + contentURI); -#elif UNITY_ANDROID - switch (selectionType) - { - case SelectionType.Implicit: - AndroidPlugin.StartActionSendTextWithAttachment(text, contentURI); - break; - case SelectionType.Chooser: - AndroidPlugin.StartActionSendTextWithAttachment(text, chooserTitle, contentURI); - break; - } -#endif - } - - //(*) LocalizeString overload - public void Send(LocalizeString text) - { - if (text != null) - Send(text.Text); - } - - //(*) LocalizeString overload - public void Send(LocalizeString text, string contentURI) - { - if (text != null) - Send(text.Text, contentURI); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SendTextController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SendTextController.cs.meta deleted file mode 100644 index 3b67a217..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SendTextController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 286fde40ed388ea4ca8616408093c72d -timeCreated: 1518425483 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SpeechRecognizerController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SpeechRecognizerController.cs deleted file mode 100644 index e818dcb9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SpeechRecognizerController.cs +++ /dev/null @@ -1,240 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Speech Recognizer Controller (Without dialog) - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Locale) - ///・Format:BCP47 (e.g. "en-US", "ja-JP") [* This plug-in can also be "en_US", "ja_JP" (under bar)] - /// https://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_LANGUAGE - /// https://tools.ietf.org/html/bcp47 - /// (Locale list) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - public class SpeechRecognizerController : MonoBehaviour - { - //Inspector Settings - [SerializeField] private string locale = ""; //Locale (e.g. "en", "en-US", "ja", "ja-JP") / empty = system default - - //Save PlayerPrefs Settings - public bool saveSetting = false; //Whether to save the settings (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for settings. - - //Callbacks - public UnityEvent OnReady; //Callback when microphone standby. - public UnityEvent OnBegin; //Callback when microphone begin speech recognization. - - [Serializable] public class ResultHandler : UnityEvent { } //recognization words - public ResultHandler OnResult; //Callback when recognization success - - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; //Callback when recognization fail - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SETTING_PREF = "_setting"; - const string LOCALE_KEY = "locale"; - - private Param setting = new Param(); //Compatibale Dictionary - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_setting'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SETTING_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - setting = Param.GetPlayerPrefs(SaveKey, setting); - Locale = setting.GetString(LOCALE_KEY, Locale); - } - - //Save local values manually. - public void SavePrefs() - { - setting.Set(LOCALE_KEY, Locale); - Param.SetPlayerPrefs(SaveKey, setting); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Properties - private static bool isSupportedRecognizer = false; //Cached supported Speech Recognizer (Because Recognizer shares one, it is static). - private static bool isSupportedChecked = false; //Already checked (Because Recognizer shares one, it is static). - - //Whether the device supports Speech Recognizer. - public bool IsSupportedRecognizer { - get { - if (!isSupportedChecked) - { -#if UNITY_EDITOR - isSupportedRecognizer = true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - isSupportedRecognizer = AndroidPlugin.IsSupportedSpeechRecognizer(); -#endif - isSupportedChecked = true; - } - return isSupportedRecognizer; - } - } - - //Whether necessary permissions are granted. - public bool IsPermissionGranted { - get { -#if UNITY_EDITOR - return true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - return AndroidPlugin.CheckPermission("android.permission.RECORD_AUDIO"); -#else - return false; -#endif - } - } - - //Change locale (empty is system default) - public string Locale { - get { return locale; } - set { - if (locale != value) - { - StopRecognizer(); - locale = (value == AndroidLocale.Default) ? "" : value; - - if (saveSetting) - SavePrefs(); - } - } - } - - - //Local Values - private bool canceled = false; //Interrupted recognizer flag (With the time lag of message reception, prevents callback events from occurring) - -#endregion - - // Use this for initialization - private void Awake() - { - if (saveSetting) - LoadPrefs(); - } - - private void Start() - { - if (!IsSupportedRecognizer) - { - if (OnError != null) - OnError.Invoke("Not supported: Speech Recognizer"); - } - if (!IsPermissionGranted) - { - if (OnError != null) - OnError.Invoke("Permission denied: RECORD_AUDIO"); - } - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start Speech Recognizer - public void StartRecognizer() - { - if (!IsSupportedRecognizer || !IsPermissionGranted) - return; - - canceled = false; -#if UNITY_EDITOR - Debug.Log("SpeechRecognizerController.StartRecognizer called"); -#elif UNITY_ANDROID - if (string.IsNullOrEmpty(locale)) - AndroidPlugin.StartSpeechRecognizer( - gameObject.name, "ReceiveResult", "ReceiveError", "ReceiveReady", "ReceiveBegin"); - else - AndroidPlugin.StartSpeechRecognizer(locale, - gameObject.name, "ReceiveResult", "ReceiveError", "ReceiveReady", "ReceiveBegin"); -#endif - } - - - //Microphone standby state - private void ReceiveReady(string message) - { - if (canceled) - return; - - if (OnReady != null) - OnReady.Invoke(); - } - - //Microphone begin speech recognization state - private void ReceiveBegin(string message) - { - if (canceled) - return; - - if (OnBegin != null) - OnBegin.Invoke(); - } - - //Receive the result when speech recognition succeed. - private void ReceiveResult(string message) - { - if (canceled) - return; - - if (string.IsNullOrEmpty(message)) - return; - - if (OnResult != null) - OnResult.Invoke(message.Split('\n')); - } - - //Receive the error when speech recognition fail. - private void ReceiveError(string message) - { - if (canceled) - return; - - if (OnError != null) - OnError.Invoke(message); - } - - - //Interrupt speech recognition - public void StopRecognizer() - { - canceled = true; -#if UNITY_EDITOR - Debug.Log("SpeechRecognizerController.StopRecognizer called"); -#elif UNITY_ANDROID - AndroidPlugin.ReleaseSpeechRecognizer(); -#endif - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SpeechRecognizerController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SpeechRecognizerController.cs.meta deleted file mode 100644 index 45c97c3d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/SpeechRecognizerController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 29c9ddd870bfbf245a9cb2c4ed682f21 -timeCreated: 1516874178 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageLoadTextController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageLoadTextController.cs deleted file mode 100644 index dce8e921..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageLoadTextController.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Storage Load Text Controller - ///(*) API 19 [Android4.4] or higher - /// - /// Read a text file with the Storage Access Framework (API 19 [Android4.4] or higher). - ///·Select a text file with something like a system explorer and return the loaded text. - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ○ | ok - /// One Drive | ○ | ok - /// - /// ストレージアクセス機能でテキストファイルを読み込む (API 19 [Android4.4] 以上) - ///・システムのエクスプローラのようなものでテキストファイルを選択し、ロードしたテキストを返す。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public class StorageLoadTextController : StorageOpenControllerBase - { - //Inspector Settings - public Text targetText; //UI Text - -#region Properties and Local values Section - - protected override string DefaultMimeType { - get { return AndroidMimeType.File.txt; } - } - -#endregion - - - const string ENCODING = "UTF-8"; - - //Call the default storage access framework (like explorer). - public override void Show() - { -#if UNITY_EDITOR - Debug.Log("StorageLoadTextController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageAndLoadText(ENCODING, MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError"); -#endif - } - - - //Callback handler when load text success - protected override void ReceiveResult(string text) - { - if (targetText != null) - targetText.text = text; - - if (OnResult != null) - OnResult.Invoke(text); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageLoadTextController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageLoadTextController.cs.meta deleted file mode 100644 index ae0612e6..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageLoadTextController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: faf4046a144a7b048a273d384b09398b -timeCreated: 1518408164 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenAudioController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenAudioController.cs deleted file mode 100644 index 36c5fd9d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenAudioController.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Open Audio Controller - ///(*) API 19 [Android 4.4] or higher - /// - /// Get a file path and audio information with the Storage Access Framework (API 19 [Android 4.4] or higher). - ///·Select a file with something like a system explorer and return the path and audio information. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// One Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// - /// ストレージアクセス機能でファイルのパスと音声情報を取得する (API 19 [Android 4.4] 以上) - ///・システムのエクスプローラのようなものでファイルを選択し、パスと音声情報を返す。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public class StorageOpenAudioController : StorageOpenControllerBase - { - //Callbacks - [Serializable] public class ResultInfoHandler : UnityEvent { } //{path, uri, etc...} - public ResultInfoHandler OnResultInfo; - -#region Properties and Local values Section - - protected override string DefaultMimeType { - get { return AndroidMimeType.Audio.All; } - } - -#endregion - - - //Call the Storage Access Framework (API 19 [Android 4.4] or higher). - public override void Show() - { -#if UNITY_EDITOR - Debug.Log("StorageOpenAudioController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageAudio(MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError"); //Always json -#endif - } - - - //Callback handler when receive result - protected override void ReceiveResult(string result) - { - if (result[0] == '{') //Json - { - AudioInfo info = JsonUtility.FromJson(result); - - OnResultInvokeOrError(info); - - if (OnResultInfo != null) - OnResultInfo.Invoke(info); //It is also possible when the path is empty. //パスが空のときも可 - } - else - ReceiveError(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenAudioController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenAudioController.cs.meta deleted file mode 100644 index deb48715..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenAudioController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8a3f3b19b060b7247b9a9f121d0caf99 -timeCreated: 1527850960 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenControllerBase.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenControllerBase.cs deleted file mode 100644 index aca9f113..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenControllerBase.cs +++ /dev/null @@ -1,192 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Open Controller Base - ///(*) API 19 [Android 4.4] or higher - /// - /// Get a file path with the Storage Access Framework (API 19 [Android 4.4] or higher). - ///·Select a file with something like a system explorer and return the path. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// One Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// - /// ストレージアクセス機能でファイルのパスを取得する (API 19 [Android 4.4] 以上) - ///・システムのエクスプローラのようなものでファイルを選択し、パスを返す。 - /// ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public abstract class StorageOpenControllerBase : MonoBehaviour - { - //Inspector Settings - [SerializeField] protected string[] mimeTypes; - - //Callbacks - //Callback when success. //成功時のコールバック - [Serializable] public class ResultHandler : UnityEvent { } //path (or text) - public ResultHandler OnResult; - - //Callback when error. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error message - public ErrorHandler OnError; - -#region Properties and Local values Section - - protected virtual string DefaultMimeType { - get { return AndroidMimeType.File.All; } - } - - //Multiple MIME type specifications. - //・For example, "text/comma-separated-values" and "text/csv" are used for csv file. - //(*) Note that valid MIME type by provider (storage) is different and may not apply. - // - //複数の MIME type 指定。 - //・例えば、csv ファイルは "text/comma-separated-values" と "text/csv" が使われる。 - //※プロバイダ(ストレージ)によって有効な MIME type は異なり、適用されない場合もあるので注意。 - public virtual string[] MimeTypes { - get { - if (mimeTypes == null || mimeTypes.Length == 0) - mimeTypes = new string[] { DefaultMimeType }; - - return mimeTypes; - } - set { - if (value != null && value.Length > 0) - mimeTypes = value; - else - mimeTypes = new string[] { DefaultMimeType }; - } - } - - //Set up as a single MIME type. However, it is internally managed by array. - //(*) Acquisition returns [0]. When multiple MIME types are set, it is desirable that [0] is the main one. - //(*) Note that valid MIME type by provider (storage) is different and may not apply. - // - //単一で MIME type 設定。ただし、内部では配列で管理される。 - //※取得は [0] が返される。複数の MIME type がセットされてる場合、[0] が主要なものであることが望ましい。 - //※プロバイダ(ストレージ)によって有効な MIME type は異なり、適用されない場合もあるので注意。 - public virtual string MimeType { - get { - return MimeTypes[0]; - } - set { - string mimeType = value; - if (string.IsNullOrEmpty(mimeType)) - mimeType = DefaultMimeType; - - if (mimeTypes != null && mimeTypes.Length == 1) - mimeTypes[0] = mimeType; - else - mimeTypes = new string[]{ mimeType }; - } - } - -#endregion - - // Use this for initialization - protected void Awake() - { - if (mimeTypes == null || mimeTypes.Length == 0) - MimeType = DefaultMimeType; - } - - protected void Start() - { - - } - - // Update is called once per frame - //protected void Update() - //{ - - //} - - - //Call the Storage Access Framework (API 19 [Android 4.4] or higher). - public virtual void Show() - { -#if UNITY_EDITOR - Debug.Log(name + " Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageFile(MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError", true); //Always Json -#endif - } - - - protected virtual string ErrorMessage { - get { return "Failed to get path."; } - } - - protected ContentInfo info; - - //Callback handler when receive result - protected virtual void ReceiveResult(string result) - { - if (result[0] == '{') //Json - { - info = JsonUtility.FromJson(result); - OnResultInvokeOrError(info); - } - else - ReceiveError(result); - } - - //If 'OnResult' is not empty, invoke or error. - //OnResult が空でないとき、コールバックまたはエラーが発生する - protected virtual void OnResultInvokeOrError(ContentInfo info) - { - if (!IsNullOrEmpty(OnResult)) - { - if (!string.IsNullOrEmpty(info.path)) - OnResult.Invoke(info.path); - else - ReceiveError(ErrorMessage); - } - } - - //Callback handler when receive error - protected virtual void ReceiveError(string message) - { - if (OnError != null) - OnError.Invoke(message); - } - -#region Static method etc. Section - - // Returns whether or not callback is empty to the UnityEvent of the inspector. - //(*) Note that those registered with 'UnityEvent.AddListener()' are ignored. - // - // インスペクタの UnityEvent にコールバック空か否かを返す。 - //※UnityEvent.AddListener() で登録したものは無視されるので注意。 - protected static bool IsNullOrEmpty (UnityEvent obj) - { - if (obj != null) - { - int count = obj.GetPersistentEventCount(); //for inspector only - for (int i = 0; i < count; i++) - { - if (!string.IsNullOrEmpty(obj.GetPersistentMethodName(i))) //for inspector only - return false; - } - } - return true; - } - -#endregion - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenControllerBase.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenControllerBase.cs.meta deleted file mode 100644 index d5f74fce..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenControllerBase.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f93b280d495d75847a7e058e072aac65 -timeCreated: 1528694642 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFileController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFileController.cs deleted file mode 100644 index e113e5ad..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFileController.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Open File Controller - ///(*) API 19 [Android 4.4] or higher - /// - /// Get a file path with the Storage Access Framework (API 19 [Android 4.4] or higher). - ///·Select a file with something like a system explorer and return the path. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// One Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// - /// ストレージアクセス機能でファイルのパスを取得する (API 19 [Android 4.4] 以上) - ///・システムのエクスプローラのようなものでファイルを選択し、パスを返す。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public class StorageOpenFileController : StorageOpenControllerBase - { - //Callbacks - [Serializable] public class ResultInfoHandler : UnityEvent { } //{path, uri} - public ResultInfoHandler OnResultInfo; - - - - //Callback handler when receive result - protected override void ReceiveResult(string result) - { - if (result[0] == '{') //Json - { - ContentInfo info = JsonUtility.FromJson(result); - - OnResultInvokeOrError(info); - - if (OnResultInfo != null) - OnResultInfo.Invoke(info); //It is also possible when the path is empty. //パスが空のときも可 - } - else - ReceiveError(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFileController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFileController.cs.meta deleted file mode 100644 index a33e7617..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFileController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 81ef0c1a686c0b9479c7c3a582096e27 -timeCreated: 1527850927 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFolderController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFolderController.cs deleted file mode 100644 index e2c2266e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFolderController.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Open Folder Controller - ///(*) API 21 [Android 5.0] or higher - /// - /// Get a foler path with the Storage Access Framework (API 21 [Android 5.0] or higher). - ///·Select a folder with something like a system explorer and return the path. - ///(*) Note that depending on the returned URI, path conversion is impossible (Google Drive and other cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ─ | -- - /// One Drive | ─ | -- - /// - /// ストレージアクセス機能でフォルダのパスを取得する (API 21 [Android 5.0] 以上) - ///・システムのエクスプローラのようなものでフォルダを選択し、パスを返す。 - ///※返される URI によってはパス変換できないので注意(Google Drive やその他クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public class StorageOpenFolderController : MonoBehaviour - { - //Callbacks - //Callback when success. //成功時のコールバック - [Serializable] public class ResultHandler : UnityEvent { } //path - public ResultHandler OnResult; - - [Serializable] public class ResultInfoHandler : UnityEvent { } //{path, uri} - public ResultInfoHandler OnResultInfo; - - //Callback when error. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error message - public ErrorHandler OnError; - - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Call the Storage Access Framework (API 19 [Android 4.4] or higher). - public void Show() - { -#if UNITY_EDITOR - Debug.Log("StorageOpenFolderController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageFolder(gameObject.name, "ReceiveResult", "ReceiveError", true); //Always resultIsJson = true -#endif - } - - - private string ErrorMessage { - get { return "Failed to get path."; } - } - - //Callback handler when receive result - private void ReceiveResult(string result) - { - if (result[0] == '{') //When Json, success. //Json のとき、取得成功 - { - ContentInfo info = JsonUtility.FromJson(result); - - if (OnResult != null) - { - if (!string.IsNullOrEmpty(info.path)) - OnResult.Invoke(info.path); - else - ReceiveError(ErrorMessage); - } - if (OnResultInfo != null) - OnResultInfo.Invoke(info); //It is also possible when the path is empty. //パスが空のときも可 - } - else - ReceiveError(result); - } - - //Callback handler when receive error - private void ReceiveError(string message) - { - if (OnError != null) - OnError.Invoke(message); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFolderController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFolderController.cs.meta deleted file mode 100644 index 310f5f11..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenFolderController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7b93cf59be168d54f841879a8bf142ed -timeCreated: 1527850943 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenImageController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenImageController.cs deleted file mode 100644 index 70180e09..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenImageController.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Open Image Controller - ///(*) API 19 [Android 4.4] or higher - /// - /// Get a file path and image information with the Storage Access Framework (API 19 [Android 4.4] or higher). - ///·Select a file with something like a system explorer and return the path and image information. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// One Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// - /// ストレージアクセス機能でファイルのパスと画像情報を取得する (API 19 [Android 4.4] 以上) - ///・システムのエクスプローラのようなものでファイルを選択し、パスと画像情報を返す。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public class StorageOpenImageController : StorageOpenControllerBase - { - //Callbacks - [Serializable] public class ResultInfoHandler : UnityEvent { } //{path, uri, etc...} - public ResultInfoHandler OnResultInfo; - -#region Properties and Local values Section - - protected override string DefaultMimeType { - get { return AndroidMimeType.Image.All; } - } - -#endregion - - - //Call the Storage Access Framework (API 19 [Android 4.4] or higher). - public override void Show() - { -#if UNITY_EDITOR - Debug.Log("StorageOpenImageController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageImage(MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError"); //Always json -#endif - } - - - //Callback handler when receive result - protected override void ReceiveResult(string result) - { - if (result[0] == '{') //Json - { - ImageInfo info = JsonUtility.FromJson(result); - - OnResultInvokeOrError(info); - - if (OnResultInfo != null) - OnResultInfo.Invoke(info); //It is also possible when the path is empty. //パスが空のときも可 - } - else - ReceiveError(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenImageController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenImageController.cs.meta deleted file mode 100644 index 7984d7ce..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenImageController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 950b227461e43f54694375017bd7cb92 -timeCreated: 1527943130 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenVideoController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenVideoController.cs deleted file mode 100644 index 42891364..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenVideoController.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Open Video Controller - ///(*) API 19 [Android 4.4] or higher - /// - /// Get a file path and video information with the Storage Access Framework (API 19 [Android 4.4] or higher). - ///·Select a file with something like a system explorer and return the path and video information. - ///·Information that can be acquired in order of Local storage > SD card > Cloud storage becomes more. - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// One Drive | ▲ | Some information can not be acquired ('path' is always empty). - /// - /// ストレージアクセス機能でファイルのパスと音声情報を取得する (API 19 [Android 4.4] 以上) - ///・システムのエクスプローラのようなものでファイルを選択し、パスと音声情報を返す。 - ///・ローカルストレージ > SDカード > クラウドストレージ の順に取得できる情報が多くなる。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - /// - public class StorageOpenVideoController : StorageOpenControllerBase - { - //Callbacks - [Serializable] public class ResultInfoHandler : UnityEvent { } //{path, uri, etc...} - public ResultInfoHandler OnResultInfo; - -#region Properties and Local values Section - - protected override string DefaultMimeType { - get { return AndroidMimeType.Video.All; } - } - -#endregion - - - //Call the Storage Access Framework (API 19 [Android 4.4] or higher). - public override void Show() - { -#if UNITY_EDITOR - Debug.Log("StorageOpenVideoController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageVideo(MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError"); //Always json -#endif - } - - - //Callback handler when receive result - protected override void ReceiveResult(string result) - { - if (result[0] == '{') //Json - { - VideoInfo info = JsonUtility.FromJson(result); - - OnResultInvokeOrError(info); - - if (OnResultInfo != null) - OnResultInfo.Invoke(info); //It is also possible when the path is empty. //パスが空のときも可 - } - else - ReceiveError(result); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenVideoController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenVideoController.cs.meta deleted file mode 100644 index b0d00206..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageOpenVideoController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 4443f7cb6fd462a4b9959cde28d28169 -timeCreated: 1527943144 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveFileController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveFileController.cs deleted file mode 100644 index e7386189..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveFileController.cs +++ /dev/null @@ -1,286 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.IO; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Storage Save File Controller - ///(*) API 19 [Android 4.4] or higher - /// - /// Get a file path for save with the Storage Access Framework (API 19 [Android 4.4] or higher). - ///·Gives the file a name with something like a system explorer and return the path. - ///·After execution, 0 byte file is created, so you can save data etc. by overwriting as it is. - ///·Basically from Unity you can save directly to Local storage only (security reason, external storage write is limited). - ///·When saved from Unity, the Android system does not automatically recognize it, so it will be able to recognize by running Media Scanner. - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | × | ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED - /// Google Drive | × | ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED - /// One Drive | ─ | -- - /// - /// ストレージアクセス機能で保存用のファイルのパスを取得する (API 19 [Android 4.4] 以上) - ///・システムのエクスプローラのようなものでファイルに名前を付けてパスを返す。 - ///・実行後は0バイトのファイルが作成されるので、そのまま上書きすればデータなどを保存できる。 - ///・基本的に Unity からはローカルストレージにのみ直接保存できる(セキュリティ上、外部ストレージ書き込みは制限される)。 - ///・Unity から保存した場合、Android システムは自動では認識しないので、Media Scanner を走らせることで認識できるようになる。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - ///※値の保存(saveValue)を利用するときは、特定の保存名(saveKey)を個々に与えた方が良い。 - /// - public class StorageSaveFileController : MonoBehaviour - { - //Inspector settings - [SerializeField] private string fileName = DEFAULT_FILENAME; //FileName to save (not include directory path). //保存するファイル名(ディレクトリパスは含まない) - [SerializeField] private string[] mimeTypes = { AndroidMimeType.File.All }; - public bool syncExtension = true; //Add extension to fileName by MiME type automatically - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the last result path. - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. //特定の保存名を付けるとき - - - //Callbacks - //Callback when specific file path for save. //結果のコールバック - [Serializable] public class ResultHandler : UnityEvent { } //absolute path - public ResultHandler OnResult; - - [Serializable] public class ResultInfoHandler : UnityEvent { } //file information {path, uri, ...} - public ResultInfoHandler OnResultInfo; - - //Callback when error. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error message - public ErrorHandler OnError; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string PATH_PREF = "_path"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_path'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + PATH_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - path = PlayerPrefs.GetString(SaveKey, path); //Last saved path, but actually using file name only - if (!string.IsNullOrEmpty(path)) - fileName = Path.GetFileName(path); - } - - //Save local values manually. - public void SavePrefs() - { - PlayerPrefs.SetString(SaveKey, path); //Last saved path, but actually using file name only - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - const string DEFAULT_MIME_TYPE = AndroidMimeType.File.All; - const string DEFAULT_FILENAME = "NewDocument.txt"; - private string path = ""; //Last result path (only fileName is actually used) - - //DEFAULT_FILENAME synchronized extension by MIME type - string DefaultFileName { - get { - if (syncExtension) - { - var ext = AndroidMimeType.GetExtension(MimeType); //nothing or all("*") = null - if (ext != null && ext.Length > 0) - return Path.ChangeExtension(DEFAULT_FILENAME, ext[0]); //'.' can be either with or without it - } - return DEFAULT_FILENAME; - } - } - - //The currently (last result) path. - //(*) Since it returns the result after execution, it is always empty in the initial state (or saved path). - //※実行後の結果を返すため、初期状態では常に空になる(または保存されているパス)。 - public string CurrentValue { - get { return path; } - } - - //File name to save - //(*) Note that it will be different from CurrentValue (path) if set. - //※セットした場合、CurrentValue(path)とは異なる値になるので注意。 - public string FileName { - get { return fileName; } - set { - fileName = string.IsNullOrEmpty(value) ? DefaultFileName : value; - } - } - - //Fit extension to MIME type. - //(*) When there is no corresponding extension (including "*"), it is ignored (= as it is at present). - //(*) If there are multiple corresponding extensions, [0] is used. - // - //拡張子を MIME type に合わせる。 - //※対応する拡張子がないとき("*"も含む)は無視される(=現状のまま)。 - //※複数の対応拡張子がある場合、[0] が使われる。 - private void SyncFileNameExtension() - { - if (string.IsNullOrEmpty(FileName)) - return; - - var ext = AndroidMimeType.GetExtension(MimeTypes[0]); //nothing or all("*") = null - if (ext != null && ext.Length > 0) //Ignore if not found (It will stay at the current setting) - FileName = Path.ChangeExtension(fileName, ext[0]); //'.' can be either with or without it - } - - //Multiple MIME type specifications. - //・For example, "text/comma-separated-values" and "text/csv" are used for csv file. - //(*) Note that valid MIME type by provider (storage) is different and may not apply. - // - //複数の MIME type 指定。 - //・例えば、csv ファイルは "text/comma-separated-values" と "text/csv" が使われる。 - //※プロバイダ(ストレージ)によって有効な MIME type は異なり、適用されない場合もあるので注意。 - public string[] MimeTypes { - get { - if (mimeTypes == null || mimeTypes.Length == 0) - mimeTypes = new string[] { DEFAULT_MIME_TYPE }; - - return mimeTypes; - } - set { - if (value != null && value.Length > 0) - mimeTypes = value; - else - mimeTypes = new string[] { DEFAULT_MIME_TYPE }; - - if (syncExtension) - SyncFileNameExtension(); - } - } - - //Set up as a single MIME type. However, it is internally managed by array. - //(*) Acquisition returns [0]. When multiple MIME types are set, it is desirable that [0] is the main one. - //(*) Note that valid MIME type by provider is different and may not apply. - // - //単一で MIME type 設定。ただし、内部では配列で管理される。 - //※取得は [0] が返される。複数の MIME type がセットされてる場合、[0] が主要なものであることが望ましい。 - //※プロバイダによって有効な MIME type は異なり、適用されない場合もあるので注意。 - public string MimeType { - get { - return MimeTypes[0]; - } - set { - string mimeType = value; - if (string.IsNullOrEmpty(mimeType)) - mimeType = DEFAULT_MIME_TYPE; - - if (mimeTypes != null && mimeTypes.Length == 1) - mimeTypes[0] = mimeType; - else - mimeTypes = new string[]{ mimeType }; - - if (syncExtension) - SyncFileNameExtension(); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - fileName = DefaultFileName; //If syncExtension is true, add ext - - if (saveValue) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - - //Call the default storage access framework (like explorer). - //Set fileName dynamically (current value will be overwritten). - public void Show() - { -#if UNITY_EDITOR - Debug.Log("StorageSaveFileController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageForSave(fileName, MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError", true); -#endif - } - - //Call the default storage access framework (like explorer). - //Set fileName dynamically (current value will be overwritten). - public void Show(string fileName) - { - this.fileName = fileName; - Show(); - } - - - //Callback handler when save text success - private void ReceiveResult(string result) - { - if (result[0] == '{') //Json - { - ContentInfo info = JsonUtility.FromJson(result); - path = info.path; - if (!string.IsNullOrEmpty(info.name)) - { - fileName = info.name; - if (string.IsNullOrEmpty(fileName) && !string.IsNullOrEmpty(path)) - fileName = Path.GetFileName(path); - } - - if (saveValue) - SavePrefs(); - - if (OnResult != null) - OnResult.Invoke(info.path); - - if (OnResultInfo != null) - OnResultInfo.Invoke(info); - } - else - ReceiveError(result); - } - - //Callback handler when error - private void ReceiveError(string message) - { - if (OnError != null) - OnError.Invoke(message); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveFileController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveFileController.cs.meta deleted file mode 100644 index 77ad352a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveFileController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e53f9abff1bf20f458d6cad5b0b1181d -timeCreated: 1527945247 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs deleted file mode 100644 index 1a96372c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs +++ /dev/null @@ -1,259 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Storage Save Text Controller - ///(*) API 19 [Android4.4] or higher - /// - /// Write a text file with the Storage Access Framework (API 19 [Android4.4] or higher). - ///·Select a text file with something like a system explorer and return the loaded text. - ///·Write fails in cloud storage (It seems that security can not be saved directly). - ///(*) Note that depending on the returned URI, path conversion is impossible (Cloud storage, etc.). - ///(*) Sometimes it can not be get correctly depending on the authority (security) or the folder in which it is placed. - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveValue), it is better to give a specific save name (saveKey) individually. - /// - /// (Available storage) - /// Local | ○ | ok - /// SD card | ○ | ok - /// Google Drive | × | ERROR_CREATE_DOCUMENT_WRITE_ACCESS_DENIED - /// One Drive | ─ | -- - /// - /// ストレージアクセス機能でテキストファイルを読み込む (API 19 [Android4.4] 以上) - ///・システムのエクスプローラのようなものでテキストファイルを選択し、ロードしたテキストを返す。 - ///・クラウドストレージには保存に失敗する(セキュリティ上、直接保存できないと思われる)。 - ///※返される URI によってはパス変換できないので注意(クラウドストレージ等)。 - ///※権限(セキュリティ)や配置しているフォルダなどによっても正しく取得できないことがある。 - ///※Android → Unity への結果コールバックは「GameObject.name」で受信されるため、ヒエラルキー上ではユニークが良い。 - ///※値の保存(saveValue)を利用するときは、特定の保存名(saveKey)を個々に与えた方が良い。 - /// - public class StorageSaveTextController : MonoBehaviour - { - //Inspector settings - public Text targetText; //UI Text - - public string fileName = DEFAULT_FILENAME; //FileName to save (not include directory path). //保存するファイル名(ディレクトリパスは含まない) - [SerializeField] private string[] mimeTypes = { AndroidMimeType.File.txt }; - public bool syncExtension = true; //Add extension to fileName by MiME type automatically - - //Save PlayerPrefs Settings - public bool saveValue = false; //Whether to save the last fileName (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key. //特定の保存名を付けるとき - - - //Callbacks - //Callback when saved text (UTF-8). //セーブ成功時のコールバック - [Serializable] public class ResultHandler : UnityEvent { } //saved file name (not include directory path) - public ResultHandler OnResult; - - //Callback when error. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error message - public ErrorHandler OnError; - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string FILE_PREF = "_file"; - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_file'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + FILE_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - fileName = PlayerPrefs.GetString(SaveKey, fileName); - } - - //Save local values manually. - public void SavePrefs() - { - PlayerPrefs.SetString(SaveKey, fileName); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - const string DEFAULT_MIME_TYPE = AndroidMimeType.File.txt; - const string DEFAULT_FILENAME = "NewDocument.txt"; - - //The currently (default) fileName. - //・If saveValue is true, it will be automatically saved. - public string CurrentValue { - get { return FileName; } - set { FileName = value; } - } - - //File name to save - //・If saveValue is true, it will be automatically saved. - public string FileName { - get { return fileName; } - set { - fileName = string.IsNullOrEmpty(value) ? DEFAULT_FILENAME : value; - if (saveValue) - SavePrefs(); - } - } - - //Fit extension to MIME type. - //(*) When there is no corresponding extension (including "*"), it is ignored (= as it is at present). - //(*) If there are multiple corresponding extensions, [0] is used. - // - //拡張子を MIME type に合わせる。 - //※対応する拡張子がないとき("*"も含む)は無視される(=現状のまま)。 - //※複数の対応拡張子がある場合、[0] が使われる。 - private void SyncFileNameExtension() - { - if (string.IsNullOrEmpty(FileName)) - return; - - var ext = AndroidMimeType.GetExtension(MimeTypes[0]); //nothing or all(*) = null - if (ext != null && ext.Length > 0) //Ignore if not found (It will stay at the current setting) - FileName = Path.ChangeExtension(fileName, ext[0]); //'.' can be either with or without it - } - - - //Multiple MIME type specifications. - //・For example, "text/comma-separated-values" and "text/csv" are used for csv file. - //(*) Note that valid MIME type by provider is different and may not apply. - // - //複数の MIME type 指定。 - //・例えば、csv ファイルは "text/comma-separated-values" と "text/csv" が使われる。 - //※プロバイダによって有効な MIME type は異なり、適用されない場合もあるので注意。 - public string[] MimeTypes { - get { - if (mimeTypes == null || mimeTypes.Length == 0) - mimeTypes = new string[] { DEFAULT_MIME_TYPE }; - - return mimeTypes; - } - set { - if (value != null && value.Length > 0) - mimeTypes = value; - else - mimeTypes = new string[] { DEFAULT_MIME_TYPE }; - - if (syncExtension) - SyncFileNameExtension(); - } - } - - //Set up as a single MIME type. However, it is internally managed by array. - //(*) Acquisition returns [0]. When multiple MIME types are set, it is desirable that [0] is the main one. - //(*) Note that valid MIME type by provider is different and may not apply. - // - //単一で MIME type 設定。ただし、内部では配列で管理される。 - //※取得は [0] が返される。複数の MIME type がセットされてる場合、[0] が主要なものであることが望ましい。 - //※プロバイダによって有効な MIME type は異なり、適用されない場合もあるので注意。 - public string MimeType { - get { - return MimeTypes[0]; - } - set { - string mimeType = value; - if (string.IsNullOrEmpty(mimeType)) - mimeType = DEFAULT_MIME_TYPE; - - if (mimeTypes != null && mimeTypes.Length == 1) - mimeTypes[0] = mimeType; - else - mimeTypes = new string[]{ mimeType }; - - if (syncExtension) - SyncFileNameExtension(); - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - if (saveValue) - LoadPrefs(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - const string ENCODING = "UTF-8"; - - //Overload to save the contents of UI-Text - //UI-Textの内容を保存するオーバーロード - public void Show() - { - if (targetText != null) - Show(targetText.text); - } - - //Call the default storage access framework (like explorer). - public void Show(string text) - { -#if UNITY_EDITOR - Debug.Log("StorageSaveTextController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenStorageAndSaveText(fileName, text, ENCODING, MimeTypes, gameObject.name, "ReceiveResult", "ReceiveError"); -#endif - } - - //Call the default storage access framework (like explorer). - //Set fileName dynamically (current value will be overwritten). - public void Show(string fileName, string text) - { - this.fileName = fileName; - Show(text); - } - - - //Callback handler when save text success - private void ReceiveResult(string fileName) - { - if (saveValue) - { - this.fileName = fileName; - SavePrefs(); - } - - if (OnResult != null) - OnResult.Invoke(fileName); - } - - //Callback handler when error - private void ReceiveError(string message) - { - if (OnError != null) - OnError.Invoke(message); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs.meta deleted file mode 100644 index 078cea66..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/StorageSaveTextController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a17a5d249e195fc40a7c838a25ceaafe -timeCreated: 1518367548 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/TextToSpeechController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/TextToSpeechController.cs deleted file mode 100644 index f266f27e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/TextToSpeechController.cs +++ /dev/null @@ -1,443 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Text To Speech Controller - /// - ///(*) Callback from Android to Unity is received under 'GameObject.name'. That is, it is unique within the hierarchy. - ///(*) When using value save (saveSetting), it is better to give a specific save name (saveKey) individually. - /// - /// (Locale) - ///・Format : "language_country" (e.g. "en", "en_US", "ja", "ja_JP") - ///・language : ISO 639 alpha-2 or alpha-3 language code - ///・country(region) : ISO 639 alpha-2 or alpha-3 language code - /// https://developer.android.com/reference/java/util/Locale - /// (Locale list) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - public class TextToSpeechController : MonoBehaviour - { - //Inspector Settings - [SerializeField] private string locale = ""; //Locale (e.g. "en", "en_US", "ja", "ja_JP") / empty = system default - - const float STEP_MIN = 0.01f; //Speed and pitch increase/decrease amount. To increase the decimal places, it need to increase pow10 (static variable). - - //Inspector Settings - [SerializeField, Range(0.5f, 2.0f)] private float speed = 1; //Speech speed (1.0 is recommended on startup) - [SerializeField, Range(STEP_MIN, 2.0f)] private float speedStep = 0.05f; //Speech speed increase/decrease amount - [SerializeField, Range(0.5f, 2.0f)] private float pitch = 1; //Voice pitch (1.0 is recommended on startup) - [SerializeField, Range(STEP_MIN, 2.0f)] private float pitchStep = 0.05f; //Voice pitch increase/decrease amount - - //Save PlayerPrefs Settings - public bool saveSetting = false; //Whether to save the settings (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for settings. - - //Callbacks - public UnityEvent OnStart; //Callback when speech started - public UnityEvent OnDone; //Callback when speech finished - - [Serializable] public class StopHandler : UnityEvent { } //status message - public StopHandler OnStop; //Callback when interrupted - - [Serializable] public class StatusHandler : UnityEvent { } //status message - public StatusHandler OnStatus; //Callback when initialize and errors - - [Serializable] public class SpeedChangedHandler : UnityEvent { } //Speed after change - public SpeedChangedHandler OnSpeedChanged; //Callback when speed changed - - [Serializable] public class PitchChangedHandler : UnityEvent { } //Pitch after change - public PitchChangedHandler OnPitchChanged; //Callback when pitch changed - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SETTING_PREF = "_setting"; - const string SPEED_KEY = "speed"; - const string PITCH_KEY = "pitch"; - const string SPEED_STEP_KEY = "speedStep"; - const string PITCH_STEP_KEY = "pitchStep"; - const string LOCALE_KEY = "locale"; - - private Param setting = new Param(); //Compatibale Dictionary - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_setting'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SETTING_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - setting = Param.GetPlayerPrefs(SaveKey, setting); - speedStep = Mathf.Clamp(setting.GetFloat(SPEED_STEP_KEY, speedStep), STEP_MIN, 2.0f); - pitchStep = Mathf.Clamp(setting.GetFloat(PITCH_STEP_KEY, pitchStep), STEP_MIN, 2.0f); - - float oldSpeed = sSpeed; //For check the change of value. - SetSpeed(setting.GetFloat(SPEED_KEY, sSpeed)); - if (oldSpeed != sSpeed && OnSpeedChanged != null) - OnSpeedChanged.Invoke(sSpeed); - - float oldPitch = sPitch; //For check the change of value. - SetPitch(setting.GetFloat(PITCH_KEY, sPitch)); - if (oldPitch != sPitch && OnPitchChanged != null) - OnPitchChanged.Invoke(sPitch); - - Locale = setting.GetString(LOCALE_KEY, Locale); - } - - //Save local values manually. - public void SavePrefs() - { - setting.Set(SPEED_KEY, sSpeed); - setting.Set(PITCH_KEY, sPitch); - setting.Set(SPEED_STEP_KEY, speedStep); - setting.Set(PITCH_STEP_KEY, pitchStep); - setting.Set(LOCALE_KEY, Locale); - Param.SetPlayerPrefs(SaveKey, setting); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - private static float sSpeed; //Speech speed (Because TTS shares one, it is static). - private static float sPitch; //Voice pitch (Because TTS shares one, it is static). - - //Speed control - private void SetSpeed(float speed) - { -#if UNITY_EDITOR - sSpeed = Mathf.Clamp(speed, 0.5f, 2.0f); -#elif UNITY_ANDROID - sSpeed = AndroidPlugin.SetTextToSpeechSpeed(speed); //returns: 0.5f~2.0f -#endif - } - - //The currently (default) speech speed. - //・If saveValue is true, it will be automatically saved. - public float Speed { - get { return sSpeed; } - set { - float oldSpeed = sSpeed; //For check the change of value. - SetSpeed(value); - if (oldSpeed != sSpeed) - { - if (OnSpeedChanged != null) - OnSpeedChanged.Invoke(sSpeed); - - if (saveSetting) - SavePrefs(); - } - } - } - - //Add to the current speed. - public void SpeedAdd(float add) - { - Speed += add; - } - - //Reset the speed to 1.0. - public void SpeedReset() - { - Speed = 1; - } - - //Increase speed (Increase/decrease for each speedStep with 1.0 as the origin). - public void SpeedUp() - { - Speed = MultipleFloor(sSpeed + speedStep, speedStep); - } - - //Decrease speed (Increase/decrease for each speedStep with 1.0 as the origin). - public void SpeedDown() - { - Speed = MultipleCeil(sSpeed - speedStep, speedStep); - } - - //Pitch control - private void SetPitch(float pitch) - { -#if UNITY_EDITOR - sPitch = Mathf.Clamp(pitch, 0.5f, 2.0f); -#elif UNITY_ANDROID - sPitch = AndroidPlugin.SetTextToSpeechPitch(pitch); //returns: 0.5f~2.0f -#endif - } - - //The currently (default) voice pitch. - //・If saveValue is true, it will be automatically saved. - public float Pitch { - get { return sPitch; } - set { - float oldPitch = sPitch; //For check the change of value. - SetPitch(value); - if (oldPitch != sPitch) - { - if (OnPitchChanged != null) - OnPitchChanged.Invoke(sPitch); - - if (saveSetting) - SavePrefs(); - } - } - } - - //Add to the current pitch. - public void PitchAdd(float add) - { - Pitch += add; - } - - //Reset the pitch to 1.0. - public void PitchReset() - { - Pitch = 1; - } - - //Increase pitch (Increase/decrease for each pitchStep with 1.0 as the origin). - public void PitchUp() - { - Pitch = MultipleFloor(sPitch + pitchStep, pitchStep); - } - - //Decrease pitch (Increase/decrease for each pitchStep with 1.0 as the origin). - public void PitchDown() - { - Pitch = MultipleCeil(sPitch - pitchStep, pitchStep); - } - - //Increase/decrease amount of speed - public float SpeedStep { - get { return speedStep; } - set { - speedStep = Mathf.Clamp(value, STEP_MIN, 2.0f); - if (saveSetting) - SavePrefs(); - } - } - - //Increase/decrease amount of pitch - public float PitchStep { - get { return pitchStep; } - set { - pitchStep = Mathf.Clamp(value, STEP_MIN, 2.0f); - if (saveSetting) - SavePrefs(); - } - } - - //Initialization state - private int initialized = -1; //1:success, 0:fail, -1:not yet - private string initializeStatus = ""; //initialize status message - - //Initialization succeeded (Always false before initialization). - public bool IsInitializeSuccess { - get { return (initialized == 1); } - } - - //Status message when initialized - public string InitializeStatus { - get { return initializeStatus; } - } - - //Return to the status status that has not been initialized yet. - private void ResetInitializeStatus() - { - initialized = -1; - initializeStatus = ""; - } - - //Last of received status message - public string StatusMessage { - get; private set; - } - - //Change locale (empty is system default) - public string Locale { - get { return locale; } - set { - if (locale != value) - { - StopSpeech(); //Note: "OnStop" may not occur because it will be released soon. //すぐに「Release()」されるため、「OnStop」は発生しないこともあるので注意。 - Release(); - locale = (value == AndroidLocale.Default) ? "" : value; - InitializeTextToSpeech(); - SetSpeed(sSpeed); //Restore, because it was "Release()" - SetPitch(sPitch); //Restore, because it was "Release()" - - if (saveSetting) - SavePrefs(); - } - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - //move to static field (Things like singleton) - sSpeed = speed; //from inspector setting - sPitch = pitch; //from inspector setting - - if (saveSetting) - LoadPrefs(); //If the locale is changed, 'InitializeTextToSpeech()' is called. - - if (initialized == -1) //not yet - InitializeTextToSpeech(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Initialize Text To Speech - //Note: The result is returned to the status callback. - public void InitializeTextToSpeech() - { - ResetInitializeStatus(); -#if UNITY_EDITOR - Debug.Log("InitTextToSpeech"); -#elif UNITY_ANDROID - if (string.IsNullOrEmpty(locale)) - AndroidPlugin.InitTextToSpeech(gameObject.name, "ReceiveStatus"); //Get a initialization status - else - AndroidPlugin.InitTextToSpeech(locale, gameObject.name, "ReceiveStatus"); //Get a initialization status -#endif - } - - //Start Text To Speech - public void StartSpeech(string text) - { - if (string.IsNullOrEmpty(text) || !IsInitializeSuccess) - return; -#if UNITY_EDITOR - Debug.Log("TextToSpeechController.StartSpeech : text = " + text); -#elif UNITY_ANDROID - AndroidPlugin.StartTextToSpeech( - text, - gameObject.name, - "ReceiveStatus", - "ReceiveStart", - "ReceiveDone", - "ReceiveStop"); -#endif - } - - //Speech started state - private void ReceiveStart(string message) - { - if (OnStart != null) - OnStart.Invoke(); - } - - //Speech finished state - private void ReceiveDone(string message) - { - if (OnDone != null) - OnDone.Invoke(); - } - - //Speech interrupted state - private void ReceiveStop(string message) - { - if (OnStop != null) - OnStop.Invoke(message); - } - - //Receive status including initialization and errors. - private void ReceiveStatus(string message) - { - StatusMessage = message; - if (initialized == -1) //At first time (As long as it is the same language) - { - initialized = message.StartsWith("SUCCESS_INIT") ? 1 : 0; - initializeStatus = message; - } - - if (OnStatus != null) - OnStatus.Invoke(message); - } - - - //Interrupt speech - public void StopSpeech() - { -#if UNITY_EDITOR - Debug.Log("TextToSpeechController.StopSpeech called"); -#elif UNITY_ANDROID - AndroidPlugin.StopTextToSpeech(); //'OnStop' event occurs. -#endif - } - - //Release TTS - public void Release() - { -#if UNITY_EDITOR - Debug.Log("TextToSpeechController.Release called"); -#elif UNITY_ANDROID - AndroidPlugin.ReleaseTextToSpeech(); -#endif - } - - -#region Other method Section - - static int[] pow10 = { 1, 10, 100 }; //10^k : Fit to decimal part : (0,)1~2 [0.01~2.0] - - //Calculate smaller multiple (round up by multiple). - //より小さい倍数を求める(倍数で切り捨てられるような値) - float MultipleFloor(float value, float multiple) - { - int k = multiple.ToString().Length - 2; //Number of digits after the decimal point. (e.g.) "0.05" -> "0." (Integer part = 1+'.'=2) + "05" (Decimal part = 4-2=2) - int p = pow10[k]; //10^k - int v = Mathf.RoundToInt((value - 1) * p); //The origin is set to 1 (-1), and multiplied by 10^k. - int m = Mathf.RoundToInt(multiple * p); //To set it to an integer, because it causes errors as it is a float. - float f = Mathf.Floor((float)v / m) * m; //If calculate it as float, get an error here. (e.g.) Mathf.Floor(1.05f / 0.05f)=20 -> Mathf.Floor(105f / 5)=21 - return f / p + 1; //In order to set the origin to 1, restore it (+1). - } - - //Calculate larger multiple (round down by multiple) - //より大きい倍数を求める(倍数で繰り上がるような値) - float MultipleCeil(float value, float multiple) - { - int k = multiple.ToString().Length - 2; - int p = pow10[k]; - int v = Mathf.RoundToInt((value - 1) * p); - int m = Mathf.RoundToInt(multiple * p); - float f = Mathf.Ceil((float)v / m) * m; - return f / p + 1; - } - -#endregion - - } -} - diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/TextToSpeechController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/TextToSpeechController.cs.meta deleted file mode 100644 index d1b4cdea..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/TextToSpeechController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a0b312d8e1384144eb7656e34f95c392 -timeCreated: 1516938367 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/VibratorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/VibratorController.cs deleted file mode 100644 index 63b346ad..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/VibratorController.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - //(*) Required: '' in 'AndroidManifest.xml' - /// - /// Vibrator Controller - /// - /// Note: To use this function, you need 'VIBRATE' permission in the 'AndroidManifest.xml'. - /// Note: This function is deprecated in API 26 (Android 8.0), so some devices may not be available depending on the model. - /// - ///※この機能を利用するには "AndroidManifest.xml" に "VIBRATE" パーミッションが必要です。 - ///※API 26 (Android 8.0) では、この機能は deprecated(廃止予定)となっているため、端末によっては使えないものがあるかもしれません。 - /// - public class VibratorController : MonoBehaviour - { - //Inspector Settings - [Serializable] - public enum VibratorType { - OneShot, //It vibrates only once. - Pattern, //It vibrates once with a pattern. - PatternLoop, //Vibrates repeatedly with a pattern. - } - public VibratorType vibratorType = VibratorType.OneShot; - - //Because it can not be saved in the inspector if it is a long type, it is converted from an int type. - //That is, the value will be in the int range (however, a long range is not necessary). - [SerializeField] private int duration; //Vibration duration when SimpleOneShot. - [SerializeField] private int[] pattern; //Vibration pattern. Specify the duration in milliseconds in the order of off, on, off, on, .... - - //Callbacks - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - -#region Properties and Local values Section - - //Local values - //Because it can not be saved in the inspector if it is a long type, it is converted from an int type. - //That is, the value will be in the int range (however, a long range is not necessary). - private long mDuration; - private long[] mPattern; - - //Properties - public long[] Pattern { - get { return mPattern; } - set { mPattern = value; } - } - - public long Duration { - get { return mDuration; } - set { mDuration = value; } - } - - private static bool isSupportedVibrator = false; //Cached supported Vibrator (Because Vibrator shares one, it is static). - private static bool isSupportedChecked = false; //Already checked (Because Vibrator shares one, it is static). - - //Whether the device supports Vibrator. - public bool IsSupportedVibrator { - get { - if (!isSupportedChecked) - { -#if UNITY_EDITOR - isSupportedVibrator = true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - isSupportedVibrator = AndroidPlugin.IsSupportedVibrator(); -#endif - isSupportedChecked = true; - } - return isSupportedVibrator; - } - } - - //Whether necessary permissions are granted. - public bool IsPermissionGranted { - get { -#if UNITY_EDITOR - return true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - return AndroidPlugin.CheckPermission("android.permission.VIBRATE"); -#else - return false; -#endif - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - //It mainly converts from int type to long type (also inspector -> local value). - mDuration = duration; - if (pattern != null && pattern.Length > 0) - mPattern = pattern.Select(e => (long)e).ToArray(); - } - - private void Start() - { - if (!IsSupportedVibrator) - { - if (OnError != null) - OnError.Invoke("Not supported: Vibrator"); - } - if (!IsPermissionGranted) - { - if (OnError != null) - OnError.Invoke("Permission denied: VIBRATE"); - } - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start vibration - public void StartVibrator() - { - if (!IsSupportedVibrator || !IsPermissionGranted) - return; - -#if UNITY_EDITOR - Debug.Log("VibratorController.StartVibrator called"); -#elif UNITY_ANDROID - switch (vibratorType) - { - case VibratorType.OneShot: - AndroidPlugin.StartVibrator(mDuration); - break; - case VibratorType.Pattern: - AndroidPlugin.StartVibrator(mPattern, false); - break; - case VibratorType.PatternLoop: - AndroidPlugin.StartVibrator(mPattern, true); - break; - } -#endif - } - - //Start vibration with oneshot (current value will be overwritten) - public void StartVibrator(long duration) - { - if (vibratorType != VibratorType.OneShot) - return; - - Duration = duration; - StartVibrator(); - } - - //Start vibration with pattern (current value will be overwritten) - public void StartVibrator(long[] pattern) - { - if (vibratorType == VibratorType.OneShot) - return; - - Pattern = pattern; - StartVibrator(); - } - - - //Interrupt the vibration - public void Cancel() - { -#if UNITY_EDITOR - Debug.Log("VibratorController.Cancel called"); -#elif UNITY_ANDROID - AndroidPlugin.CancelVibrator(); -#endif - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/VibratorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/VibratorController.cs.meta deleted file mode 100644 index 2c8d7ac8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/VibratorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: df6fbb4d96dfd1745836727f9f72f218 -timeCreated: 1518843711 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WebSearchController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WebSearchController.cs deleted file mode 100644 index c525a3cf..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WebSearchController.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Web Search Controller - /// - public class WebSearchController : MonoBehaviour - { - //Inspector Settings - public string keyword = "keyword"; //Search keyword - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Start Web Search with local keyword - public void StartSearch() - { -#if UNITY_EDITOR - Debug.Log("WebSearchController.StartSearch : keyword = " + keyword); -#elif UNITY_ANDROID - AndroidPlugin.StartWebSearch(keyword); -#endif - } - - //Set keyword dynamically and start Web Search (current keyword will be overwritten) - public void StartSearch(string keyword) - { - this.keyword = keyword; -#if UNITY_EDITOR - Debug.Log("WebSearchController.StartSearch : keyword = " + keyword); -#elif UNITY_ANDROID - AndroidPlugin.StartWebSearch(keyword); -#endif - } - - //Set keyword dynamically and start Web Search (current keyword will be overwritten) - public void StartSearch(string[] keywords) - { - keyword = string.Join(" ", keywords); -#if UNITY_EDITOR - Debug.Log("WebSearchController.StartSearch : keyword = " + keyword); -#elif UNITY_ANDROID - AndroidPlugin.StartWebSearch(keyword); -#endif - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WebSearchController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WebSearchController.cs.meta deleted file mode 100644 index 00bb9c6a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WebSearchController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 515d9af933f6f5241990da4352de0b32 -timeCreated: 1516542762 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WifiSettingController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WifiSettingController.cs deleted file mode 100644 index 96e26ad7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WifiSettingController.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Wifi Setting Controller - ///・Open the system settings of Wifi. - /// - ///・Wifi のシステム設定画面を開く。 - /// - public class WifiSettingController : MonoBehaviour - { - public bool ignoreReachableViaLocalAreaNetwork = true; //Open setting only when wifi is not used. - - //Callbacks - //Callback when settings closed. //設定画面が閉じられたときのコールバック - public UnityEvent OnClose; - - //Callback when error occurrence. //エラー時のコールバック - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Open the system settings of Wifi. //Wifi のシステム設定画面を開く。 - public void Show() - { - if (ignoreReachableViaLocalAreaNetwork && Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork) - return; - -#if UNITY_EDITOR - Debug.Log("WifiSettingController.Show called"); -#elif UNITY_ANDROID - AndroidPlugin.OpenWifiSettings(gameObject.name, "ReceiveResult"); -#endif - } - - //Callback handler when receive result - private void ReceiveResult(string result) - { - if (result.StartsWith("CLOSED") || result.StartsWith("SUCCESS")) - { - if (OnClose != null) - OnClose.Invoke(); - } - else - { - if (OnError != null) - OnError.Invoke(result); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WifiSettingController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WifiSettingController.cs.meta deleted file mode 100644 index 9cf5d7a0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Functions/WifiSettingController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9dd2821efa4573f4cb459c547e9a148c -timeCreated: 1518186448 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors.meta deleted file mode 100644 index 25505d63..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1f6c2b05aae25e14f8ef8a6b5b534db6 -folderAsset: yes -timeCreated: 1520647049 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AccelerometerSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AccelerometerSensorController.cs deleted file mode 100644 index 37f47aef..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AccelerometerSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Accelerometer Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class AccelerometerSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Accelerometer; } - } - - //Callbacks - [Serializable] public class AccelerometerSensorChangedHandler : UnityEvent { } //x, y, z [m/s^2] - public AccelerometerSensorChangedHandler OnAccelerometerSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnAccelerometerSensorChanged != null) - OnAccelerometerSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //x, y, z [m/s^2] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AccelerometerSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AccelerometerSensorController.cs.meta deleted file mode 100644 index a256ea0c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AccelerometerSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7a9dd0569619ffd41af9cc0ee31107e4 -timeCreated: 1520777182 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorController.cs deleted file mode 100644 index 5b44c850..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorController.cs +++ /dev/null @@ -1,146 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Android Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Sensors Overview) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html - /// - public class AndroidSensorController : MonoBehaviour - { -#pragma warning disable 0414 //The private field is assigned but its value is never used. (*In fact, it uses on the Android platform.) - - //Inspector Settings - [SerializeField] private SensorType sensorType = SensorType.None; - [SerializeField] private SensorDelay sensorDelay = SensorDelay.Normal; - - //Inspector settings - public bool startListeningOnEnable = false; //Automatically set listener with 'OnEnable()' (Always removed in 'OnDisable()'). //OnEnable() でリスナーを自動で登録する(OnDisable() では常に解除する)。 - - //Callbacks - [Serializable] public class SensorChangedHandler : UnityEvent { } //SensorType, Values - public SensorChangedHandler OnSensorChanged; - - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - -#region Properties and Local values Section - - //Properties - private bool isSupportedSensor = false; //Cached supported Sensor. - private bool isSupportedChecked = false; //Already checked. - - public bool IsSupportedSensor { - get { - if (!isSupportedChecked) - { -#if UNITY_EDITOR - isSupportedSensor = true; //For Editor -#elif UNITY_ANDROID - isSupportedSensor = AndroidPlugin.IsSupportedSensor(sensorType); -#endif - isSupportedChecked = true; - } - return isSupportedSensor; - } - } - -#endregion - - // Use this for initialization - private void Start() - { - if (!IsSupportedSensor) - { - if (OnError != null) - OnError.Invoke("Not supported: " + sensorType.ToString()); - } - } - - private void OnEnable() - { - if (startListeningOnEnable) - StartListening(); - } - - private void OnDisable() - { - StopListening(); - } - - private void OnDestroy() - { - StopListening(); - } - - private void OnApplicationQuit() - { -#if UNITY_EDITOR - Debug.Log("AndroidPlugin.ReleaseSensors called."); -#elif UNITY_ANDROID - AndroidPlugin.ReleaseSensors(); -#endif - } - - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Set listener for sensor values acquisition. - //センサーの値取得のリスニングを開始する - public void StartListening() - { - if (!IsSupportedSensor) - return; -#if UNITY_EDITOR - Debug.Log("AndroidSensorController.StartListening called"); -#elif UNITY_ANDROID - AndroidPlugin.SetSensorListener(sensorType, sensorDelay, gameObject.name, "ReceiveValues"); -#endif - } - - //Remove (release) listener for sensor values acquisition. - //センサーの値取得のリスニングを停止(解放)する - public void StopListening() - { - if (!IsSupportedSensor) - return; -#if UNITY_EDITOR - Debug.Log("AndroidSensorController.StopListening called"); -#elif UNITY_ANDROID - AndroidPlugin.RemoveSensorListener(sensorType); -#endif - } - - - //Callback handler for sensor values. - private void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - SensorInfo info = JsonUtility.FromJson(json); - - if (OnSensorChanged != null) - OnSensorChanged.Invoke(info.type, info.values); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorController.cs.meta deleted file mode 100644 index 1644a583..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 542b2de1fdfc4ee45b01e144a26a8a08 -timeCreated: 1520647113 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorIntController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorIntController.cs deleted file mode 100644 index 3ba28e7b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorIntController.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Android Sensor Controller (int) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///・It is the same as 'AndroidSensorController' just by setting 'SensorType' to 'int' type(> 0). - /// For testing unknown ID etc. - /// - ///・’SensorType’を'int'型(> 0)にしただけで、'AndroidSensorController'と同じものである。未知のID等のテスト用。 - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Sensors Overview) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html - /// - public class AndroidSensorIntController : MonoBehaviour - { -#pragma warning disable 0414 //The private field is assigned but its value is never used. (*In fact, it uses on the Android platform.) - - //Inspector Settings - [SerializeField] private int sensorType = 0; - [SerializeField] private SensorDelay sensorDelay = SensorDelay.Normal; - - //Inspector settings - public bool startListeningOnEnable = false; //Automatically set listener with 'OnEnable()' (Always removed in 'OnDisable()'). //OnEnable() でリスナーを自動で登録する(OnDisable() では常に解除する)。 - - //Callbacks - [Serializable] public class SensorChangedHandler : UnityEvent { } //SensorType, Values - public SensorChangedHandler OnSensorChanged; - - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - -#region Properties and Local values Section - - //Properties - private bool isSupportedSensor = false; //Cached supported Sensor. - private bool isSupportedChecked = false; //Already checked. - - public bool IsSupportedSensor { - get { - if (!isSupportedChecked) - { -#if UNITY_EDITOR - isSupportedSensor = true; //For Editor -#elif UNITY_ANDROID - isSupportedSensor = AndroidPlugin.IsSupportedSensor(sensorType); -#endif - isSupportedChecked = true; - } - return isSupportedSensor; - } - } - -#endregion - - // Use this for initialization - private void Start() - { - if (!IsSupportedSensor) - { - if (OnError != null) - OnError.Invoke("Not supported: " + sensorType.ToString()); - } - } - - private void OnEnable() - { - if (startListeningOnEnable) - StartListening(); - } - - private void OnDisable() - { - StopListening(); - } - - private void OnDestroy() - { - StopListening(); - } - - private void OnApplicationQuit() - { -#if UNITY_EDITOR - Debug.Log("AndroidPlugin.ReleaseSensors called."); -#elif UNITY_ANDROID - AndroidPlugin.ReleaseSensors(); -#endif - } - - - // Update is called once per frame - //private void Update() - //{ - - //} - - - //Set listener for sensor values acquisition. - //センサーの値取得のリスニングを開始する - public void StartListening() - { - if (!IsSupportedSensor) - return; -#if UNITY_EDITOR - Debug.Log("AndroidSensorIntController.StartListening called"); -#elif UNITY_ANDROID - AndroidPlugin.SetSensorListener(sensorType, (int)sensorDelay, gameObject.name, "ReceiveValues"); -#endif - } - - //Remove (release) listener for sensor values acquisition. - //センサーの値取得のリスニングを停止(解放)する - public void StopListening() - { - if (!IsSupportedSensor) - return; -#if UNITY_EDITOR - Debug.Log("AndroidSensorIntController.StopListening called"); -#elif UNITY_ANDROID - AndroidPlugin.RemoveSensorListener(sensorType); -#endif - } - - - //Callback handler for sensor values. - private void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - SensorInfo info = JsonUtility.FromJson(json); - - if (OnSensorChanged != null) - OnSensorChanged.Invoke(info.type, info.values); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorIntController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorIntController.cs.meta deleted file mode 100644 index 4dd28059..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/AndroidSensorIntController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a37b5770554641543a278d671cfc3c36 -timeCreated: 1520925597 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GameRotationVectorSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GameRotationVectorSensorController.cs deleted file mode 100644 index 69222e39..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GameRotationVectorSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Game Rotation Vector Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_GAME_ROTATION_VECTOR - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Position Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_position.html - /// - public class GameRotationVectorSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.GameRotationVector; } - } - - //Callbacks - [Serializable] public class GameRotationVectorSensorChangedHandler : UnityEvent { } //x, y, z - public GameRotationVectorSensorChangedHandler OnGameRotationVectorSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnGameRotationVectorSensorChanged != null) - OnGameRotationVectorSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //x, y, z - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GameRotationVectorSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GameRotationVectorSensorController.cs.meta deleted file mode 100644 index 321c4b8d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GameRotationVectorSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b7d90e0c8b4e3784f8ec96a997027bf9 -timeCreated: 1520782148 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GeomagneticRotationVectorSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GeomagneticRotationVectorSensorController.cs deleted file mode 100644 index cbd0d5ec..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GeomagneticRotationVectorSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Geomagnetic Rotation Vector Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ROTATION_VECTOR - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Position Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_position.html - /// - public class GeomagneticRotationVectorSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.GeomagneticRotationVector; } - } - - //Callbacks - [Serializable] public class GeomagneticRotationVectorSensorChangedHandler : UnityEvent { } //x, y, z - public GeomagneticRotationVectorSensorChangedHandler OnGeomagneticRotationVectorSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnGeomagneticRotationVectorSensorChanged != null) - OnGeomagneticRotationVectorSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //x, y, z - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GeomagneticRotationVectorSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GeomagneticRotationVectorSensorController.cs.meta deleted file mode 100644 index 3e4b05a2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GeomagneticRotationVectorSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 198928ee907f6a34f93caed4ce8713ef -timeCreated: 1520785865 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GravitySensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GravitySensorController.cs deleted file mode 100644 index cf464497..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GravitySensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Gravity Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_GRAVITY - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class GravitySensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Gravity; } - } - - //Callbacks - [Serializable] public class GravitySensorChangedHandler : UnityEvent { } //[m/s^2] - public GravitySensorChangedHandler OnGravitySensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnGravitySensorChanged != null) - OnGravitySensorChanged.Invoke(info.values[0]); //[m/s^2] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GravitySensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GravitySensorController.cs.meta deleted file mode 100644 index c20d41bc..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GravitySensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ce92e7e3bc4f7184fb0851ecc2dd95db -timeCreated: 1520654547 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GyroscopeSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GyroscopeSensorController.cs deleted file mode 100644 index 562202a1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GyroscopeSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Gyroscope Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_GYROSCOPE - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class GyroscopeSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Gyroscope; } - } - - //Callbacks - [Serializable] public class GyroscopeSensorChangedHandler : UnityEvent { } //x, y, z [rad/s] - public GyroscopeSensorChangedHandler OnGyroscopeSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnGyroscopeSensorChanged != null) - OnGyroscopeSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //[rad/s] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GyroscopeSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GyroscopeSensorController.cs.meta deleted file mode 100644 index 135c15db..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/GyroscopeSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6294585cd4ddc1741aa5f8d36046ce7a -timeCreated: 1520778032 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartBeatController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartBeatController.cs deleted file mode 100644 index e16f3c0f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartBeatController.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Heart Beat Sensor Controller (API 24 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///・A sensor of this type returns an event everytime a hear beat peak is detected. - /// Peak here ideally corresponds to the positive peak in the QRS complex of an ECG signal. - ///・A confidence value of 0.0 indicates complete uncertainty - that a peak is as likely to be at the indicated timestamp as anywhere else. - /// A confidence value of 1.0 indicates complete certainly - that a peak is completely unlikely to be anywhere else on the QRS complex. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_HEART_BEAT - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - public class HeartBeatController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.HeartBeat; } - } - - //Callbacks - [Serializable] public class HeartBeatSensorChangedHandler : UnityEvent { } //[confidence=0~1] - public HeartBeatSensorChangedHandler OnHeartBeatSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnHeartBeatSensorChanged != null) - OnHeartBeatSensorChanged.Invoke(info.values[0]); //[confidence=0~1] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartBeatController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartBeatController.cs.meta deleted file mode 100644 index d376884d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartBeatController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 17741491406e7424ea301287a6ed3959 -timeCreated: 1520833564 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartRateController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartRateController.cs deleted file mode 100644 index a5be1727..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartRateController.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - //(*) Requierd: '' in 'AndroidManifest.xml'. - - //(*) Even if you grant permissions at a later time, it seems that the sensor itself will not run without restarting the application. - //※後からパーミッションを付与しても、アプリを再起動しないとセンサー自体は稼働しないらしい。 - - /// - /// Heart Rate Sensor Controller (API 20 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_HEART_RATE - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - - public class HeartRateController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.HeartRate; } - } - - //Callbacks - [Serializable] public class HeartRateSensorChangedHandler : UnityEvent { } //[bpm] - public HeartRateSensorChangedHandler OnHeartRateSensorChanged; - -#region Properties and Local values Section - - //Whether necessary permissions are granted. - public bool IsPermissionGranted { - get { -#if UNITY_EDITOR - return true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - return AndroidPlugin.CheckPermission("android.permission.BODY_SENSORS"); -#else - return false; -#endif - } - } - -#endregion - - // Use this for initialization - protected new void Start() - { - base.Start(); - - if (!IsPermissionGranted) - { - if (OnError != null) - OnError.Invoke("Permission denied: BODY_SENSORS"); - } - } - - //Set listener for sensor values acquisition. - public override void StartListening() - { - if (!IsPermissionGranted) - return; - - base.StartListening(); - } - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnHeartRateSensorChanged != null) - OnHeartRateSensorChanged.Invoke(info.values[0]); //[bpm] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartRateController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartRateController.cs.meta deleted file mode 100644 index 34613b37..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/HeartRateController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 62066dd17ab62bb4db77a5f93bc4a9ee -timeCreated: 1520831375 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LightSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LightSensorController.cs deleted file mode 100644 index aa35caf3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LightSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Light Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_LIGHT - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Environment Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_environment.html - /// - public class LightSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Light; } - } - - //Callbacks - [Serializable] public class LightSensorChangedHandler : UnityEvent { } //[lux] - public LightSensorChangedHandler OnLightSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnLightSensorChanged != null) - OnLightSensorChanged.Invoke(info.values[0]); //[lux] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LightSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LightSensorController.cs.meta deleted file mode 100644 index 4caac16a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LightSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e9cbfbe96746d9049be72eb59b6ce2a5 -timeCreated: 1520653761 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LinearAccelerationSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LinearAccelerationSensorController.cs deleted file mode 100644 index 170ab3ab..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LinearAccelerationSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Linear Acceleration Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_LINEAR_ACCELERATION - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class LinearAccelerationSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.LinearAcceleration; } - } - - //Callbacks - [Serializable] public class LinearAccelerationSensorChangedHandler : UnityEvent { } //x, y, z [m/s^2] - public LinearAccelerationSensorChangedHandler OnLinearAccelerationSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnLinearAccelerationSensorChanged != null) - OnLinearAccelerationSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //x, y, z [m/s^2] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LinearAccelerationSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LinearAccelerationSensorController.cs.meta deleted file mode 100644 index 5683248d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LinearAccelerationSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 530cffc07d427274984e88bb9a232db7 -timeCreated: 1520779441 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LowLatencyOffbodyDetectController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LowLatencyOffbodyDetectController.cs deleted file mode 100644 index 53740743..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LowLatencyOffbodyDetectController.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Low Latency Offbody Detect Sensor Controller (API 26 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_LOW_LATENCY_OFFBODY_DETECT - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - public class LowLatencyOffbodyDetectController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.LowLatencyOffbodyDetect; } - } - - //Callbacks - [Serializable] public class LowLatencyOffbodyDetectSensorChangedHandler : UnityEvent { } //[false (device is off-body) or true (device is on-body)] - public LowLatencyOffbodyDetectSensorChangedHandler OnLowLatencyOffbodyDetectSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnLowLatencyOffbodyDetectSensorChanged != null) - OnLowLatencyOffbodyDetectSensorChanged.Invoke(info.values[0] != 0); //[0=false (device is off-body) or 1=true (device is on-body)] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LowLatencyOffbodyDetectController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LowLatencyOffbodyDetectController.cs.meta deleted file mode 100644 index 0fccf68c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/LowLatencyOffbodyDetectController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ad6ed76d43415be498a3ac1b0931ac38 -timeCreated: 1520833937 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MagneticFieldSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MagneticFieldSensorController.cs deleted file mode 100644 index 7506bc39..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MagneticFieldSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Magnetic Field Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_MAGNETIC_FIELD - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Position Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_position.html - /// - public class MagneticFieldSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.MagneticField; } - } - - //Callbacks - [Serializable] public class MagneticFieldSensorChangedHandler : UnityEvent { } //x, y, z [uT] - public MagneticFieldSensorChangedHandler OnMagneticFieldSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnMagneticFieldSensorChanged != null) - OnMagneticFieldSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //[uT] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MagneticFieldSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MagneticFieldSensorController.cs.meta deleted file mode 100644 index eaedd429..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MagneticFieldSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 526aa87e208ea7a4795b32ee26c74733 -timeCreated: 1520654596 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MotionDetectController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MotionDetectController.cs deleted file mode 100644 index 7b3c6792..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MotionDetectController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Motion Detect Sensor Controller (API 24 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///・A TYPE_MOTION_DETECT event is produced if the device has been in motion for at least 5 seconds with a maximal latency of 5 additional seconds. - /// ie: it may take up anywhere from 5 to 10 seconds afte the device has been at rest to trigger this event. The only allowed value is 1.0. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_MOTION_DETECT - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - public class MotionDetectController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.MotionDetect; } - } - - //Callbacks - public UnityEvent OnMotionDetectSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnMotionDetectSensorChanged != null) - OnMotionDetectSensorChanged.Invoke(); //triggers an event - } - } -} - diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MotionDetectController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MotionDetectController.cs.meta deleted file mode 100644 index b6e2e20f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/MotionDetectController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2fb00b0eeea65864d8e565b8b79bee8c -timeCreated: 1520829643 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/OrientationSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/OrientationSensorController.cs deleted file mode 100644 index 120c0370..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/OrientationSensorController.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Orientation Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - ///(*) This sensor was deprecated in Android 2.2 (API level 8), - /// and this sensor type was deprecated in Android 4.4W (API level 20). - /// The sensor framework provides alternate methods for acquiring device orientation, - /// which are discussed in Computing the Device's Orientation. - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ORIENTATION - ///(Sensor Values) - /// values[0]: Azimuth, angle between the magnetic north direction and the y-axis, around the z-axis (0 to 359). 0=North, 90=East, 180=South, 270=West - /// values[1]: Pitch, rotation around x-axis (-180 to 180), with positive values when the z-axis moves toward the y-axis. - /// values[2]: Roll, rotation around the y-axis (-90 to 90) increasing as the device moves clockwise. - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Position Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_position.html - /// - public class OrientationSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Orientation; } //This constant was deprecated in API level 20. - } - - //Callbacks - [Serializable] public class OrientationSensorChangedHandler : UnityEvent { } //Azimuth, Pitch , Roll [Degrees] - public OrientationSensorChangedHandler OnOrientationSensorChanged; - - - - //Callback handler for sensor values. - //values[0]: Azimuth (angle around the z-axis) [Degrees] - //values[1]: Pitch (angle around the x-axis). [Degrees] - //values[2]: Roll (angle around the y-axis). [Degrees] - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnOrientationSensorChanged != null) - OnOrientationSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //Azimuth, Pitch , Roll [Degrees] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/OrientationSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/OrientationSensorController.cs.meta deleted file mode 100644 index 99ebbdc2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/OrientationSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a4883f1ab198c4f4cb9330c332a970a9 -timeCreated: 1523113643 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/PressureSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/PressureSensorController.cs deleted file mode 100644 index 7927bc4b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/PressureSensorController.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Pressure Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_PRESSURE - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Environment Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_environment.html - /// - public class PressureSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Pressure; } - } - - //Callbacks - [Serializable] public class PressureSensorChangedHandler : UnityEvent { } //[hPa (millibar)] - public PressureSensorChangedHandler OnPressureSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnPressureSensorChanged != null) - OnPressureSensorChanged.Invoke(info.values[0]); //[hPa (millibar)] - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/PressureSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/PressureSensorController.cs.meta deleted file mode 100644 index 0fbadbce..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/PressureSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 3ff5fb43aa323bc4cb16915fbda8be81 -timeCreated: 1520654506 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/ProximitySensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/ProximitySensorController.cs deleted file mode 100644 index 24b7591c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/ProximitySensorController.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// ProximitySensorController - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - /// Note: Some proximity sensors only support a binary near or far measurement. - /// In this case, the sensor should report its maximum range value in the far state and a lesser value in the near state. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_PROXIMITY - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Position Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_position.html - /// - public class ProximitySensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.Proximity; } - } - - //Callbacks - [Serializable] public class ProximitySensorChangedHandler : UnityEvent { } //[cm] Note: Some proximity sensors only support a binary near or far measurement. In this case, the sensor should report its maximum range value in the far state and a lesser value in the near state. //搭載されてるセンサーによって、最小と最大しか返さないものもある - public ProximitySensorChangedHandler OnProximitySensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnProximitySensorChanged != null) - OnProximitySensorChanged.Invoke(info.values[0]); //[cm] Note: Some proximity sensors only support a binary near or far measurement. In this case, the sensor should report its maximum range value in the far state and a lesser value in the near state. //搭載されてるセンサーによって、最小と最大しか返さないものもある - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/ProximitySensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/ProximitySensorController.cs.meta deleted file mode 100644 index dbc915b8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/ProximitySensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c0952be13e83757418e4a57cb38d1be7 -timeCreated: 1520654526 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/RotationVectorSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/RotationVectorSensorController.cs deleted file mode 100644 index bc0a87f2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/RotationVectorSensorController.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Rotation Vector Sensor Controller - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ROTATION_VECTOR - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class RotationVectorSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.RotationVector; } - } - - //Callbacks - [Serializable] public class RotationVectorSensorChangedHandler : UnityEvent { } //x, y, z - public RotationVectorSensorChangedHandler OnRotationVectorSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnRotationVectorSensorChanged != null) - OnRotationVectorSensorChanged.Invoke(info.values[0], info.values[1], info.values[2]); //x, y, z - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/RotationVectorSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/RotationVectorSensorController.cs.meta deleted file mode 100644 index 696252f7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/RotationVectorSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 524de95c4b7504b4b9b7f92e9ec4f135 -timeCreated: 1520781864 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SensorControllerBase.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SensorControllerBase.cs deleted file mode 100644 index 72b5caad..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SensorControllerBase.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Sensor Controller base class (for making controllers for each sensor) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Sensors Overview) - /// https://developer.android.com/guide/topics/sensors/sensors_overview.html - /// - public abstract class SensorControllerBase : MonoBehaviour - { -#pragma warning disable 0414 //The private field is assigned but its value is never used. (*In fact, it uses on the Android platform.) - - //(*) Required override sensor type. - protected virtual SensorType sensorType { - get { return SensorType.None; } - } - - //Inspector Settings - [SerializeField] private SensorDelay sensorDelay = SensorDelay.Normal; - - //Inspector settings - public bool startListeningOnEnable = false; //Automatically set listener with 'OnEnable()' (Always removed in 'OnDisable()'). //OnEnable() でリスナーを自動で登録する(OnDisable() では常に解除する)。 - - //Callbacks - [Serializable] public class SensorChangedHandler : UnityEvent { } //SensorType, Values (Common to all sensors) - public SensorChangedHandler OnSensorChanged; - - [Serializable] public class ErrorHandler : UnityEvent { } //error state message - public ErrorHandler OnError; - -#region Properties and Local values Section - //Properties - - //Since it was made possible to give permission with v1.17, it changed to real time acquisition. - //(*) However, even if you grant permissions at a later time, it seems that the sensor itself will not run without restarting the application. - // - //v1.17 でパーミッションを付与できるようにしたため、リアルタイム取得に変更。 - //※ただし、後からパーミッションを付与しても、アプリを再起動しないとセンサー自体は稼働しないらしい。 - - public bool IsSupportedSensor { - get { -#if UNITY_EDITOR - return true; //For Editor (* You can rewrite it as you like.) -#elif UNITY_ANDROID - return AndroidPlugin.IsSupportedSensor(sensorType); -#else - return false; -#endif - } - } - -#endregion - - // Use this for initialization - protected void Start() - { - if (!IsSupportedSensor) - { - if (OnError != null) - OnError.Invoke("Not supported: " + sensorType.ToString()); - } - } - - protected void OnEnable() - { - if (startListeningOnEnable) - StartListening(); - } - - protected void OnDisable() - { - StopListening(); - } - - protected void OnDestroy() - { - StopListening(); - } - - protected void OnApplicationQuit() - { -#if UNITY_EDITOR - Debug.Log("AndroidPlugin.ReleaseSensors called."); -#elif UNITY_ANDROID - AndroidPlugin.ReleaseSensors(); -#endif - } - - - // Update is called once per frame - //protected void Update() - //{ - - //} - - - //Set listener for sensor values acquisition. - //センサーの値取得のリスニングを開始する - public virtual void StartListening() - { - if (!IsSupportedSensor) - return; -#if UNITY_EDITOR - Debug.Log(sensorType.ToString() + "Controller.StartListening called"); -#elif UNITY_ANDROID - AndroidPlugin.SetSensorListener(sensorType, sensorDelay, gameObject.name, "ReceiveValues"); -#endif - } - - //Remove (release) listener for sensor values acquisition. - //センサーの値取得のリスニングを停止(解放)する - public virtual void StopListening() - { - if (!IsSupportedSensor) - return; -#if UNITY_EDITOR - Debug.Log(sensorType.ToString() + "Controller.StopListening called"); -#elif UNITY_ANDROID - AndroidPlugin.RemoveSensorListener(sensorType); -#endif - } - - protected SensorInfo info; - - //Callback handler for sensor values. - protected virtual void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - info = JsonUtility.FromJson(json); - - if (OnSensorChanged != null) - OnSensorChanged.Invoke(info.type, info.values); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SensorControllerBase.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SensorControllerBase.cs.meta deleted file mode 100644 index 534c395c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SensorControllerBase.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 811062b6de125ba449ab6ae6f9db5953 -timeCreated: 1520694518 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SignificantMotionController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SignificantMotionController.cs deleted file mode 100644 index 84cd81a1..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SignificantMotionController.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Significant Motion Sensor Controller (API 18 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///・It triggers when an event occurs and then automatically disables itself. - /// The sensor continues to operate while the device is asleep and will automatically wake the device to notify when significant motion is detected. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_SIGNIFICANT_MOTION - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class SignificantMotionController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.SignificantMotion; } - } - - //Callbacks - public UnityEvent OnSignificantMotionSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnSignificantMotionSensorChanged != null) - OnSignificantMotionSensorChanged.Invoke(); //triggers an event - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SignificantMotionController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SignificantMotionController.cs.meta deleted file mode 100644 index 08ba7695..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/SignificantMotionController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 745b1f833f6e1554f8d5ecb5563a9bb2 -timeCreated: 1520829528 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StationaryDetectController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StationaryDetectController.cs deleted file mode 100644 index 6ad9afb7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StationaryDetectController.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Stationary Detect Sensor Controller (API 24 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - ///・A TYPE_STATIONARY_DETECT event is produced if the device has been stationary for at least 5 seconds with a maximal latency of 5 additional seconds. - /// ie: it may take up anywhere from 5 to 10 seconds afte the device has been at rest to trigger this event. The only allowed value is 1.0. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_STATIONARY_DETECT - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - /// - public class StationaryDetectController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.StationaryDetect; } - } - - //Callbacks - public UnityEvent OnStationaryDetectSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnStationaryDetectSensorChanged != null) - OnStationaryDetectSensorChanged.Invoke(); //triggers an event - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StationaryDetectController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StationaryDetectController.cs.meta deleted file mode 100644 index cec50ed0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StationaryDetectController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6b6a334c18fdaf84f91589095022c947 -timeCreated: 1520829595 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepCounterSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepCounterSensorController.cs deleted file mode 100644 index 1749ebc0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepCounterSensorController.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Step Counter Sensor Controller (API 19 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - /// Note: A sensor of this type returns the number of steps taken by the user since the last reboot while activated. - /// The value is returned as a float (with the fractional part set to zero) and is reset to zero only on a system reboot. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_STEP_COUNTER - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class StepCounterSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.StepCounter; } - } - - //Callbacks - [Serializable] public class StepCounterSensorChangedHandler : UnityEvent { } //steps since starting - public StepCounterSensorChangedHandler OnStepCounterSensorChanged; - - - - private int startSteps = -1; //startup steps - - //Reset the current count (only the number of steps of the difference, keep the number of steps of the sensor intact) - //現在のカウントのリセット(差分の歩数のみ。センサーの歩数はそのまま) - public void ResetCount() - { - startSteps = -1; - } - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - int nowSteps = Mathf.RoundToInt(info.values[0]); - if (startSteps < 0) - startSteps = nowSteps; - - if (OnStepCounterSensorChanged != null) - OnStepCounterSensorChanged.Invoke(nowSteps - startSteps); //steps since starting. //開始してからの歩数 - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepCounterSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepCounterSensorController.cs.meta deleted file mode 100644 index f0995b62..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepCounterSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2312becb8fafd8149a8449a9ed7f2536 -timeCreated: 1520654577 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepDetectorSensorController.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepDetectorSensorController.cs deleted file mode 100644 index 9d91ab1d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepDetectorSensorController.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Step Detector Sensor Controller (API 19 or higher) - /// http://fantom1x.blog130.fc2.com/blog-entry-294.html - /// - /// Note: A sensor of this type triggers an event each time a step is taken by the user. - /// The only allowed value to return is 1.0 and an event is generated for each step. - ///(Sensor Type) - /// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_STEP_DETECTOR - ///(Sensor Values) - /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values - ///(Sensor Delay) - /// https://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_FASTEST - ///(Motion Sensors) - /// https://developer.android.com/guide/topics/sensors/sensors_motion.html - /// - public class StepDetectorSensorController : SensorControllerBase - { - protected override SensorType sensorType { - get { return SensorType.StepDetector; } - } - - //Callbacks - public UnityEvent OnStepDetectorSensorChanged; - - - - //Callback handler for sensor values. - protected override void ReceiveValues(string json) - { - if (string.IsNullOrEmpty(json)) - return; - - base.ReceiveValues(json); - - if (OnStepDetectorSensorChanged != null) - OnStepDetectorSensorChanged.Invoke(); //triggers an event - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepDetectorSensorController.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepDetectorSensorController.cs.meta deleted file mode 100644 index 8bdad045..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Module/Sensors/StepDetectorSensorController.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e76359ef0213b274a92bd22574a56c8c -timeCreated: 1520738656 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System.meta deleted file mode 100644 index 3113f65f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5eb9859346f0a0540a5a52237ec4677c -folderAsset: yes -timeCreated: 1506480892 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidLocale.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidLocale.cs deleted file mode 100644 index 9a0e3b91..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidLocale.cs +++ /dev/null @@ -1,279 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace FantomLib -{ - /// - /// Locale for Android - /// - ///・Format : "language_country" or "language-country" - ///・language : ISO 639 alpha-2 or alpha-3 language code - ///・country(region) : ISO 639 alpha-2 or alpha-3 language code - /// https://developer.android.com/reference/java/util/Locale - /// - /// - ///(*) In this plugin '_' and '-' are treated as the same (e.g. "en_US" = "en-US"). - /// Three or more tags (e.g. "zh_TW_#Hant") can also be entered, but in the system it is equivalent to two tags (e.g. "zh_TW"). - /// For detailed notation, refer to the following URL. - /// (Locale list) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - /// - ///※このプラグインでは '_' と '-' は同じものとして扱われます(例: "en_US" = "en-US")。 - /// 3つ以上のタグ(e.g. "zh_TW_#Hant")も入力できますが、システムでは2つのタグ(例: "zh_TW")と同等になります。 - /// 詳しい表記は、以下の URL を参照して下さい。 - /// (Locale 一覧) - /// http://fantom1x.blog130.fc2.com/blog-entry-295.html - /// - public static class AndroidLocale - { - public static readonly string Default = "(Default)"; //default for display - - //(*) "language_country" may be added (only "language" is all included). It is better to be as unique as possible. - // However, depending on the system, "language" and "language_country" are often the same (e.g. "en" = "en_US"). - //(*) Only index 'Default' must be [0]. Otherwise, you can change the order. - // - //※"language_country"を追加しても構わない("language" のみは全て入っている)。なるべくユニークである方が良い。 - // ただし、システムによっては "language" と "language_country" は同じである場合も多い(例: "ja" = "ja_JP")。 - //※'Default' のみインデクスが [0] である必要がある。それ以外は順序を替えても構わない。 - public static readonly string[] ConstantValues = - { - Default, //dummy, system default (*Do not change index:[0]) - - "en", //English - "en_GB", //United Kingdom (Great Britain) - "ja", //Japanese - "ko", //Korean - "zh", //Chinese - "de", //German - "fr", //French - "it", //Italian - "es", //Spanish - "pt", //Portuguese - - //(see more) - //http://fantom1x.blog130.fc2.com/blog-entry-295.html - "af", - "agq", - "ak", - "am", - "ar", - "as", - "asa", - "az", - "bas", - "be", - "bem", - "bez", - "bg", - "bm", - "bn", - "bo", - "br", - "brx", - "bs", - "ca", - "ce", - "cgg", - "chr", - "cs", - "cy", - "da", - "dav", - "dje", - "dsb", - "dua", - "dyo", - "dz", - "ebu", - "ee", - "el", - "eo", - "et", - "eu", - "ewo", - "fa", - "ff", - "fi", - "fil", - "fo", - "fur", - "fy", - "ga", - "gd", - "gl", - "gsw", - "gu", - "guz", - "gv", - "ha", - "haw", - "hi", - "hr", - "hsb", - "hu", - "hy", - "ig", - "ii", - "in", - "is", - "iw", - "jgo", - "ji", - "jmc", - "ka", - "kab", - "kam", - "kde", - "kea", - "khq", - "ki", - "kk", - "kkj", - "kl", - "kln", - "km", - "kn", - "kok", - "ks", - "ksb", - "ksf", - "ksh", - "kw", - "ky", - "lag", - "lb", - "lg", - "lkt", - "ln", - "lo", - "lrc", - "lt", - "lu", - "luo", - "luy", - "lv", - "mas", - "mer", - "mfe", - "mg", - "mgh", - "mgo", - "mk", - "ml", - "mn", - "mr", - "ms", - "mt", - "mua", - "my", - "mzn", - "naq", - "nb", - "nd", - "ne", - "nl", - "nmg", - "nn", - "nnh", - "nus", - "nyn", - "om", - "or", - "os", - "pa", - "pl", - "ps", - "qu", - "rm", - "rn", - "ro", - "rof", - "ru", - "rw", - "rwk", - "sah", - "saq", - "sbp", - "se", - "seh", - "ses", - "sg", - "shi", - "si", - "sk", - "sl", - "smn", - "sn", - "so", - "sq", - "sr", - "sv", - "sw", - "ta", - "te", - "teo", - "tg", - "th", - "ti", - "tk", - "to", - "tr", - "twq", - "tzm", - "ug", - "uk", - "ur", - "uz", - "vai", - "vi", - "vun", - "wae", - "xog", - "yav", - "yo", - "zgh", - "zu", - }; - - //Language only - public const string English = "en"; - public const string Japanese = "ja"; - public const string Korean = "ko"; - public const string Chinese = "zh"; - public const string Arabic = "ar"; - public const string German = "de"; - public const string Greek = "el"; - public const string Spanish = "es"; - public const string Persian = "fa"; - public const string French = "fr"; - public const string Indonesian = "in"; - public const string Italian = "it"; - public const string Hebrew = "iw"; - public const string Dutch = "nl"; - public const string Portuguese = "pt"; - public const string Russian = "ru"; - public const string Swedish = "sv"; - public const string Thai = "th"; - public const string Turkish = "tr"; - public const string Vietnamese = "vi"; - - //Including Country - public const string US = "en_US"; - public const string UK = "en_GB"; - public const string Canada = "en_CA"; - public const string Japan = "ja_JP"; - public const string Korea = "ko_KR"; - public const string SimplifiedChinese = "zh_CN"; - public const string TraditionalChinese = "zh_TW"; - public const string China = SimplifiedChinese; - public const string PRC = SimplifiedChinese; - public const string Taiwan = TraditionalChinese; - public const string Germany = "de_DE"; - public const string France = "fr_FR"; - public const string CanadaFrench = "fr_CA"; - public const string Italy = "it_IT"; - public const string BrazilPortuguese = "pt_BR"; - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidLocale.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidLocale.cs.meta deleted file mode 100644 index 568e2f37..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidLocale.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d632ca5186a49e547b763cc0c51b1317 -timeCreated: 1524748067 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidMimeType.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidMimeType.cs deleted file mode 100644 index 7c07f45b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidMimeType.cs +++ /dev/null @@ -1,365 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; - -namespace FantomLib -{ - /// - /// MIME Type for Android - /// - ///・It is mainly used for specifying mimeType when SAF (Storage Access Framework) is used. - ///・Android files are managed in a database and are categorized by Files (other than media file), Images (image), Audio (audio), Video (movie). - ///・Mutiple extensions may be associated with MIME type, and there may be multiple MIME types (including different categories) with one extension. - ///・Note that MIME type varies depending on provider such as storage and cloud (e.g. MIME type with the extension "csv" is "text/comma-separated-values" for local storage and "text/csv" for Google Drive). - ///(*) Note that the MIME type does not necessarily work. - ///(*) When adding, MIME type must not be duplicated within the same category. - /// - /// - ///・主に SAF(ストレージアクセス機能)利用時の mimeType 指定に使う。 - ///・Android のファイルはデータベースで管理されており、File(メディアファイル以外), Image(画像), Audio(音声), Video(動画)でカテゴリ分けされている。 - ///・MIME type には複数の拡張子が対応する場合があり、また1つの拡張子で複数の MIME type(別のカテゴリを含む)ことがある。 - ///・MIME type はストレージやクラウドなどプロバイダによって異なるので注意(例:拡張子 "csv" の MIME type はローカルストレージでは "text/comma-separated-values" であり、Google Drive では "text/csv" で認識する)。 - ///※MIME type は必ずしも効くわけではないので注意して下さい。 - ///※追加する場合は、同カテゴリ内で MIME type が重複してはいけません。 - /// - public static class AndroidMimeType - { - public enum MediaType - { - File, Image, Audio, Video - } - - public static class File - { - public const string All = "*/*"; //All file type. (*) Please do not change as much as possible. - public const string TextAll = "text/*"; //All text type. (*) Please do not change as much as possible. - public const string txt = "text/plain"; - public const string ApplicationAll = "application/*"; //All application type. (*) Please do not change as much as possible. - public const string pdf = "application/pdf"; - - public static readonly string[][] ConstantValues = - { - //MIME type, ext1, ext2, ... (low index priority) - new string[] { txt, "txt" }, - new string[] { "text/html", "html", "htm" }, - new string[] { "text/comma-separated-values", "csv" }, //for local storage - new string[] { "text/csv", "csv" }, //for etc. - new string[] { "text/xml", "xml" }, //for local storage - new string[] { "application/xml", "xml" }, //for etc. - new string[] { "application/octet-stream", "json" }, //for local storage. (*) Originally a binary MIME type. Note the duplicate definitions. - new string[] { "application/json", "json" }, //for etc. - - new string[] { pdf, "pdf" }, - new string[] { "application/vnd.ms-excel", "xls" }, - new string[] { "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlsx" }, - new string[] { "application/msword", "doc" }, - new string[] { "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "docx" }, - //new string[] { "application/mspowerpoint", "ppt" }, //not available? - new string[] { "application/vnd.openxmlformats-officedocument.presentationml.presentation", "pptx" }, - }; - - public static void GetMimeToExtList(out List mime, out List ext) - { - AndroidMimeType.GetMimeToExtList(ConstantValues, out mime, out ext); - } - - public static void GetExtToMimeList(out List ext, out List mime) - { - AndroidMimeType.GetExtToMimeList(ConstantValues, out ext, out mime); - } - } - - public static class Image - { - public const string All = "image/*"; //All image type. (*) Please do not change as much as possible. - public const string jpg = "image/jpeg"; - public const string png = "image/png"; - - public static readonly string[][] ConstantValues = - { - //MIME type, ext1, ext2, ... (low index priority) - new string[] { jpg, "jpg", "jpeg" }, - new string[] { png, "png" }, - //new string[] { "image/gif", "gif" }, //not available on Unity - }; - - public static void GetMimeToExtList(out List mime, out List ext) - { - AndroidMimeType.GetMimeToExtList(ConstantValues, out mime, out ext); - } - - public static void GetExtToMimeList(out List ext, out List mime) - { - AndroidMimeType.GetExtToMimeList(ConstantValues, out ext, out mime); - } - } - - public static class Audio - { - public const string All = "audio/*"; //All audio type. (*) Please do not change as much as possible. - public const string mp3 = "audio/mpeg"; - public const string wav = "audio/x-wav"; - - public static readonly string[][] ConstantValues = - { - //MIME type, ext1, ext2, ... (low index priority) - new string[] { "audio/mpeg", "mp3",/*"m4a"*/ }, //"m4a" is not available on Unity - new string[] { wav, "wav" }, - new string[] { "application/ogg", "ogg" }, //for local storage - new string[] { "audio/ogg", "ogg" }, //for etc. - }; - - public static void GetMimeToExtList(out List mime, out List ext) - { - AndroidMimeType.GetMimeToExtList(ConstantValues, out mime, out ext); - } - - public static void GetExtToMimeList(out List ext, out List mime) - { - AndroidMimeType.GetExtToMimeList(ConstantValues, out ext, out mime); - } - } - - public static class Video - { - public const string All = "video/*"; //All video type. (*) Please do not change as much as possible. - public const string mp4 = "video/mp4"; - - public static readonly string[][] ConstantValues = - { - //MIME type, ext1, ext2, ... (low index priority) - new string[] { mp4, "mp4" }, - new string[] { "video/3gpp", "3gp" }, - new string[] { "video/3gpp2", "3g2" }, - }; - - public static void GetMimeToExtList(out List mime, out List ext) - { - AndroidMimeType.GetMimeToExtList(ConstantValues, out mime, out ext); - } - - public static void GetExtToMimeList(out List ext, out List mime) - { - AndroidMimeType.GetExtToMimeList(ConstantValues, out ext, out mime); - } - } - - - //========================================================== - // Extension and MIME Type (list values) - - //Generate a correspondence list of MIME type -> {ext1, ext2, ...} within the same category - //同カテゴリ内で MIME type -> {ext1, ext2, ...} の対応リストを生成する - static void GetMimeToExtList(string[][] constantValues, out List mime, out List ext) - { - mime = new List(); - ext = new List(); - - foreach (var item in constantValues) - { - string[] arr = new string[item.Length - 1]; //extension: always 1 or more - Array.Copy(item, 1, arr, 0, item.Length - 1); //item[0]: MIME type, [1][2]...: ext -> arr: extract ext only - mime.Add(item[0]); //MIME type. Always [0] exists. - ext.Add(arr); //{ext1, ext2, ...} - } - } - - //(*) For public acquisition - //Generate a correspondence list of MIME type -> {ext1, ext2, ...} within the same category - //同カテゴリ内で MIME type -> {ext1, ext2, ...} の対応リストを生成する - public static void GetMimeToExtList(MediaType mediaType, out List mime, out List ext) - { - switch (mediaType) - { - default: - case MediaType.File: - GetMimeToExtList(File.ConstantValues, out mime, out ext); - break; - case MediaType.Image: - GetMimeToExtList(Image.ConstantValues, out mime, out ext); - break; - case MediaType.Audio: - GetMimeToExtList(Audio.ConstantValues, out mime, out ext); - break; - case MediaType.Video: - GetMimeToExtList(Video.ConstantValues, out mime, out ext); - break; - } - } - - //Generate a correspondence list of ext -> {MIME type1, MIME type2, ...} within the same category - //同カテゴリ内で ext -> {MIME type1, MIME type2, ...} の対応リストを生成する - static void GetExtToMimeList(string[][] constantValues, out List ext, out List mime) - { - ext = new List(); - mime = new List(); - - foreach (var row in constantValues) - { - for (int i = 1; i < row.Length; i++) //extension: always 1 or more - { - int idx = ext.IndexOf(row[i]); //(*) Inefficient processing //※非効率な処理 - if (idx >= 0) - { - mime[idx] = AddToArray(mime[idx], row[0]); - } - else - { - ext.Add(row[i]); - mime.Add(new string[] { row[0] }); - } - } - } - } - - //(*) For public acquisition - //Generate a correspondence list of ext -> {MIME type1, MIME type2, ...} within the same category - //同カテゴリ内で ext -> {MIME type1, MIME type2, ...} の対応リストを生成する - public static void GetExtToMimeList(MediaType mediaType, out List ext, out List mime) - { - switch (mediaType) - { - default: - case MediaType.File: - GetExtToMimeList(File.ConstantValues, out ext, out mime); - break; - case MediaType.Image: - GetExtToMimeList(Image.ConstantValues, out ext, out mime); - break; - case MediaType.Audio: - GetExtToMimeList(Audio.ConstantValues, out ext, out mime); - break; - case MediaType.Video: - GetExtToMimeList(Video.ConstantValues, out ext, out mime); - break; - } - } - - - //========================================================== - // Extension and MIME Type (each values) - - //MIME Type <-> Extension convert table - static readonly Dictionary MimeToExt = new Dictionary(); - static readonly Dictionary ExtToMime = new Dictionary(); - - //Generate MIME Type <-> Extension convert table - static void MakeTable() - { - MimeToExt.Clear(); - ExtToMime.Clear(); - - List mime; List ext; - File.GetMimeToExtList(out mime, out ext); - for (int i = 0; i < mime.Count; i++) - { - foreach (var item in ext[i]) - { - AddUniqValueAsArray(MimeToExt, mime[i], item); - AddUniqValueAsArray(ExtToMime, item, mime[i]); - } - } - - Image.GetMimeToExtList(out mime, out ext); - for (int i = 0; i < mime.Count; i++) - { - foreach (var item in ext[i]) - { - AddUniqValueAsArray(MimeToExt, mime[i], item); - AddUniqValueAsArray(ExtToMime, item, mime[i]); - } - } - - Audio.GetMimeToExtList(out mime, out ext); - for (int i = 0; i < mime.Count; i++) - { - foreach (var item in ext[i]) - { - AddUniqValueAsArray(MimeToExt, mime[i], item); - AddUniqValueAsArray(ExtToMime, item, mime[i]); - } - } - - Video.GetMimeToExtList(out mime, out ext); - for (int i = 0; i < mime.Count; i++) - { - foreach (var item in ext[i]) - { - AddUniqValueAsArray(MimeToExt, mime[i], item); - AddUniqValueAsArray(ExtToMime, item, mime[i]); - } - } - } - - //(*) For public acquisition - //MIME type -> Extension (array) - public static string[] GetExtension(string mimeType) - { - if (MimeToExt.Count == 0) - MakeTable(); - - if (MimeToExt.ContainsKey(mimeType)) - return MimeToExt[mimeType]; - - return null; //Not found - } - - //(*) For public acquisition - //Extension -> MIME type (array) - public static string[] GetMimeType(string ext) - { - if (ExtToMime.Count == 0) - MakeTable(); - - if (ExtToMime.ContainsKey(ext)) - return ExtToMime[ext]; - - return null; //Not found - } - - - //========================================================== - // other method - - //Add a value (character string) uniquely as an array. - //(*) This additional processing is high in load, but there is not much problem because the target data (duplicated value) is small. - // - //値(文字列)を配列としてユニーク追加する。 - //※この追加の処理は負荷が高いが、対象となるデータ(重複してるもの)は少量であるため、あまり問題ないとしている。 - //※Dictionary> にした方が追加処理は軽いが、表記が煩雑になる(また読み取りは List より string[] の方が速い)。 - static void AddUniqValueAsArray(Dictionary dic, string key, string val) - { - if (dic.ContainsKey(key)) - { - string[] src = dic[key]; - - //(*) The following processing is noticeable when the data is large, because the load is high. - //※以下の処理はデータが大量にあるとき、負荷が高いので注意 - if (!src.Contains(val)) - dic[key] = AddToArray(src, val); - } - else - { - dic[key] = new string[] { val }; - } - } - - //Add an element to the end of the array (Always new array is generated) - //配列の最後に要素を追加する(常に新しい配列が生成される) - static string[] AddToArray(string[] src, string val) - { - if (src != null) - { - string[] dst = new string[src.Length + 1]; - Array.Copy(src, 0, dst, 0, src.Length); - dst[src.Length] = val; - return dst; - } - else - { - return new string[] { val }; - } - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidMimeType.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidMimeType.cs.meta deleted file mode 100644 index 6c461a38..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AndroidMimeType.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 89009e01fa3f73440a0361c1fa151eec -timeCreated: 1527935108 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithKey.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithKey.cs deleted file mode 100644 index 6a53f36f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithKey.cs +++ /dev/null @@ -1,125 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Application exit with key input (with twice push within the time limit) - /// - /// キー入力で終了する(制限時間内に2回押しで終了機能付き) - /// - public class AppExitWithKey : MonoBehaviour - { - public bool enableKey = true; //true = use key //キーを有効にする - public KeyCode exitKey = KeyCode.Escape; //Key code to finish //終了するキー - - public bool oneMoreConfirm = false; //'Press again' mode (press twice to exit) //「もう一度押す」モードにする(2回押しで終了) - public float oneMoreDuration = 3.0f; //Time limit of 'Press again' //「もう一度押す」の長さ(制限時間) - public float exitDelay = 0.0f; //Exit execution delay (Reasonable until 3.0 seconds) //終了実行ディレイ(3.0秒くらいまでが妥当) - - - //n回目キー押下コールバック - public UnityEvent OnFirstPressed; //First time press //1回目を押したとき - public UnityEvent OnSecondPressed; //Second time press //2回目を押したとき - - //終了直前のイベントコールバック - public UnityEvent OnBeforeDelay; //Callback when just before waiting //待機前に呼び出されるコールバック - public UnityEvent OnBeforeExit; //Callback when just before exit //終了前に呼び出されるコールバック - - - //Local Values - protected bool pressed = false; //First time press flag //1回目押下した - protected float limitTime; //Second pressing time limit //2回目押下制限時間(この時間以降は無効) - protected bool done = false; //Key input done (For double prevention) //キー入力実行済み(2重防止用) - - - - // Use this for initialization - protected void Start() - { - - } - - - // Update is called once per frame - protected void Update() - { - if (enableKey && !done) - { - if (Input.GetKeyDown(exitKey)) - { - if (oneMoreConfirm) - { - if (!pressed) //First time press //1回目押下 - { - pressed = true; - limitTime = Time.time + oneMoreDuration; - - if (OnFirstPressed != null) - OnFirstPressed.Invoke(); - } - else //Second time press //2回目押下 - { - if (Time.time < limitTime) //Valid if it is within the time limit //制限時間内なら有効 - { - done = true; - - if (OnSecondPressed != null) - OnSecondPressed.Invoke(); - - OnExit(); - } - } - } - else //When it exit only once //1回のみで終了のとき - { - done = true; - OnExit(); - } - } - - if (limitTime <= Time.time) //Reset after time limit //制限時間を過ぎたらリセット - pressed = false; - } - } - - - protected Coroutine coroutine = null; //For double prevention //2重防止 - - //For calling from outside (Exit is made unique) - //外部から呼び出し用(終了はユニークにする) - public void OnExit() - { - if (coroutine == null) - coroutine = StartCoroutine(WaitAndExit(exitDelay > 0 ? exitDelay : 0)); - } - - - //Wait for the specified time and then exit (For calling "OnExit()"). - //Ignore WebGL etc. (Since we only have to close the browser) - // - //指定時間待機してから終了。エディタの場合はプレイモードの終了(※OnExit() から呼び出し用)。 - //WebGL等は無視(ブラウザを閉じるしかないので) - protected virtual IEnumerator WaitAndExit(float sec) - { - if (OnBeforeDelay != null) - OnBeforeDelay.Invoke(); - - yield return new WaitForSeconds(sec); - - if (OnBeforeExit != null) - OnBeforeExit.Invoke(); - -#if UNITY_EDITOR - UnityEditor.EditorApplication.isPlaying = false; //For editor //エディタではプレイを停止 -#elif !UNITY_WEBGL && !UNITY_WEBPLAYER - Application.Quit(); -#endif - done = true; //Just in cas //念のため - } - } - -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithKey.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithKey.cs.meta deleted file mode 100644 index 3f3adc17..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithKey.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 580b392f9fc5dbb49bb00ff4ba1147b7 -timeCreated: 1506483379 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithToast.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithToast.cs deleted file mode 100644 index 2605d29c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithToast.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Application exit with key input (with twice push within the time limit), Android Toast displays the pressed state - /// - /// キー入力で終了する(Android の Toast でメッセージ表示) - /// - public class AppExitWithToast : AppExitWithKey - { - //Inspector Settings - public bool showOneMoreMessage = true; - public LocalizeString oneMoreMessage = new LocalizeString( - new List() - { - new LocalizeString.Data(SystemLanguage.Japanese, "もう一度押すと終了します。"), - new LocalizeString.Data(SystemLanguage.English, "Press again to exit."), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "再次按下即可退出。"), - new LocalizeString.Data(SystemLanguage.Korean, "종료하려면 다시 누릅니다."), - }); - - - public bool showExitMessage = false; - public LocalizeString exitMessage = new LocalizeString( - new List() - { - new LocalizeString.Data(SystemLanguage.Japanese, "アプリケーションを終了します。"), - new LocalizeString.Data(SystemLanguage.English, "Exit the application."), - new LocalizeString.Data(SystemLanguage.ChineseSimplified, "退出应用程序。"), - new LocalizeString.Data(SystemLanguage.Korean, "응용 프로그램을 종료합니다."), - }); - - - - // Use this for initialization - protected new void Start() - { - base.Start(); - - oneMoreMessage.Initialize(); //Apply inspector registration. //インスペクタ登録を反映 - exitMessage.Initialize(); //Apply inspector registration. //インスペクタ登録を反映 - - //Register itself when it is empty - //独自登録されてないとき、自身を登録する(※インスペクタには表示されないので注意) - if (showOneMoreMessage && OnFirstPressed.GetPersistentEventCount() == 0) - { -#if UNITY_EDITOR - Debug.Log("OnFirstPressed added ShowOneMoreToast (auto)"); -#endif - OnFirstPressed.AddListener(ShowOneMoreToast); - } - - if (showExitMessage && OnSecondPressed.GetPersistentEventCount() == 0) - { -#if UNITY_EDITOR - Debug.Log("OnSecondPressed added ShowExitToast (auto)"); -#endif - OnSecondPressed.AddListener(ShowExitToast); - } - } - - //When "Press again to exit." Toast - //「もう一度押すと終了します。」のときの Toast - public void ShowOneMoreToast() - { - if (!showOneMoreMessage) - return; - -#if UNITY_EDITOR - Debug.Log("ShowOneMoreToast called"); -#elif UNITY_ANDROID - string text = oneMoreMessage.Text; - if (!string.IsNullOrEmpty(text)) - AndroidPlugin.ShowToast(text); -#endif - } - - //When "Exit the application." Toast (*) When using it you better put a time to display a bit with exitDelay - //「アプリケーションを終了します。」のときの Toast(デフォでは使用してない。使用するときは exitDelay で少し表示する時間を入れた方が良い) - public void ShowExitToast() - { - if (!showExitMessage) - return; - -#if UNITY_EDITOR - Debug.Log("ShowExitToast called"); -#elif UNITY_ANDROID - string text = exitMessage.Text; - if (!string.IsNullOrEmpty(text)) - AndroidPlugin.ShowToast(text); -#endif - } - - //Wait for the specified time and then exit. (For calling "OnExit()") - //Ignore WebGL etc. (Since we only have to close the browser) - //指定時間待機してから終了。エディタの場合はプレイモードの終了。(※OnExit() から呼び出し用) - //WebGL等は無視(ブラウザを閉じるしかないので) - protected override IEnumerator WaitAndExit(float sec) - { - if (OnBeforeDelay != null) - OnBeforeDelay.Invoke(); - - yield return new WaitForSeconds(sec); - - if (OnBeforeExit != null) - OnBeforeExit.Invoke(); - -#if UNITY_ANDROID && !UNITY_EDITOR - AndroidPlugin.CancelToast(); //(*) Since the Toast tends to remain long on the screen, it disappears here. //トーストが画面に長く残る傾向があるので、ここで消す -#endif - -#if UNITY_EDITOR - UnityEditor.EditorApplication.isPlaying = false; //For Editor //Editorではプレイを停止 -#elif !UNITY_WEBGL && !UNITY_WEBPLAYER - Application.Quit(); -#endif - done = true; - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithToast.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithToast.cs.meta deleted file mode 100644 index 3df2f930..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/AppExitWithToast.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 3bf6e915898f0ff45bf6e3eb139d0635 -timeCreated: 1506483973 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor.meta deleted file mode 100644 index 69e377e8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a87c031564bbdfe40b00651a0802ea0f -folderAsset: yes -timeCreated: 1524557535 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/LocalizeStringResourceEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/LocalizeStringResourceEditor.cs deleted file mode 100644 index ff8aa8b8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/LocalizeStringResourceEditor.cs +++ /dev/null @@ -1,111 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEditor; -using IDValidStatus = FantomLib.LocalizeStringResource.IDValidStatus; - -namespace FantomLib -{ - [CustomEditor(typeof(LocalizeStringResource))] - public class LocalizeStringResourceEditor : Editor - { - SerializedProperty items; - GUIContent itemsLabel = new GUIContent("Items"); - - int insertIndex = 0; - int removeIndex = -1; - string searchID = ""; - - //Check for ID errors - IDValidStatus idValidStatus = new IDValidStatus(); - string emptyIndexError = ""; - string duplicateIDError = ""; - - private void OnEnable() - { - items = serializedObject.FindProperty("items"); - } - - public override void OnInspectorGUI() - { - var obj = target as LocalizeStringResource; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - bool edited = false; - - EditorGUI.BeginChangeCheck(); - EditorGUILayout.PropertyField(items, itemsLabel, true); - edited |= EditorGUI.EndChangeCheck(); - - GUILayout.Space(15); - - if (items.arraySize > 0) { - if (!string.IsNullOrEmpty(emptyIndexError)) - EditorGUILayout.HelpBox("There is empty ID (index) : " + emptyIndexError, MessageType.Error); - if (!string.IsNullOrEmpty(duplicateIDError)) - EditorGUILayout.HelpBox("There is duplicate ID : " + duplicateIDError, MessageType.Error); - } - - if (!Application.isPlaying) - { - if (obj.EditExecuting) - return; - - GUILayout.Space(15); - //GUILayout.Box("Editor Tools", GUILayout.ExpandWidth(true), GUILayout.Height(20)); - - insertIndex = EditorGUILayout.IntField("Insert Index", insertIndex); - if (GUILayout.Button("Insert New Item")) - { - if (obj.IsValidIndex(insertIndex)) - Undo.RecordObject(target, "Insert New LocalizeString Item"); - edited |= obj.InsetItem(insertIndex); - } - - removeIndex = EditorGUILayout.IntField("Remove Index", removeIndex); - if (GUILayout.Button("Remove Item")) - { - if (obj.IsValidIndex(removeIndex)) - Undo.RecordObject(target, "Remove LocalizeString Item"); - edited |= obj.RemoveItem(removeIndex); - } - - EditorGUI.BeginChangeCheck(); - searchID = EditorGUILayout.TextField("Search ID", searchID); - if (EditorGUI.EndChangeCheck()) - { - if (!string.IsNullOrEmpty(searchID)) - insertIndex = removeIndex = obj.FindIndex(searchID, true); - else - insertIndex = removeIndex = -1; - } - - if (GUILayout.Button("Get Index from ID (Whole match)")) - { - insertIndex = removeIndex = obj.FindIndex(searchID); - } - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - - //Check for ID errors - if (edited) - CheckValidity(); - } - - private void CheckValidity() - { - var obj = target as LocalizeStringResource; - obj.CheckIDValidity(ref idValidStatus); - emptyIndexError = idValidStatus.GetEmptyError(); - duplicateIDError = idValidStatus.GetDuplicateError(); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/LocalizeStringResourceEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/LocalizeStringResourceEditor.cs.meta deleted file mode 100644 index 76c0e5f4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/LocalizeStringResourceEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9ff62ccd07b6ef04198b675f8c7718ef -timeCreated: 1524557547 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/SceneLoadWithKeyEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/SceneLoadWithKeyEditor.cs deleted file mode 100644 index d4337e9b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/SceneLoadWithKeyEditor.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(SceneLoadWithKey))] - public class SceneLoadWithKeyEditor : Editor { - - SerializedProperty sceneBuildIndex; - GUIContent sceneBuildIndexLabel = new GUIContent("Scene Build Index"); - //SerializedProperty useName; - //GUIContent useNameLabel = new GUIContent("Use Name"); - SerializedProperty sceneName; - GUIContent sceneNameLabel = new GUIContent("Scene Name"); - SerializedProperty isAdditive; - GUIContent isAdditiveLabel = new GUIContent("Is Additive"); - SerializedProperty enableKey; - GUIContent enableKeyLabel = new GUIContent("Enable Key"); - SerializedProperty loadKey; - GUIContent loadKeyLabel = new GUIContent("Load Key"); - SerializedProperty loadDelay; - GUIContent loadDelayLabel = new GUIContent("Load Delay"); - - SerializedProperty OnKeyPressed; - SerializedProperty OnBeforeDelay; - SerializedProperty OnBeforeLoad; - - private void OnEnable() - { - sceneBuildIndex = serializedObject.FindProperty("sceneBuildIndex"); - //useName = serializedObject.FindProperty("useName"); - sceneName = serializedObject.FindProperty("sceneName"); - isAdditive = serializedObject.FindProperty("isAdditive"); - enableKey = serializedObject.FindProperty("enableKey"); - loadKey = serializedObject.FindProperty("loadKey"); - loadDelay = serializedObject.FindProperty("loadDelay"); - OnKeyPressed = serializedObject.FindProperty("OnKeyPressed"); - OnBeforeDelay = serializedObject.FindProperty("OnBeforeDelay"); - OnBeforeLoad = serializedObject.FindProperty("OnBeforeLoad"); - } - - string[] sceneSpecification = { "Scene Build Index", "Scene Name" }; - - public override void OnInspectorGUI() - { - var obj = target as SceneLoadWithKey; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - - EditorGUI.BeginChangeCheck(); - int sceneSpecificationIndex = EditorGUILayout.Popup("Scene Specification", obj.useName ? 1 : 0, sceneSpecification); - if (EditorGUI.EndChangeCheck()) - { - if (0 <= sceneSpecificationIndex && sceneSpecificationIndex < sceneSpecification.Length) - obj.useName = (sceneSpecificationIndex == 1); - } - - //EditorGUILayout.PropertyField(useName, useNameLabel, true); - if (obj.useName) - EditorGUILayout.PropertyField(sceneName, sceneNameLabel, true); - else - EditorGUILayout.PropertyField(sceneBuildIndex, sceneBuildIndexLabel, true); - - - EditorGUILayout.PropertyField(isAdditive, isAdditiveLabel, true); - - EditorGUILayout.PropertyField(enableKey, enableKeyLabel, true); - EditorGUILayout.PropertyField(loadKey, loadKeyLabel, true); - EditorGUILayout.PropertyField(loadDelay, loadDelayLabel, true); - - EditorGUILayout.PropertyField(OnKeyPressed, true); - EditorGUILayout.PropertyField(OnBeforeDelay, true); - EditorGUILayout.PropertyField(OnBeforeLoad, true); - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/SceneLoadWithKeyEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/SceneLoadWithKeyEditor.cs.meta deleted file mode 100644 index 1f644791..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Editor/SceneLoadWithKeyEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 54c09ff96d1117948baffd48db277f0a -timeCreated: 1533613646 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/ILocalizable.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/ILocalizable.cs deleted file mode 100644 index 703eb49e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/ILocalizable.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace FantomLib -{ - public interface ILocalizable - { - void ApplyLocalize(SystemLanguage language); - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/ILocalizable.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/ILocalizable.cs.meta deleted file mode 100644 index d8ea0e0c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/ILocalizable.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fff25932fb497424d8792a1e250f6b07 -timeCreated: 1525057126 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizableBehaviour.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizableBehaviour.cs deleted file mode 100644 index aa5eaa99..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizableBehaviour.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; - -namespace FantomLib -{ - /// - /// For apply localize string by specific language - /// Because to be able to register in the inspector (LocalizeLanguageChanger), - /// and use 'FindObjectsOfType()' method, - /// make it an abstract class instead of an interface. - /// - public abstract class LocalizableBehaviour : MonoBehaviour - { - virtual public void ApplyLocalize(SystemLanguage language) { } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizableBehaviour.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizableBehaviour.cs.meta deleted file mode 100644 index 9220b715..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizableBehaviour.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 552afabc7e9288a4baaf85989b992a0f -timeCreated: 1524993399 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeLanguageChanger.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeLanguageChanger.cs deleted file mode 100644 index eeaed8fb..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeLanguageChanger.cs +++ /dev/null @@ -1,265 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Change the language of the localization function - ///・When it is 'Unknown', it searches in order of 'system language -> default language' (Since of 'LocalizeString' specification). - ///·When specified as a string type, when it is included in 'defaultStrings' (case insensitive), or when a language not defined in SystemLanguage is specified, - /// it searches in order of 'system language -> default language' (That is, it becomes the same as 'Unknown' specification). - /// - ///・'Unknown'のとき、システム言語→デフォルト言語の順に検索される('LocalizeString'の仕様のため)。 - ///・文字列型で指定する場合は、'defaultStrings' に含まれるとき(大小文字を区別しない)、または SystemLanguage に定義されてない言語が指定されたとき、 - /// システム言語→デフォルト言語の順に検索される(つまり 'Unknown' 指定と同じになる)。 - /// - public class LocalizeLanguageChanger : MonoBehaviour - { - //Inspector Settings - [SerializeField] private SystemLanguage language = SystemLanguage.Unknown; //'Unknown' is default (system language) - - public bool applyOnStart = false; //Execute 'ApplyLocalize()' on 'Start()'. (*) If 'saveSetting' is true, ignore 'applyOnStart'. - - - //Language string for 'Unknown' (It is convert to lowercase letters) - //·'LocalizeString' searches in order of system language → default language. - // - //'Unknown'と同義の文字列(小文字に変換される) - //・'LocalizeString'では、システム言語→デフォルト言語の順に検索される。 - [SerializeField] private string[] defaultStrings = { - "Unknown", "Default", "System", "System Language", "None" }; - - //Search for objects with 'LocalizableBehaviour' on startup. (*) The current 'localizable' will be overwritten. - public bool findLocalizable = false; //When true, note that using 'FindObjectsOfType' is a high load. - - //Object (LocalizableBehaviour) to change language. (Note that if 'findLocalizable' is true, it will be overwritten.) - [SerializeField] private LocalizableBehaviour[] localizableObjects; - - //Object implementing 'ILocalizable' interface. ('findLocalizable' is not searched.) - [SerializeField] private GameObject[] implGameobjects; - - - //Save PlayerPrefs Settings - public bool saveSetting = false; //Whether to save the settings (Also local value is always overwritten). - [SerializeField] private string saveKey = ""; //When specifying the PlayerPrefs key for settings. - - //Callbacks - [Serializable] public class LanguageChangedHandler : UnityEvent { } - public LanguageChangedHandler OnLanguageChanged; - - -#if UNITY_EDITOR - //For debug (Editor play mode only) - public SystemLanguage debugLanguage = SystemLanguage.Unknown; //Display language for debug - public bool debugApplyOnStart = false; //Force apply on 'Start()'. Note: Language initialize ('applyOnStart', 'saveSetting') will be overwritten. - private SystemLanguage oldDebugLanguage = SystemLanguage.Unknown; //Check for change debugLanguage -#endif - - -#region PlayerPrefs Section - - //Defalut PlayerPrefs Key (It is used only when saveKey is empty) - const string SETTING_PREF = "_setting"; - const string LANGUAGE_KEY = "language"; - - private Param setting = new Param(); //Compatibale Dictionary - - //Saved key in PlayerPrefs (Default key is "gameObject.name + '_setting'") - public string SaveKey { - get { return string.IsNullOrEmpty(saveKey) ? gameObject.name + SETTING_PREF : saveKey; } - } - - //Load local values manually. - public void LoadPrefs() - { - setting = Param.GetPlayerPrefs(SaveKey, setting); - Language = ConvertToSystemLanguage(setting.GetString(LANGUAGE_KEY, Language.ToString())); - } - - //Save local values manually. - public void SavePrefs() - { - setting.Set(LANGUAGE_KEY, Language); - Param.SetPlayerPrefs(SaveKey, setting); - PlayerPrefs.Save(); - } - - //Delete PlayerPrefs key. - //Note: Local values are not initialized at this time. - public void DeletePrefs() - { - PlayerPrefs.DeleteKey(SaveKey); - } - - //Returns true if the saved value exists. - public bool HasPrefs { - get { return PlayerPrefs.HasKey(SaveKey); } - } - -#endregion - -#region Properties and Local values Section - - //Change language setting and apply to 'localizable'. - public SystemLanguage Language { - get { return language; } - set { - if (language != value) - { - language = value; - ApplyLocalize(); - - if (OnLanguageChanged != null) - OnLanguageChanged.Invoke(language); - - if (saveSetting) - SavePrefs(); - } - } - } - - private List iLocalizable = new List(); //Cache - - //Create a list of 'ILocalizable'. - private void MakeILocalizableList() - { - iLocalizable.Clear(); - - HashSet set = new HashSet(); - foreach (var go in implGameobjects) - { - if (go == null) - continue; - - ILocalizable[] impls = go.GetComponents(); - if (impls != null) - { - foreach (var obj in impls) - set.Add(obj); //add unique - } - } - - if (set.Count > 0) - iLocalizable.AddRange(set); - } - - - //Apply localization with the current 'Language' property. - private void ApplyLocalize() - { - if (!initialized) - Initialize(); - - foreach (var item in localizableObjects) - if (item != null) - item.ApplyLocalize(language); - - foreach (var item in iLocalizable) - if (item != null) - item.ApplyLocalize(language); - } - - //Change the current 'Language' property and apply localization. - public void ApplyLocalize(SystemLanguage language) - { - Language = language; - } - - //Change the current 'Language' (string type) property and apply localization. - public void ApplyLocalize(string lang) - { - Language = ConvertToSystemLanguage(lang); - } - - //Change the current 'Language' (dropdown selected text) property and apply localization. - public void ApplyLocalize(Dropdown dropdown) - { - if (dropdown == null) - return; - - Language = ConvertToSystemLanguage(dropdown.captionText.text); - } - - - private bool initialized = false; //Initialized flag - - //Initialization processing such as necessary data - private void Initialize() - { - defaultStrings = defaultStrings.Select(e => e.ToLower()).ToArray(); - Array.Sort(defaultStrings); //For 'BinarySearch()' - - if (findLocalizable) - localizableObjects = FindObjectsOfType(); //'ILocalizable' can not be used for 'FindObjectsOfType'. Also note that it is high load. - - if (implGameobjects.Length > 0) - MakeILocalizableList(); - - initialized = true; - } - - //Is the character string included in 'defaultStrings'? - public bool IsDefaultString(string lang) - { - if (!initialized) - Initialize(); - - return Array.BinarySearch(defaultStrings, lang.ToLower()) >= 0; - } - - //Convert string (ignore case) to 'SystemLanguage' type. - //However, those that match 'defaultStrings' or those that can not be parsed are returned as 'Unknown'. - // - //文字列(大小文字を区別しない)を 'SystemLanguage' に変換する。 - //ただし、’defaultStrings’ に一致するもの、またはパースできなかったものは 'Unknown' で返す。 - public SystemLanguage ConvertToSystemLanguage(string lang) - { - try - { - return (IsDefaultString(lang)) ? - SystemLanguage.Unknown : (SystemLanguage)Enum.Parse(typeof(SystemLanguage), lang, true); - } - catch - { - return SystemLanguage.Unknown; - } - } - -#endregion - - // Use this for initialization - private void Start() - { - if (!initialized) - Initialize(); - - if (saveSetting) //If true, ignore 'applyOnStart'. - LoadPrefs(); - else if (applyOnStart && language != SystemLanguage.Unknown) - ApplyLocalize(); - -#if UNITY_EDITOR - if (debugApplyOnStart) - Language = oldDebugLanguage = debugLanguage; - else - oldDebugLanguage = debugLanguage = SystemLanguage.Unknown; -#endif - } - - // Update is called once per frame - private void Update() - { -#if UNITY_EDITOR - if (debugLanguage != oldDebugLanguage && initialized) - { - Language = oldDebugLanguage = debugLanguage; - } -#endif - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeLanguageChanger.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeLanguageChanger.cs.meta deleted file mode 100644 index e62952af..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeLanguageChanger.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d5f3373ded429ab4cbd398d490bb37c5 -timeCreated: 1524992191 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeString.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeString.cs deleted file mode 100644 index f392d5c7..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeString.cs +++ /dev/null @@ -1,313 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Localization of strings - ///・Search in System language setting -> defaultLanguage (nothing -> "") - ///·Inspector registration 'list' (List) is converted to Dictionary by 'Initialize()' method and used at runtime. - ///·The 'id' field is required only when used with 'LocalizeStringResource' (make it a unique ID within the 'LocalizeStringResource'). - /// - /// [*Specification change point from previous version] - ///·In the previous version, when the language could not find, forcibly set the language to English or Japanese, font size to DEF_FONTSIZE, - /// but the current version want to detect the state not found, so the language is 'Unkown', the font size is '0' the specification changed to return. - ///·Initialize()' method (List -> Dictionary conversion) was automated by checking with the flag. - ///·Changed the text field (LocalizeString.Data.text) of data for each language to multiple lines ('Multiline' attribute) on the inspector. - /// - /// - /// 文字列のローカライズ - ///・システムの言語設定→デフォルト言語設定の順に検索(無いとき ""(空文字)) - ///・インスペクタ登録用リスト(List)は Initialize() メソッドで Dictionary へ変換して、実行時に使われる。 - ///・ID フィールドは「LocalizeStringResource」で使用するときのみ必要(LocalizeStringResource 内で重複しない ID にする)。 - /// - /// [※以前のバージョンからの仕様変更箇所] - ///・以前のバージョンでは言語が見つからないとき、強制的に言語を英語か日本語、フォントサイズを DEF_FONTSIZE に設定していたが、 - /// 現バージョンでは見つからない状態も検出したいので、言語は Unkown、フォントサイズは 0 を返すように仕様変更した。 - ///・「Initialize()」メソッド(リスト→辞書変換)はフラグでチェックすることにより、自動化した。 - ///・各言語ごとのデータのテキストフィールド(LocalizeString.Data.text)をインスペクタ上で複数行(Multiline 属性)に変更した。 - /// - [Serializable] - public class LocalizeString - { - //Inspector Settings - public string id; //For 'LocalizeStringResource' - - //Default language setting (language not found in System Language) - //デフォルト言語設定(システム言語で見つからなかったときの言語) - public SystemLanguage defaultLanguage = SystemLanguage.English; - -#region Properties and Local values Section - - private bool initialized = false; //initialize done flag (false = need 'Initialize()') - - //private const int DEF_FONTSIZE = 14; //default font size (UI.Text etc.) //デフォルトのフォントサイズ(UI.Text など) - - /// - /// Parameter for each language - /// - /// 各言語ごとのデータ - /// - [Serializable] - public class Data - { - public SystemLanguage language; - [Multiline] public string text; - public int fontSize; - - public Data(SystemLanguage language = SystemLanguage.English, string text = "", int fontSize = 0) - { - this.language = language; - this.text = text; - this.fontSize = fontSize; - } - - public Data Clone() - { - return (Data)MemberwiseClone(); - } - } - - //For Inspector or constructor setting - //Note: List will not be used at runtime -> convert to Dictionary (table) (Converted with 'Initialize()') - //インスペクタ or コンストラクタ登録用 - //※実行中には使用しないので注意 → 実行中は辞書(table)を使う(Initialize() で変換される) - [SerializeField] - private List list = new List() - { - new Data(SystemLanguage.Japanese, "日本語"), - new Data(SystemLanguage.ChineseSimplified, "简体中文"), - new Data(SystemLanguage.Korean, "한국어"), - new Data(SystemLanguage.English, "English"), - }; - - - //Data acquisition table (for runtime) - //データ取得用テーブル(実行時用) - private Dictionary table = new Dictionary(); - - - //Return data with indexer[language] (null if none) - //インデクサ[言語] でデータを返す(無いときは null) - public Data this[SystemLanguage language] { - get { - if (!initialized) - Initialize(); - if (table.ContainsKey(language)) - return table[language]; - return null; - } - } - - - //Language property (determined from the language setting of the current system) - //・Search in System language setting -> defaultLanguage (nothing = Unknown) - //言語のプロパティ(現在のシステムの言語設定から判別) - //・データに言語がないとき→デフォルト言語の順に検索(無いとき=Unknown) - public SystemLanguage Language { - get { - if (!initialized) - Initialize(); - if (table.ContainsKey(Application.systemLanguage)) - return Application.systemLanguage; - if (table.ContainsKey(defaultLanguage)) - return defaultLanguage; - - //(*) In the previous version, when the language could not find, forcibly set the language to English or Japanese, - // but the current version want to detect the state not found, so the language is 'Unkown' the specification changed to return. - //※ 以前のバージョンでは言語が見つからないとき、強制的に英語か日本語に設定していたが、 - // 現バージョンでは見つからない状態も検出したいので、Unkownを返すように仕様変更した。 - //if (table.ContainsKey(SystemLanguage.English)) - // return SystemLanguage.English; - //if (table.ContainsKey(SystemLanguage.Japanese)) - // return SystemLanguage.Japanese; - - return SystemLanguage.Unknown; - } - } - - - //Object.ToString() override - public override string ToString() - { - return Text; - } - - //Localized string property (Data.text) - //・Search in System language setting -> defaultLanguage (nothing -> "") - //文字列取得のプロパティ(Data.text を取得) - //・システム言語が見つからないとき→デフォルト言語(無いとき=""(空文字)) - public string Text { - get { - if (!initialized) - Initialize(); - if (Language != SystemLanguage.Unknown) - return table[Language].text; - return ""; - } - } - - //If the text is empty, the default value will be returned instead. - public string TextOrDefault(string def) { - string t = Text; - return string.IsNullOrEmpty(t) ? def : t; - } - - //Specify the language and get the text (not found = defaultLanguage's text or 'def') - public string TextByLanguage(SystemLanguage language, string def = "", bool notFoundIsDefaultLanguage = true) - { - { - Data data = this[language]; - if (data != null) - return data.text; - } - if (notFoundIsDefaultLanguage) - { - Data data = this[Language]; - if (data != null) - return data.text; - } - return def; - } - - - //Font size property (Data.fontSize) - //・Search in System language setting -> defaultLanguage (nothing -> 0) - //フォントサイズのプロパティ(Data.fontSize を取得) - //・見つからないとき→デフォルト言語の順に検索(無いとき=0) - public int FontSize { - get { - if (!initialized) - Initialize(); - if (Language != SystemLanguage.Unknown) - return table[Language].fontSize; - //(*) In the previous version, when the language could not find, forcibly set the font size to DEF_FONTSIZE, - // but the current version want to detect the state not found, so the font size is '0' the specification changed to return. - //※ 以前のバージョンでは言語が見つからないとき、強制的に DEF_FONTSIZE に設定していたが、 - // 現バージョンでは見つからない状態も検出したいので、0 を返すように仕様変更した。 - return 0; - } - } - - //If the font size is 0, the default value will be returned instead. - public int FontSizeOrDefault(int def) - { - int fontSize = FontSize; - return (fontSize == 0) ? def : fontSize; - } - - //Specify the language and get the font size (not found = defaultLanguage's font size or 'def') - public int FontSizeByLanguage(SystemLanguage language, int def = 0, bool notFoundIsDefaultLanguage = true) - { - { - Data data = this[language]; - if (data != null) - return data.fontSize; - } - if (notFoundIsDefaultLanguage) - { - Data data = this[Language]; - if (data != null) - return data.fontSize; - } - return def; - } - - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (list.Count == 0) - { - Debug.LogWarning("[LocalizeString] 'List' is empty."); - } - else - { - if (table.Count != list.Count) - Debug.LogError("[LocalizeString] There is duplicate 'Language'."); //「言語」が重複している - } - } - -#endregion - - //Constructors - //コンストラクタ - public LocalizeString() - { - } - - //Constructor to initialize data from list - //リストからデータを初期化するコンストラクタ - public LocalizeString(List list) - { - this.list = list; - } - - //Constructor to default language specification and initialize data from list - //デフォルト言語指定とリストからデータを初期化するコンストラクタ - public LocalizeString(SystemLanguage defaultLanguage, List list) - { - this.defaultLanguage = defaultLanguage; - this.list = list; - } - - - //Create a Dictionary from the List. - //リストから辞書を作る - public void Initialize() - { - table.Clear(); - foreach (var item in list) - table[item.language] = item; - initialized = true; //initialize done - -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - //Add to dictionary (* Duplicates are always overwritten) - //辞書に追加(※重複は常に上書きされる) - public void Add(Data newData) - { - table[newData.language] = newData; - initialized = false; //need 'Initialize()' flag - } - - //Remove from dictionary (* Ignored when not found) - //辞書から削除(※見つからないときは無視される) - public void Remove(Data delData) - { - if (table.ContainsKey(delData.language)) - { - table.Remove(delData.language); - initialized = false; //need 'Initialize()' flag - } - } - - //Remove from dictionary - //辞書から削除(言語をキーにして検索) - public void Remove(SystemLanguage language) - { - if (table.ContainsKey(language)) - { - table.Remove(language); - initialized = false; //need 'Initialize()' flag - } - } - - - //Deep copy - public LocalizeString Clone() - { - LocalizeString loc = (LocalizeString)MemberwiseClone(); - loc.initialized = false; - loc.list = new List(this.list.Count); - foreach (var item in this.list) - loc.list.Add(item.Clone()); - return loc; - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeString.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeString.cs.meta deleted file mode 100644 index 9ad571d2..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeString.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c0016089e2685554688d481d4ef6f031 -timeCreated: 1506569057 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeStringResource.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeStringResource.cs deleted file mode 100644 index db08c6fe..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeStringResource.cs +++ /dev/null @@ -1,315 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -#if UNITY_EDITOR -using UnityEditor; -#endif - -namespace FantomLib -{ - /// - /// Localize String Resource - /// - /// LocalizeString as a resource linked with ID (string type) - ///·For 'LocalizeString' object retrieval, null is returned if ID can not be found. - ///·In the 'Text' property is returned 'def' (default is empty character ("")) if language is not found, ID is not found, If ID itself is empty. - ///·If ID is duplicated or empty, it can not be acquired (Error checked at startup only on Unity editor). - ///·Inspector registration 'items' is converted to Dictionary by 'Initialize()' method and used at runtime. - /// - /// - /// LocalizeString と ID(文字列)を紐付けしたリソースとして扱う - ///・LocalizeString オブジェクト取得では、ID が見つからない場合 null が返る。 - ///・Text プロパティでは、言語が見つからない、ID が見つからない、ID 自体が空 の場合、def(デフォルトでは空文字(""))が返る。 - ///・ID が重複、または空の場合は取得できない(Unity エディタ上のときのみ、起動時にエラーチェックされる)。 - ///・インスペクタ登録用リスト(items)は Initialize() メソッドで Dictionary へ変換して、実行時に使われる。 - /// - public class LocalizeStringResource : MonoBehaviour - { - //Inspector settings - [SerializeField] private LocalizeString[] items; //It is used from 'Dictionary' at runtime (need 'Initialize()'). - -#region Properties and Local values Section - - private bool initialized = false; //initialize done flag (false = need 'Initialize()') - - //Table for acquiring 'LocalizeString' from ID (for runtime) - //ID から LocalizeString を取得するテーブル(実行時用) - private Dictionary table = new Dictionary(); - - //Return LocalizeString with indexer [ID] (null if none) - //インデクサ [ID] で LocalizeString を返す(無いときは null) - public LocalizeString this[string id] { - get { - if (!initialized) - Initialize(); - if (table.ContainsKey(id)) - return table[id]; - return null; - } - } - - //Returns the localized character string linked with the ID (it will be 'def' if ID or language is not found) - //ID に紐付けされた、ローカライズ文字列を返す(IDや言語が見つからないときは def になる) - public string Text(string id, string def = "") { - if (string.IsNullOrEmpty(id)) - return def; - - LocalizeString loc = this[id]; - if (loc != null) - return loc.TextOrDefault(def); - return def; - } - - //Specify the language and returns the localized character string linked with the ID (it will be 'def' if ID or language is not found) - //言語を指定して、ID に紐付けされたローカライズ文字列を返す(IDや言語が見つからないときは def になる) - public string Text(string id, SystemLanguage language, string def = "", bool notFoundIsDefaultLanguage = true) { - if (string.IsNullOrEmpty(id)) - return def; - - LocalizeString loc = this[id]; - if (loc != null) - return loc.TextByLanguage(language, def, notFoundIsDefaultLanguage); //If not found, it becomes 'def'. - return def; - } - - //Returns an array of localized strings linked with the ID (it will be empty("") if ID or language is not found) - //ID に紐付けされた、ローカライズ文字列の配列を返す(IDや言語が見つからないときは空文字("")になる) - public string[] Texts(string[] id, string[] def = null) { - string[] texts = new string[id.Length]; - for (int i = 0; i < id.Length; i++) - { - string t = (def != null && i < def.Length) ? def[i] : ""; - texts[i] = Text(id[i], t); - } - return texts; - } - - //Specify the language and returns an array of localized strings linked with the ID (it will be empty("") if ID or language is not found) - //言語を指定して、ID に紐付けされたローカライズ文字列の配列を返す(IDや言語が見つからないときは空文字("")になる) - public string[] Texts(string[] id, SystemLanguage language, string[] def = null, bool notFoundIsDefaultLanguage = true) { - string[] texts = new string[id.Length]; - for (int i = 0; i < id.Length; i++) - { - string t = (def != null && i < def.Length) ? def[i] : ""; - texts[i] = Text(id[i], language, t, notFoundIsDefaultLanguage); - } - return texts; - } - - - //Returns the localized string's font size linked with the ID (it will be 'def' if ID or language is not found) - //ID に紐付けされた、ローカライズ文字列のフォントサイズを返す(IDや言語が見つからないときは def になる) - public int FontSize(string id, int def = 0) { - if (string.IsNullOrEmpty(id)) - return def; - - LocalizeString loc = this[id]; - if (loc != null) - return loc.FontSizeOrDefault(def); - return def; - } - - //Specify the language and returns the localized string's font size linked with the ID (it will be 'def' if ID or language is not found) - //言語を指定して、ID に紐付けされたローカライズ文字列のフォントサイズを返す(IDや言語が見つからないときは def になる) - public int FontSize(string id, SystemLanguage language, int def = 0, bool notFoundIsDefaultLanguage = true) { - if (string.IsNullOrEmpty(id)) - return def; - - LocalizeString loc = this[id]; - if (loc != null) - return loc.FontSizeByLanguage(language, def, notFoundIsDefaultLanguage); - return def; - } - - //Returns an array of localized string's font sizes linked with the ID (it will be 0 if ID or language is not found) - //ID に紐付けされた、ローカライズ文字列のフォントサイズの配列を返す(IDや言語が見つからないときは 0 になる) - public int[] FontSizes(string[] id, int[] def = null) { - int[] sizes = new int[id.Length]; - for (int i = 0; i < id.Length; i++) - { - int t = (def != null && i < def.Length) ? def[i] : 0; - sizes[i] = FontSize(id[i], t); - } - return sizes; - } - - //Specify the language and returns an array of localized string's font sizes linked with the ID (it will be 0 if ID or language is not found) - //言語を指定して、ID に紐付けされたローカライズ文字列のフォントサイズの配列を返す(IDや言語が見つからないときは 0になる) - public int[] FontSizes(string[] id, SystemLanguage language, int[] def = null, bool notFoundIsDefaultLanguage = true) { - int[] sizes = new int[id.Length]; - for (int i = 0; i < id.Length; i++) - { - int t = (def != null && i < def.Length) ? def[i] : 0; - sizes[i] = FontSize(id[i], language, t, notFoundIsDefaultLanguage); - } - return sizes; - } - - - - //Create a Dictionary from the List. - //リストから辞書を作る - public void Initialize() - { - table.Clear(); - foreach (var item in items) - { - if (!string.IsNullOrEmpty(item.id)) - table[item.id] = item; - } - initialized = true; //initialize done - -#if UNITY_EDITOR - CheckForErrors(); //Check for items (Editor only). -#endif - } - - //Check empty or duplication from item elements. - private void CheckForErrors() - { - if (items == null || items.Length == 0) - { - Debug.LogWarning("[" + gameObject.name + "] 'Items' is empty."); - } - else - { - if (table.Count != items.Length) - Debug.LogError("[" + gameObject.name + "] There is empty or duplicate 'ID'."); //IDが空、または重複IDがある - } - } - -#endregion - - // Use this for initialization - private void Awake() - { - if (!initialized) - Initialize(); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - -#region Editor tool Section - -#if UNITY_EDITOR - - //Busy flag - public bool EditExecuting { - get; private set; - } - - //Whether the index is within range. - public bool IsValidIndex(int index) - { - return (items != null && 0 <= index && index < items.Length); - } - - //Data at the specified index position is copied & inserted. - public bool InsetItem(int index) - { - if (!IsValidIndex(index)) - return false; - - EditExecuting = true; - ArrayUtility.Insert(ref items, index, items[index].Clone()); - EditExecuting = false; - return true; - } - - //Data at the specified index position is deleted. - public bool RemoveItem(int index) - { - if (!IsValidIndex(index)) - return false; - - EditExecuting = true; - ArrayUtility.RemoveAt(ref items, index); - EditExecuting = false; - return true; - } - - //It is a simple sequential search (returns the first one index). - public int FindIndex(string id, bool startswith = false) - { - if (items == null) - return -1; - - for (int i = 0; i < items.Length; i++) - { - if (startswith) - { - if (items[i].id.StartsWith(id)) - return i; - } - else - { - if (items[i].id == id) - return i; - } - } - return -1; //Not found - } - - //ID errors status - public class IDValidStatus - { - public List emptyIndex = new List(); - public HashSet duplicateID = new HashSet(); - public HashSet uniqID = new HashSet(); - - public void ResetStatus() - { - emptyIndex.Clear(); - duplicateID.Clear(); - uniqID.Clear(); - } - - public string GetEmptyError() - { - return (emptyIndex.Count > 0) ? - emptyIndex.Select(e => e.ToString()).Aggregate((s, e) => s + ", " + e) : ""; - } - - public string GetDuplicateError() - { - return (duplicateID.Count > 0) ? - string.Join(", ", duplicateID.ToArray()) : ""; - } - } - - //Check the validity of the ID - public void CheckIDValidity(ref IDValidStatus idValidStatus) - { - idValidStatus.ResetStatus(); - - if (items == null || items.Length == 0) - return; - - for (int i = 0; i < items.Length; i++) - { - string id = items[i].id; - if (!string.IsNullOrEmpty(id)) - { - if (idValidStatus.uniqID.Contains(id)) - idValidStatus.duplicateID.Add(id); - else - idValidStatus.uniqID.Add(id); - } - else - idValidStatus.emptyIndex.Add(i); - } - } - -#endif - -#endregion - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeStringResource.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeStringResource.cs.meta deleted file mode 100644 index e8a69208..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/LocalizeStringResource.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: acf18b9b5c452e74689b2f9e1b4ee78b -timeCreated: 1522508499 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Param.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Param.cs deleted file mode 100644 index ee134b54..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Param.cs +++ /dev/null @@ -1,178 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; - -namespace FantomLib -{ - /// - /// 'Param' class is basically the same as Dictionary prepared for easy handling of value type conversion and default value. - ///・All keys and values are stored in string type. - ///・"Parse()", "ParseToDictionary()" is method to convert text format like "key1=value1" to dictionary. - /// - /// Dictionary の値取得などを少し楽に使うクラス - ///・キーと値は全て string 型で保持されている。取得時に型変換とデフォルト値を指定できる。 - ///・"key1=value1" のようなテキスト形式を変換(Parse(), ParseToDictionary())して簡単に扱うために作ったラッパー的なクラス。 - /// - public class Param : Dictionary - { - - //==================================================================== - //Constructors - - public Param() : base() { } - - public Param(Dictionary dic) : base(dic) { } - - - //==================================================================== - //Get/Set a value - - public string GetString(string key, string def = "") - { - return ContainsKey(key) ? this[key] : def; - } - - public int GetInt(string key, int def = 0) - { - try { - return ContainsKey(key) ? int.Parse(this[key]) : def; - } - catch { - return def; - } - } - - public float GetFloat(string key, float def = 0) - { - try { - return ContainsKey(key) ? float.Parse(this[key]) : def; - } - catch { - return def; - } - } - - public bool GetBool(string key, bool def = false) - { - try { - return ContainsKey(key) ? bool.Parse(this[key]) : def; - } - catch { - return def; - } - } - - public void Set(string key, object value) - { - this[key] = value.ToString(); - } - - - //==================================================================== - //etc. - - public override string ToString() - { - if (Count > 0) - return this.Select(e => e.Key + " => " + e.Value).Aggregate((s, a) => s + ", " + a).ToString(); - return ""; - } - - - //==================================================================== - //static methods - - /// - /// Parsing text and generating a Dictionary - ///・string: "key1=value1\nkey2=value2\nkey3=value3" -> Dictionary: dic[key1] = value1, dic[key2] = value2, dic[key3] = value3 - ///・Note that it does not check for invalid text. - ///・Note that duplicate keys result in an error (returns null). - ///・The generated Dictionary has both key and value as string type. - /// - /// テキストをパースして辞書を生成する - ///・文字列:"key1=value1\nkey2=value2\nkey3=value3" などキーと値のペアになっているテキストを区切り文字で分割して辞書を作る。 - ///・不正なテキストはチェックしてないので注意(※キーが重複してるとエラー(戻値が null)となるので注意)。 - ///・生成された辞書はキーと値共に文字列型となる。 - /// - /// Text to parse - /// Delimiter for each item - /// Delimiter for Key and value - /// Dictionary created with key and value (failure or empty -> null) - public static Dictionary ParseToDictionary(string text, char itemSeparator = '\n', char pairSeparator = '=') - { - if (string.IsNullOrEmpty(text)) - return null; - - try { - return text.Split(new char[] { itemSeparator }, StringSplitOptions.RemoveEmptyEntries) - .Select(e => e.Split(new char[] { pairSeparator }, 2)) - .ToDictionary(a => a[0], a => a[1]); //(*) Note that duplicate keys result in an error. - } - catch { - return null; - } - } - - - /// - /// Parsing text and generating a Param - ///・string: "key1=value1\nkey2=value2\nkey3=value3" -> Dictionary: dic[key1] = value1, dic[key2] = value2, dic[key3] = value3 - ///・Note that we do not check for invalid text - ///・Note that duplicate keys result in an error. - ///・The generated Dictionary has both key and value as string type. - /// - /// テキストをパースして Param(辞書)を生成する - ///・文字列:"key1=value1\nkey2=value2\nkey3=value3" などキーと値のペアになっているテキストを区切り文字で分割して辞書を作る。 - ///・不正なテキストはチェックしてないので注意。 - ///・生成された辞書はキーと値共に文字列型となる。 - /// - /// Text to parse - /// Delimiter for each item - /// Delimiter for Key and value - /// Param created with key and value (failure or empty -> null) - public static Param Parse(string text, char itemSeparator = '\n', char pairSeparator = '=') - { - Dictionary dic = ParseToDictionary(text, itemSeparator, pairSeparator); - return (dic != null) ? new Param(dic) : null; - } - - - /// - /// Convert it to JSON format (string type) as a Dictionary and save it in PlayerPrefs - ///(*) Param class is basically the same as a dictionary, and it is the same as XPlayerPrefs.SetDictionary(), because content classes (which inherit Dictionary) are handled easily. - ///・In JSON, it is stored as a key array and value array (= XPlayerPrefs.TryGetArrayPair() can also be obtained as an array of pairs). - /// - /// 辞書として JSON 形式(文字列型)に変換して PlayerPrefs に保存する - ///※Param は基本的に辞書と同じでパラメタを簡単に扱うクラス(Dictionary を継承している)ため、内容的には XPlayerPrefs.SetDictionary() と同じ。 - ///・JSON ではキー配列と値配列として保存される(=TryGetArrayPair()でペアの配列としても取得できる)。 - /// - /// Save key - /// Save value (Param) - public static void SetPlayerPrefs(string key, Param param) - { - XPlayerPrefs.SetDictionary(key, param); - } - - - /// - /// Generate and return elements saved in JSON format (string type) in PlayerPrefs as Param class. - ///(*) Param class is basically the same as a dictionary, and it is the same as XPlayerPrefs.GetDictionary(), because content classes (which inherit Dictionary) are handled easily. - ///・In JSON, the dictionary is also saved as a key array and a value array, so XPlayerPrefs.SetArrayPair() saved pair array can also be acquired as a dictionary. - /// - /// PlayerPrefs に JSON 形式(文字列型)で保存された要素を辞書として生成して返す - ///※Param は基本的に辞書と同じでパラメタを簡単に扱うクラス(Dictionary を継承している)ため、内容的には XPlayerPrefs.GetDictionary() と同じ。 - ///・JSON では辞書もキー配列と値配列として保存されるため、XPlayerPrefs.SetArrayPair() 保存したペア配列も辞書として取得できる。 - /// - /// Save key - /// Defalut value - /// Saved value (Param: newly created) - public static Param GetPlayerPrefs(string key, Param def = null) - { - Dictionary dic = XPlayerPrefs.GetDictionary(key); - return (dic != null) ? new Param(dic) : def; - } - - } - -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Param.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Param.cs.meta deleted file mode 100644 index aefea032..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/Param.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 5efd1eea578742a4686e12d8a39cfb1c -timeCreated: 1511863967 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SceneLoadWithKey.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SceneLoadWithKey.cs deleted file mode 100644 index 3995fada..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SceneLoadWithKey.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System.Collections; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.SceneManagement; - -namespace FantomLib -{ - /// - /// Load Scene with key input - /// - /// キー入力でシーンをロードする - /// - public class SceneLoadWithKey : MonoBehaviour - { - //Inspector Settings - public int sceneBuildIndex = 0; //Index of 'Scenes in Build' //シーンインデクスで指定用 - public bool useName = false; //true = use "sceneName" / false = use "sceneBuildIndex" //シーン名で指定フラグ(true=シーン名を使う/false=インデクスを使う) - public string sceneName = ""; //Scene Name //シーン名で指定用 - public bool isAdditive = false; //Additional Load //追加ロード - - public bool enableKey = true; //enable key operation //キーを有効にする - public KeyCode loadKey = KeyCode.PageUp; //Key code to load scene //ロードするキー - public float loadDelay = 0.0f; //Load execution delay (Reasonable until 3.0 seconds) //ロード開始ディレイ(3.0秒くらいまでが妥当) - - //Callbacks - public UnityEvent OnKeyPressed; //Callback when press load key //ロードキーを押したときのコールバック - public UnityEvent OnBeforeDelay; //Callback when just before waiting //待機前に呼び出されるコールバック - public UnityEvent OnBeforeLoad; //Callback when just before load //ロード前に呼び出されるコールバック - - - //Local Values - protected bool done = false; //Key input done (For double prevention) //キー入力実行済み(2重防止用) - - - - // Use this for initialization - protected void Start() - { - - } - - - // Update is called once per frame - protected void Update() - { - if (enableKey && !done) - { - if (Input.GetKeyDown(loadKey)) - { - done = true; - - if (OnKeyPressed != null) - OnKeyPressed.Invoke(); - - OnSceneLoad(); - } - } - } - - - protected Coroutine coroutine = null; //For double prevention //2重防止 - - //For calling from outside (Load is made unique) - //外部から呼び出し用(ロードはユニークにする) - public void OnSceneLoad() - { - if (coroutine == null) - coroutine = StartCoroutine(WaitAndLoad(loadDelay > 0 ? loadDelay : 0)); - } - - - //Wait for the specified time and then load the scene (For calling "OnSceneLoad()") - //指定時間待機してからシーンを読み込む(※OnSceneLoad() から呼び出し用) - protected virtual IEnumerator WaitAndLoad(float sec) - { - if (OnBeforeDelay != null) - OnBeforeDelay.Invoke(); - - yield return new WaitForSeconds(sec); - - if (OnBeforeLoad != null) - OnBeforeLoad.Invoke(); - - if (useName) - { - if (!string.IsNullOrEmpty(sceneName)) - { - SceneManager.LoadScene(sceneName, isAdditive ? LoadSceneMode.Additive : LoadSceneMode.Single); - } - else //sceneName is empty //シーン名=空文字 - { -#if UNITY_EDITOR - Debug.LogWarning("sceneName is empty."); -#endif - done = false; //reset state //元に戻す - coroutine = null; - yield break; - } - } - else - { - SceneManager.LoadScene(sceneBuildIndex, isAdditive ? LoadSceneMode.Additive : LoadSceneMode.Single); - } - - //For additional loading, reset it. - //追加の場合は元に戻す - if (isAdditive) - { - done = false; - coroutine = null; - } - else - { - done = true; //Just in case //念のため - } - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SceneLoadWithKey.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SceneLoadWithKey.cs.meta deleted file mode 100644 index d8a15634..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SceneLoadWithKey.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c36d3bf416ef9214eb576c8d30d4edb6 -timeCreated: 1506827695 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SingletonBehaviour.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SingletonBehaviour.cs deleted file mode 100644 index 907ea8b4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SingletonBehaviour.cs +++ /dev/null @@ -1,54 +0,0 @@ -using UnityEngine; - -namespace FantomLib -{ - /// - /// Use like Singleton MonoBehaviour - ///·Base class for creating subclass - /// - /// シングルトンで利用する MonoBehaviour - ///・サブクラスを作る ベースクラス - /// - /// Type of subclass - public abstract class SingletonBehaviour : MonoBehaviour - where T : Component - { - - public bool dontDestroyOnLoad = false; //Do not destroy on scene transitions //シーン遷移で破棄しない - - - //Singleton instance //シングルトン用インスタンス - protected static T instance; - - public static T Instance { - get { - if (instance == null) - { - GameObject go = new GameObject(typeof(T).Name); - instance = go.AddComponent(); - if (instance.GetComponent>().dontDestroyOnLoad) - DontDestroyOnLoad(go); - } - return instance; - } - } - - // Use this for initialization - protected void Awake() - { - if (instance == null) - { - instance = this as T; - - if (dontDestroyOnLoad) - DontDestroyOnLoad(gameObject); - } - else - { - if (instance != this) - Destroy(gameObject); //Delete when double startup //2重起動のときは削除する - } - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SingletonBehaviour.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SingletonBehaviour.cs.meta deleted file mode 100644 index 557269db..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/SingletonBehaviour.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: af39a6487827e2644a072d4ad1dab1fc -timeCreated: 1485494647 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XDebug.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XDebug.cs deleted file mode 100644 index b5ccb1f3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XDebug.cs +++ /dev/null @@ -1,438 +0,0 @@ -using System; -using System.Collections; -using System.Text; -using UnityEngine; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Debugging log for runtime system (singleton) - /// - /// 実行環境用デバッグコンソール(シングルトン) - /// - public class XDebug : SingletonBehaviour - { -#region Inspector settings Section - - //Inspector Settings - public bool hideOnAwake = false; //Excute 'Hide()' with 'Awake()' //Awake() で Hide() を実行する - public bool clearOnDestory = true; //Execute 'Clear()' with 'OnDestory()'. //OnDestory() でクリアを実行する - - public int lines = 0; //Limit number of lines (Queue) for text buffer (0: no limit) //テキストのバッファ(キュー)の制限行数(0 で無し) - private static Queue lineQueue; //Text buffer (each line) //テキストのバッファ(改行ごと) - private static StringBuilder sb; //For join //テキストのバッファ結合用 - - public Text outputText; //Log output UI-Text //ログ出力する UI-Text - public Scrollbar scrollbar; //Log output UI-Scrollbar //コンソールの UI-Scrollbar(自動スクロール用) - public CanvasGroup canvasGroup; //Show / hide with alpha //アルファで表示/非表示を切り替える - -#endregion Inspector settings Section - -#region Unity life cycle Section - - // Use this for initialization - protected new void Awake() - { - base.Awake(); - - if (hideOnAwake) - Hide(); - - if (lines > 0 && lineQueue == null) - { - lineQueue = new Queue(lines); - sb = new StringBuilder(128 * lines); - } - } - - protected void OnDestroy() - { - StopAllCoroutines(); - - if (clearOnDestory) - Clear(0); - } - - protected void Start() - { - } - - // Update is called once per frame - //protected void Update() - //{ - //} - -#endregion Unity life cycle Section - -#region Internal processing method Section - - //Make the scroll bar last (always display the last text) - //(*) Note that it will not be affected unless it is called after 1 frame. - // (If long length of strings delay it for a few frames will go well) - // - //スクロールバーを最後にする(最後のテキストを常に表示させる) - //※1フレーム後に呼び出さないと反映されないので注意 - // (文字数が多いときは WaitFrames() で数フレーム遅延させると上手く行く) - public void ScrollLast() - { - if (scrollbar != null) - scrollbar.value = 0; - } - - //Wait n frames for action - //nフレーム待ってから実行 - private IEnumerator WaitFrames(Action action, int count) - { - count = Math.Max(0, count); - while (--count >= 0) - yield return null; - - action(); - } - - //Wait n seconds for action - //n秒待ってから実行 - private IEnumerator WaitSeconds(Action action, float sec) - { - yield return new WaitForSeconds(sec); - action(); - } - - - //Display log - //以下ログ出力 - const int DEF_WAIT_FRAMES = 3; //Automatic scrolling goes well if it is a few frames. //デフォルトの待ちフレーム数 - - //Display text (Join each line when limit number of lines) - //テキストの出力(行数制限がある場合は文字列バッファを結合する) - private static void OutputText(object mes, bool newline = true) - { - if (Instance.outputText) - { - if (Instance.lines > 0 && lineQueue != null) - { - lineQueue.Enqueue(mes + (newline ? "\n" : "")); - while (lineQueue.Count > Instance.lines) - lineQueue.Dequeue(); - - sb.Length = 0; - foreach (var item in lineQueue) - sb.Append(item); - - Instance.outputText.text = sb.ToString(); - } - else - { - Instance.outputText.text += mes + (newline ? "\n" : ""); - } - } - } - - //Wait n frames and display log - //nフレーム遅延でのテキスト出力 - private static void OutputTextDelayedFrames(object mes, int delayedFrames = DEF_WAIT_FRAMES, bool newline = true) - { - if (Instance.outputText) - { - OutputText(mes, newline); - Instance.StartCoroutine(Instance.WaitFrames(() => Instance.ScrollLast(), delayedFrames)); - } - } - - //Wait n seconds and display log - //n秒数遅延でのテキスト出力 - private static void OutputTextDelayedSeconds(object mes, float delayedSeconds, bool newline = true) - { - if (Instance.outputText) - { - OutputText(mes, newline); - Instance.StartCoroutine(Instance.WaitSeconds(() => Instance.ScrollLast(), delayedSeconds)); - } - } - -#endregion - -#region Static method for Code Section - - //Log - public static void Log(object mes, bool newline) - { - Log(mes, DEF_WAIT_FRAMES, newline); - } - - public static void Log(object mes, int delayedFrames = DEF_WAIT_FRAMES, bool newline = true) - { - if (HasICollection(mes)) - { - string str = Join((ICollection)mes); - Debug.Log(str); - OutputTextDelayedFrames(str, delayedFrames, newline); - } - else - { - Debug.Log(mes); - OutputTextDelayedFrames(mes, delayedFrames, newline); - } - } - - public static void Log(object mes, float delayedSeconds, bool newline = true) - { - if (HasICollection(mes)) - { - string str = Join((ICollection)mes); - Debug.Log(str); - OutputTextDelayedSeconds(str, delayedSeconds, newline); - } - else - { - Debug.Log(mes); - OutputTextDelayedSeconds(mes, delayedSeconds, newline); - } - } - - public static void LogFormat(string format, params object[] args) - { - Log(string.Format(format, args)); - } - - - - //LogWarging - const string WarningPrefix = "Warning: "; - - public static void LogWarning(object mes, bool newline) - { - LogWarning(mes, DEF_WAIT_FRAMES, newline); - } - - public static void LogWarning(object mes, int delayedFrames = DEF_WAIT_FRAMES, bool newline = true) - { - if (HasICollection(mes)) - { - string str = Join((ICollection)mes); - Debug.LogWarning(str); - OutputTextDelayedFrames(WarningPrefix + str, delayedFrames, newline); - } - else - { - Debug.LogWarning(mes); - OutputTextDelayedFrames(WarningPrefix + mes, delayedFrames, newline); - } - } - - public static void LogWarning(object mes, float delayedSeconds, bool newline = true) - { - if (HasICollection(mes)) - { - string str = Join((ICollection)mes); - Debug.LogWarning(str); - OutputTextDelayedSeconds(WarningPrefix + str, delayedSeconds, newline); - } - else - { - Debug.LogWarning(mes); - OutputTextDelayedSeconds(WarningPrefix + mes, delayedSeconds, newline); - } - } - - public static void LogWarningFormat(string format, params object[] args) - { - LogWarning(string.Format(format, args)); - } - - - - //LogError - const string ErrorPrefix = "Error: "; - - public static void LogError(object mes, bool newline) - { - LogError(mes, DEF_WAIT_FRAMES, newline); - } - - public static void LogError(object mes, int delayedFrames = DEF_WAIT_FRAMES, bool newline = true) - { - if (HasICollection(mes)) - { - string str = Join((ICollection)mes); - Debug.LogError(str); - OutputTextDelayedFrames(ErrorPrefix + str, delayedFrames, newline); - } - else - { - Debug.LogError(mes); - OutputTextDelayedFrames(ErrorPrefix + mes, delayedFrames, newline); - } - } - - public static void LogError(object mes, float delayedSeconds, bool newline = true) - { - if (HasICollection(mes)) - { - string str = Join((ICollection)mes); - Debug.LogError(str); - OutputTextDelayedSeconds(ErrorPrefix + str, delayedSeconds, newline); - } - else - { - Debug.LogError(mes); - OutputTextDelayedSeconds(ErrorPrefix + mes, delayedSeconds, newline); - } - } - - public static void LogErrorFormat(string format, params object[] args) - { - LogError(string.Format(format, args)); - } - - - - //Clear - public static void Clear() - { - Clear(DEF_WAIT_FRAMES); - } - - public static void Clear(int delayedFrames) - { - if (Instance.outputText) - { - if (lineQueue != null) - { - lineQueue.Clear(); - sb.Length = 0; - } - - Instance.outputText.text = ""; - if (delayedFrames > 0) - Instance.StartCoroutine(Instance.WaitFrames(() => Instance.ScrollLast(), delayedFrames)); - else - Instance.ScrollLast(); - } - } - - public static void Clear(float delayedSeconds) - { - if (Instance.outputText) - { - if (lineQueue != null) - { - lineQueue.Clear(); - sb.Length = 0; - } - - Instance.outputText.text = ""; - if (delayedSeconds > 0) - Instance.StartCoroutine(Instance.WaitSeconds(() => Instance.ScrollLast(), delayedSeconds)); - else - Instance.ScrollLast(); - } - } - -#endregion - -#region Instance method for editor (eg Inspector registration) - - //Display from the callback etc. in the inspector. - //(*) Note that registering the enum / struct type in UnityEvent in the inspector will be null. (It does not become '', but it seems to be an error at runtime). - // - //インスペクタでコールバックから表示するなど - //※インスペクタで UnityEvent に enum / struct 型を登録すると null になるので注意(''にはならないが、ランタム時にエラーになるようだ)。 - - public void _Log(object message) - { - Log(message); - } - - public void _Clear() - { - Clear(); - } - - public void _Show() - { - Show(); - } - - public void _Hide() - { - Hide(); - } - -#endregion - -#region Other method Section - - public void SetVisible(bool visible) - { - if (canvasGroup != null) - { - canvasGroup.alpha = visible ? 1 : 0; - canvasGroup.interactable = visible; - } - } - - public void ToggleVisible() - { - if (canvasGroup != null) - { - canvasGroup.alpha = (canvasGroup.alpha == 0) ? 1 : 0; - canvasGroup.interactable = (canvasGroup.alpha > 0); - } - } - - public static void Show() - { - Instance.SetVisible(true); - } - - public static void Hide() - { - Instance.SetVisible(false); - } - -#endregion - -#region Other static method Section - - static bool HasICollection(object obj) - { - if (obj != null) - return obj.GetType().GetInterface("System.Collections.ICollection") != null; - return false; - } - - static StringBuilder sbJoin = new StringBuilder(512); - - static string Join(ICollection collection, string separator = ", ", string brackets = "[]") - { - sbJoin.Length = 0; - - foreach (var item in collection) - { - if (sbJoin.Length > 0) - sbJoin.Append(separator); - sbJoin.Append(item.ToString()); - } - - if (!string.IsNullOrEmpty(brackets)) - { - if (brackets.Length >= 2) - { - sbJoin.Append(brackets[1]); //footer - sbJoin.Insert(0, brackets[0]); //header - } - else //Length == 1 - { - sbJoin.Append(brackets); //footer - sbJoin.Insert(0, brackets); //header - } - } - - return sbJoin.ToString(); - } - -#endregion - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XDebug.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XDebug.cs.meta deleted file mode 100644 index 11a3d0f9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XDebug.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 89194e8ae3e260f4385eab455414e6ac -timeCreated: 1516344918 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: -100 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XPlayerPrefs.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XPlayerPrefs.cs deleted file mode 100644 index d9e212c0..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XPlayerPrefs.cs +++ /dev/null @@ -1,439 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Extend the save type of PlayerPrefs - ///・Save object (class, struct), Array, List or Dictionary -> JSON format - ///・bool -> 1 or 0 (int) - ///・long, double -> string type - /// - /// PlayerPrefs の保存タイプを拡張する - ///・オブジェクト(クラス・構造体)、配列、リスト、辞書を保存。 - ///・bool 値を 1 or 0(int) で保存。 - ///・long, double 値を string で保存を追加。 - /// - public static class XPlayerPrefs - { - /// - /// Save bool - ///・bool -> int (1 or 0) - /// - /// bool 値を保存する - ///・int(1 or 0)で保存する - /// - /// Save key - /// Save value - public static void SetBool(string key, bool flg) - { - PlayerPrefs.SetInt(key, flg ? 1 : 0); - } - - - /// - /// Load bool - ///・int (1 or 0) -> bool - /// - /// bool 値を読み込む - ///・int(1 or 0) で保存した値を読み出し、bool 値に変換して返す - /// - /// Save key - /// Default value - /// Saved value - public static bool GetBool(string key, bool def = false) - { - return PlayerPrefs.GetInt(key, def ? 1 : 0) != 0; - } - - - - /// - /// Save long - ///・long -> string - /// - /// long 値を保存する - ///・string で保存する - /// - /// Save key - /// Save value - public static void SetLong(string key, long value) - { - PlayerPrefs.SetString(key, value.ToString()); - } - - - /// - /// Load long - ///・string -> long - /// - /// long 値を読み込む - ///・string で保存した値を読み出し、long 値に変換して返す - /// - /// Save key - /// Default value - /// Saved value - public static long GetLong(string key, long def = 0) - { - string s = PlayerPrefs.GetString(key, ""); - try { - return string.IsNullOrEmpty(s) ? def : long.Parse(s); - } - catch { - return def; - } - } - - - /// - /// Save double - ///・double -> string - /// - /// double 値を保存する - ///・string で保存する - /// - /// Save key - /// Save value - public static void SetDouble(string key, double value) - { - PlayerPrefs.SetString(key, value.ToString()); - } - - - /// - /// Load double - ///・string -> double - /// - /// double 値を読み込む - ///・string で保存した値を読み出し、double 値に変換して返す - /// - /// Save key - /// Default value - /// Saved value - public static double GetDouble(string key, double def = 0) - { - string s = PlayerPrefs.GetString(key, ""); - try { - return string.IsNullOrEmpty(s) ? def : double.Parse(s); - } - catch { - return def; - } - } - - - - /// - /// Save object (to JSON) - /// - /// オブジェクトを JSON 形式(文字列型)に変換して保存する - /// - /// Type of object - /// Save key - /// Save value - public static void SetObject(string key, T obj) - { - PlayerPrefs.SetString(key, JsonUtility.ToJson(obj)); - } - - - /// - /// Load object (from JSON) - /// - /// JSON 形式(文字列型)で保存されたデータをオブジェクトとして生成して返す - /// - /// Type of object - /// Save key - /// Default value - /// Saved value (newly create instance) - public static T GetObject(string key, T def = default(T)) - { - string json = PlayerPrefs.GetString(key); - return !string.IsNullOrEmpty(json) ? JsonUtility.FromJson(json) : def; - } - - - /// - /// Load object to be overwritten (from JSON) - /// - /// JSON 形式(文字列型)で保存されたデータをオブジェクトに上書きする - /// - /// Type of object - /// Save key - /// Saved value (to be overwritten) - public static void GetObjectOverwrite(string key, ref T obj) - { - string json = PlayerPrefs.GetString(key); - if (!string.IsNullOrEmpty(json)) - JsonUtility.FromJsonOverwrite(json, obj); - } - - - - /// - /// Save Array (to JSON) - /// - /// 静的配列を JSON 形式(文字列型)に変換して保存する - /// - /// Type of element - /// Save key - /// Save value - public static void SetArray(string key, T[] arr) - { - SetObject(key, new ArrayWrap(arr)); - } - - - /// - /// Load Array (from JSON) - /// - /// JSON 形式(文字列型)で保存された要素を配列として生成して返す - /// - /// Type of element - /// Save key - /// Default value - /// Saved value (newly create instance) - public static T[] GetArray(string key, T[] def = null) - { - ArrayWrap obj = GetObject>(key); - return obj != null ? obj.ToArray() : def; - } - - - - /// - /// Save List (to JSON) - /// - /// リストを JSON 形式(文字列型)に変換して保存する - /// - /// Type of element - /// Save key - /// Save value - public static void SetList(string key, List list) - { - SetObject(key, new ListWrap(list)); - } - - - /// - /// Load List (from JSON) - /// - /// JSON 形式(文字列型)で保存された要素をリストとして生成して返す - /// - /// Type of element - /// Save key - /// Default value - /// Saved value (newly create instance) - public static List GetList(string key, List def = null) - { - ListWrap obj = GetObject>(key); - return obj != null ? obj.ToList() : def; - } - - - - /// - /// Save Dictionary (to JSON) - ///・Array of keys, Array of values pair -> JSON - ///·In JSON, it is stored as a key array and value array (= TryGetArrayPair() can also be obtained as an array of pairs). - /// - /// 辞書を JSON 形式(文字列型)に変換して保存する - ///・JSON ではキー配列と値配列として保存される(=TryGetArrayPair()でペアの配列としても取得できる)。 - /// - /// Type of keys - /// Type of values - /// Save key - /// Save value - public static void SetDictionary(string key, Dictionary dic) - { - SetObject(key, new DictionaryWrap(dic)); - } - - - /// - /// Load Dictionary (from JSON) - ///・JSON -> Array of keys, Array of values pair -> Dictionary - ///・In JSON, the dictionary is also saved as a key array and value array, so you can also get a dictionary saved with SetDictionary(). - /// - /// JSON 形式(文字列型)で保存された要素を辞書として生成して返す - ///・JSON では辞書もキー配列と値配列として保存されるため、SetArrayPair() 保存したペア配列も辞書として取得できる。 - /// - /// Type of keys - /// Type of values - /// Save key - /// Default value - /// Saved value (newly create instance) - public static Dictionary GetDictionary(string key, Dictionary def = null) - { - DictionaryWrap obj = GetObject>(key); - return obj != null ? obj.ToDictionary() : def; - } - - - /// - /// Save Array of keys, Array of values pair (to JSON) - ///·In JSON, it is saved as key array and value array (= GetDictionary() can also be obtained as a dictionary). - /// - /// キーと値のペア配列を保存する - ///・JSON ではキー配列と値配列として保存される(=GetDictionary()で辞書としても取得できる)。 - /// - /// Type of keys - /// Type of values< - /// Save key - /// Array of keys - /// Array of values - public static void SetArrayPair(string key, K[] keys, V[] values) - { - SetObject(key, new DictionaryWrap(keys, values)); - } - - - /// - /// Load Array of keys, Array of values pair (from JSON) - ///・In JSON, the dictionary is also saved as a key array and value array, so you can also get a dictionary saved with SetDictionary(). - /// - /// キーと値のペア配列を取得する - ///・JSON では辞書もキー配列と値配列として保存されるため、SetDictionary() で保存した辞書も取得できる。 - /// - /// Type of keys - /// Type of values - /// - /// Saved Array of keys - /// Saved Array of values - /// get it -> true - public static bool TryGetArrayPair(string key, out K[] keys, out V[] values) - { - DictionaryWrap obj = GetObject>(key); - if (obj == null) - { - keys = null; - values = null; - return false; - } - else - { - keys = obj.Keys; - values = obj.Values; - return true; - } - } - - - - - //==================================================================== - // A wrapping class that allows JSON to handle type by making type a member of class - //・It is basically for work, and it is assumed to abandon after use (conversion -> returns copy). - //(*) It does not allow to null (empty element is acceptable) - // - //型をクラスのメンバにすることにより JSON で扱えるようにするラップクラス - //・基本的に作業用で、使用後(変換→複製後)は放棄することを前提としている。 - //※null には対応してない(空要素は可)。 - - //Wrap Array - [Serializable] - private class ArrayWrap - { - public T[] array; - - public ArrayWrap(T[] array) - { - this.array = array; - } - - public T[] ToArray() - { - try { - return (T[])array.Clone(); //Returns copy - } - catch { - return new T[0]; //Empty array - } - } - } - - - //Wrap List - [Serializable] - private class ListWrap - { - public List list; - - public ListWrap(List list) - { - this.list = list; - } - - public List ToList() - { - return new List(list); //Returns copy - } - } - - - //Wrap Dictionary or Array of keys, Array of values pair - //(*) The keys and values pair Array must have the same length. - //・When saving: dic -> create keys, values from constructor -> save with JSON (like "keys":[0,1,2,...];"values":[0,1,2,...]); - //・When loading: JSON -> keys, values overwrite -> converted to dictionary (or arrays) - // - //辞書 または キー&値ペア配列 をラップ - //・セーブ時:コンストラクタから dic → keys, values を作成 → JSON で保存("keys":[0,1,2,…];"values":[0,1,2,…]; のようになる) - //・ロード時:JSON から → keys, values 上書き → 辞書に変換したものを返す - //※キー&値ペア配列は長さを同じにすること - [Serializable] - private class DictionaryWrap - { - [SerializeField] private K[] keys; //Array of keys (It is converted to JSON) - [SerializeField] private V[] values; //Array of values (It is converted to JSON) - - public DictionaryWrap(Dictionary dic) - { - keys = dic.Keys.ToArray(); - values = dic.Values.ToArray(); - } - - public DictionaryWrap(K[] keys, V[] values) //(*) Pair Array must have the same length. - { - this.keys = keys; - this.values = values; - } - - public Dictionary ToDictionary() - { - try { - return keys.Select((k, i) => new { k, v = values[i] }) - .ToDictionary(a => a.k, a => a.v); //(*) An error occurs if there is a duplicate key. //※重複キーがあるとエラーとなる - } - catch { - return new Dictionary(); //Empty dictionary - } - } - - public K[] Keys { - get { - try { - return (K[])keys.Clone(); //Returns copy - } - catch { - return new K[0]; //Empty array - } - } - } - - public V[] Values { - get { - try { - return (V[])values.Clone(); //Returns copy - } - catch { - return new V[0]; //Empty array - } - } - } - } - - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XPlayerPrefs.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XPlayerPrefs.cs.meta deleted file mode 100644 index 0f7ca3be..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/System/XPlayerPrefs.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2c820fa9deb31f64ba725be172f8c574 -timeCreated: 1511188078 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool.meta deleted file mode 100644 index 8f57c7df..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c45e5bcec42155345b464561b04363b9 -folderAsset: yes -timeCreated: 1511170162 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor.meta deleted file mode 100644 index a96f4172..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a14477a1621d02a42aa578b87f8b78f3 -folderAsset: yes -timeCreated: 1511169875 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/ObjectArrangeToolEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/ObjectArrangeToolEditor.cs deleted file mode 100644 index 9cdf9c01..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/ObjectArrangeToolEditor.cs +++ /dev/null @@ -1,222 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; -using UnityEditorInternal; -using ValidStatus = FantomLib.ObjectArrangeTool.ValidStatus; - -namespace FantomLib -{ - /// - /// Arrange objects at equal intervals (mainly for UI) - /// - /// オブジェクトを等間隔に並べる(主にUI用) - /// - [CustomEditor(typeof(ObjectArrangeTool))] - public class ObjectArrangeToolEditor : Editor - { - SerializedProperty axis; - GUIContent axisLabel = new GUIContent("Axis"); - SerializedProperty step; - GUIContent stepLabel = new GUIContent("Step"); - SerializedProperty addPosition; - GUIContent addPositionLabel = new GUIContent("Add Position"); - GUIContent dropLabel = new GUIContent("Drop here to add (If multiple drops, lock the inspector)"); - - ReorderableList reorderableObjects; - SerializedProperty objects; - - int fromIndex; - int toIndex; - int resize = -1; - //Vector3 addPosition = Vector3.zero; //Since I want to save the value I moved as a field of 'ObjectArrangeTool'. - - //Check for errors - ValidStatus validStatus = new ValidStatus(); - string emptyIndexError = ""; - string duplicateError = ""; - - - private void OnEnable() - { - axis = serializedObject.FindProperty("axis"); - step = serializedObject.FindProperty("step"); - addPosition = serializedObject.FindProperty("addPosition"); - - objects = serializedObject.FindProperty("objects"); - reorderableObjects = new ReorderableList(serializedObject, objects); - reorderableObjects.drawHeaderCallback = (rect) => - EditorGUI.LabelField(rect, objects.displayName); - reorderableObjects.drawElementCallback = (rect, index, isActive, isFocused) => { - var element = objects.GetArrayElementAtIndex(index); - EditorGUI.PropertyField(rect, element, true); - }; - reorderableObjects.onRemoveCallback = (list) => { - var tool = target as ObjectArrangeTool; - tool.RemoveElement(list.index); - }; - } - - const float MoveButtonWidthMax = 30; - bool edited = true; - - public override void OnInspectorGUI() - { - //Check for errors - if (edited) - CheckValidity(); - - edited = false; - - var tool = target as ObjectArrangeTool; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - GUILayout.Space(5); - - DropObjectGUI(); - - EditorGUI.BeginChangeCheck(); - reorderableObjects.DoLayoutList(); - edited |= EditorGUI.EndChangeCheck(); - - GUILayout.Space(5); - - //Display error status - if (tool.objects != null && tool.objects.Length > 0) { - if (!string.IsNullOrEmpty(emptyIndexError)) - EditorGUILayout.HelpBox("There is empty element (index) : " + emptyIndexError, MessageType.Error); - if (!string.IsNullOrEmpty(duplicateError)) - EditorGUILayout.HelpBox("There is duplicate object : " + duplicateError, MessageType.Error); - } - - if (!Application.isPlaying) - { - if (tool.executing) - return; - - GUILayout.Space(5); - - EditorGUILayout.PropertyField(axis, axisLabel, true); - EditorGUILayout.PropertyField(step, stepLabel, true); - if (GUILayout.Button("Arrage")) - tool.Arrange(); - - GUILayout.Space(15); - - EditorGUILayout.BeginHorizontal(); - //addPosition = EditorGUILayout.Vector3Field("Add Position", addPosition); - EditorGUILayout.PropertyField(addPosition, addPositionLabel, true); - if (GUILayout.Button("+", GUILayout.MaxWidth(MoveButtonWidthMax))) - { - if (!tool.executing) - tool.MoveObjects(addPosition.vector3Value); - } - if (GUILayout.Button("-", GUILayout.MaxWidth(MoveButtonWidthMax))) - { - if (!tool.executing) - tool.MoveObjects(addPosition.vector3Value * -1); - } - EditorGUILayout.EndHorizontal(); - - GUILayout.Space(15); - - EditorGUILayout.LabelField("Copy Index"); - EditorGUI.indentLevel++; - fromIndex = EditorGUILayout.IntField("From", fromIndex); - toIndex = EditorGUILayout.IntField("To", toIndex); - EditorGUI.indentLevel--; - if (GUILayout.Button("Copy Elements")) - { - Undo.RecordObject(target, "Copy elements"); - if (tool.CopyElements(fromIndex, toIndex)) - edited = true; - } - - GUILayout.Space(15); - - resize = EditorGUILayout.IntField("Resize Length", resize); - if (GUILayout.Button("Resize")) - { - Undo.RecordObject(target, "Resize length"); - if (tool.ResizeLength(resize)) - edited = true; - } - - GUILayout.Space(15); - if (GUILayout.Button("Clear All")) - { - Undo.RecordObject(target, "Clear all"); - if (tool.ClearElements()) - edited = true; - } - } - - serializedObject.ApplyModifiedProperties(); - } - - private void CheckValidity() - { - var tool = target as ObjectArrangeTool; - tool.CheckValidity(ref validStatus); - emptyIndexError = validStatus.GetEmptyError(); - duplicateError = validStatus.GetDuplicateError(); - } - - private void DropObjectGUI() - { - Event ev = Event.current; - Rect dropRect = GUILayoutUtility.GetRect(0f, 21f, GUILayout.ExpandWidth(true)); - GUI.Box(dropRect, dropLabel); - - switch (ev.type) { - case EventType.DragUpdated: - case EventType.DragPerform: - if (!dropRect.Contains(ev.mousePosition)) - return; - - DragAndDrop.visualMode = DragAndDropVisualMode.Copy; - - if (ev.type == EventType.DragPerform) { - Undo.RecordObject(target, "Drop objects"); - DragAndDrop.AcceptDrag(); - var tool = target as ObjectArrangeTool; - bool edited = false; - bool first = (tool.objects == null || tool.objects.Length == 0); - ObjectArrangeTool.Axis axis = tool.axis; - - for (int i = 0; i < DragAndDrop.objectReferences.Length; i++) - { - GameObject obj = (GameObject)DragAndDrop.objectReferences[i]; - edited |= tool.AddElement(obj); - if (first && i == 1) - { - GameObject obj0 = (GameObject)DragAndDrop.objectReferences[0]; - switch (axis) - { - case ObjectArrangeTool.Axis.X: - tool.step = obj.transform.localPosition.x - obj0.transform.localPosition.x; - break; - case ObjectArrangeTool.Axis.Y: - tool.step = obj.transform.localPosition.y - obj0.transform.localPosition.y; - break; - case ObjectArrangeTool.Axis.Z: - tool.step = obj.transform.localPosition.z - obj0.transform.localPosition.z; - break; - } - } - } - if (edited) - CheckValidity(); - } - - ev.Use(); - break; - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/ObjectArrangeToolEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/ObjectArrangeToolEditor.cs.meta deleted file mode 100644 index 462b7f17..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/ObjectArrangeToolEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 089180e19958b364892c8b8bf021cdd7 -timeCreated: 1511170194 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/XGizmoEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/XGizmoEditor.cs deleted file mode 100644 index 2ee15918..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/XGizmoEditor.cs +++ /dev/null @@ -1,150 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(XGizmo))] - [CanEditMultipleObjects] - public class XGizmoEditor : Editor - { - - public override void OnInspectorGUI() - { - XGizmo obj = target as XGizmo; - - EditorGUI.BeginChangeCheck(); - obj.visible = EditorGUILayout.Toggle("Visible", obj.visible); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.visible = obj.visible; - } - - EditorGUI.BeginChangeCheck(); - obj.color = EditorGUILayout.ColorField("Color", obj.color); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.color = obj.color; - } - - EditorGUI.BeginChangeCheck(); - obj.space = (Space)EditorGUILayout.EnumPopup("Space", obj.space); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.space = obj.space; - } - - EditorGUI.BeginChangeCheck(); - obj.colliderSync = EditorGUILayout.Toggle("Collider Sync", obj.colliderSync); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.colliderSync = obj.colliderSync; - } - - EditorGUI.BeginChangeCheck(); - obj.colliderIndex = EditorGUILayout.IntField("Collider Index", obj.colliderIndex); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.colliderIndex = obj.colliderIndex; - } - - EditorGUI.BeginChangeCheck(); - obj.scaleSync = EditorGUILayout.Toggle("Scale Sync", obj.scaleSync); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.scaleSync = obj.scaleSync; - } - - EditorGUI.BeginChangeCheck(); - obj.shape = (XGizmo.Shape)EditorGUILayout.EnumPopup("Shape", obj.shape); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.shape = obj.shape; - } - - - EditorGUI.indentLevel++; - - switch (obj.shape) - { - case XGizmo.Shape.Sphere: - case XGizmo.Shape.WireSphere: - EditorGUI.BeginChangeCheck(); - obj.sphereParam.center = EditorGUILayout.Vector3Field("Center", obj.sphereParam.center); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.sphereParam.center = obj.sphereParam.center; - } - - EditorGUI.BeginChangeCheck(); - obj.sphereParam.radius = EditorGUILayout.FloatField("Radius", obj.sphereParam.radius); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.sphereParam.radius = obj.sphereParam.radius; - } - break; - - case XGizmo.Shape.Cube: - case XGizmo.Shape.WireCube: - EditorGUI.BeginChangeCheck(); - obj.cubeParam.center = EditorGUILayout.Vector3Field("Center", obj.cubeParam.center); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.cubeParam.center = obj.cubeParam.center; - } - - EditorGUI.BeginChangeCheck(); - obj.cubeParam.size = EditorGUILayout.Vector3Field("Size", obj.cubeParam.size); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.cubeParam.size = obj.cubeParam.size; - } - break; - - case XGizmo.Shape.Line: - EditorGUI.BeginChangeCheck(); - obj.lineParam.from = EditorGUILayout.Vector3Field("From", obj.lineParam.from); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.lineParam.from = obj.lineParam.from; - } - - EditorGUI.BeginChangeCheck(); - obj.lineParam.to = EditorGUILayout.Vector3Field("To", obj.lineParam.to); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.lineParam.to = obj.lineParam.to; - } - break; - -#pragma warning disable 0618 - case XGizmo.Shape.Mesh: - case XGizmo.Shape.WireMesh: - EditorGUI.BeginChangeCheck(); - obj.mesh = (Mesh)EditorGUILayout.ObjectField("Mesh", obj.mesh, typeof(Mesh)); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.mesh = obj.mesh; - } - break; -#pragma warning restore 0618 - - default: - break; - } - - EditorGUI.indentLevel--; - - - EditorGUI.BeginChangeCheck(); - obj.iconImage = EditorGUILayout.TextField("Icon Image", obj.iconImage); - if (EditorGUI.EndChangeCheck()) - { - foreach (XGizmo o in targets) o.iconImage = obj.iconImage; - } - - - EditorUtility.SetDirty(target); - } - - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/XGizmoEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/XGizmoEditor.cs.meta deleted file mode 100644 index 73e89056..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/Editor/XGizmoEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: abc9b3db417944d4091999c23c4e8d4d -timeCreated: 1533562861 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/ObjectArrangeTool.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/ObjectArrangeTool.cs deleted file mode 100644 index c0cd1b8d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/ObjectArrangeTool.cs +++ /dev/null @@ -1,267 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -#if UNITY_EDITOR -using UnityEditor; -#endif - -namespace FantomLib -{ - /// - /// Arrange objects at equal intervals (mainly for UI) - ///·Place it step by step based on objects[0]. - ///(*) Locking the inspector makes it easy to do multiple drops. - /// - /// - /// オブジェクトを等間隔に並べる(主にUI用) - ///・objects[0] を基準に step ごとに配置する。 - ///※インスペクタをロックすると、複数ドロップも簡単にできます。 - /// - [ExecuteInEditMode] - public class ObjectArrangeTool : MonoBehaviour - { -#if UNITY_EDITOR - - //Inspector Settings - [Serializable] - public enum Axis { - X, Y, Z - } - - public Axis axis = Axis.Y; //Axis to be arranged //並べる軸 - public float step = -100; //Alignment interval //並べる間隔 - public Vector3 addPosition = Vector3.zero; //Amount of translation //平行移動の量 - public GameObject[] objects; //Objects to be arranged //並べるオブジェクト - - - // Use this for initialization - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - -#region Editor tool Section - - //Running flag //実行中フラグ - public bool executing { - get; private set; - } - - //Arrange objects at equal intervals based on objects[0]. - //objects[0] を基準にオブジェクトを等間隔に並べる - public void Arrange() - { - if (objects == null || objects[0] == null || objects.Length < 2) - return; - - executing = true; - - float start; - if (axis == Axis.Y) - start = objects[0].transform.localPosition.y; - else if (axis == Axis.X) - start = objects[0].transform.localPosition.x; - else - start = objects[0].transform.localPosition.z; - - for (int i = 1; i < objects.Length; i++) - { - if (objects[i] == null) - continue; - - Vector3 pos = objects[i].transform.localPosition; - if (axis == Axis.Y) - pos.y = start + step * i; - else if (axis == Axis.X) - pos.x = start + step * i; - else - pos.z = start + step * i; - - objects[i].transform.localPosition = pos; - } - - executing = false; - } - - //Add it to the position of each object (move the whole in parallel). - //各 object の位置に加算する(全体を平行移動する)。 - public void MoveObjects(Vector3 addPosition) - { - if (addPosition == Vector3.zero || objects == null || objects.Length == 0) - return; - - executing = true; - - foreach (var item in objects) - { - if (item == null) - continue; - - Vector3 localPos = item.transform.localPosition; - localPos += addPosition; - item.transform.localPosition = localPos; - } - - executing = false; - } - - - //Whether the index is within range. - //インデクスが有効範囲内か? - public bool IsValidIndex(int index) - { - return (objects != null && 0 <= index && index < objects.Length); - } - - //Copy elements after 'from' index to 'to' index after. - //'from'インデクス以降の要素を 'to'インデクス以降へコピーする - public bool CopyElements(int from, int to) - { - if (from == to || !IsValidIndex(from) || !IsValidIndex(to)) - return false; - - executing = true; - - GameObject[] temp = (GameObject[])objects.Clone(); - for (int i = from, j = to; i < temp.Length && j < objects.Length; i++, j++) - objects[j] = temp[i]; - - executing = false; - return true; - } - - //Only when the object is unique, add it to the end of the array. - //オブジェクトがユニークのときのみ、最後に追加する。 - public bool AddElement(GameObject go) - { - executing = true; - - bool added = false; - - if (objects == null) - { - objects = new GameObject[] { go }; - added = true; - } - else - { - if (ArrayUtility.IndexOf(objects, go) < 0) - { - ArrayUtility.Add(ref objects, go); - added = true; - } - } - - executing = false; - return added; - } - - //Data at the specified index position is deleted. - public bool RemoveElement(int index) - { - if (!IsValidIndex(index)) - return false; - - executing = true; - ArrayUtility.RemoveAt(ref objects, index); - executing = false; - return true; - } - - //Clear all elements - public bool ClearElements() - { - if (objects == null || objects.Length == 0) - return false; - - ArrayUtility.Clear(ref objects); - return true; - } - - //Change the length of the array. - //If it is shorter than the original length it is clipped and - //if it is longer than the original length an empty element is added. - //配列の長さを変更する。元の長さより短い場合は切り取られ、元の長さより長い場合は空の要素が追加される。 - public bool ResizeLength(int length) - { - if (objects == null || objects.Length == 0 || objects.Length == length || length < 0) - return false; - - executing = true; - - if (length < objects.Length) - objects = objects.Where((e, i) => i < length).ToArray(); - else - ArrayUtility.AddRange(ref objects, new GameObject[length - objects.Length]); - - executing = false; - return true; - } - - - //Errors status - public class ValidStatus - { - public List emptyIndex = new List(); //Index of null element - public HashSet duplicate = new HashSet(); //Duplicate objects - public HashSet uniq = new HashSet(); //Unique objects - - public void ResetStatus() - { - emptyIndex.Clear(); - duplicate.Clear(); - uniq.Clear(); - } - - public string GetEmptyError() - { - return (emptyIndex.Count > 0) ? - emptyIndex.Select(e => e.ToString()).Aggregate((s, e) => s + ", " + e) : ""; - } - - public string GetDuplicateError() - { - return (duplicate.Count > 0) ? - duplicate.Select(e => e.name).Aggregate((s, e) => s + ", " + e) : ""; - } - } - - //Check the validity of objects - public void CheckValidity(ref ValidStatus validStatus) - { - validStatus.ResetStatus(); - - if (objects == null || objects.Length == 0) - return; - - for (int i = 0; i < objects.Length; i++) - { - GameObject go = objects[i]; - if (go != null) - { - if (validStatus.uniq.Contains(go)) - validStatus.duplicate.Add(go); - else - validStatus.uniq.Add(go); - } - else - validStatus.emptyIndex.Add(i); - } - } - -#endregion - -#endif - } -} - diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/ObjectArrangeTool.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/ObjectArrangeTool.cs.meta deleted file mode 100644 index 930bae17..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/ObjectArrangeTool.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fdbef125a26ec9642a47c18b2d27579b -timeCreated: 1511169914 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/XGizmo.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/XGizmo.cs deleted file mode 100644 index 12eb1333..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/XGizmo.cs +++ /dev/null @@ -1,286 +0,0 @@ -using System; -using UnityEngine; - -namespace FantomLib -{ - /// - /// Gizmo shpere, cube, line, mesh shape - /// http://fantom1x.blog130.fc2.com/blog-entry-228.html - /// - /// 球・箱・線・メッシュ状の Gizmo - /// http://fantom1x.blog130.fc2.com/blog-entry-228.html - /// - public class XGizmo : MonoBehaviour - { - //Gizmo's shape //Gizmo の形状 - [Serializable] - public enum Shape - { - Sphere = 0, - Cube, - Line, - WireSphere, - WireCube, - Mesh, - WireMesh, - } - - public bool visible = true; //Visible state (because it is displayed on the editor even if you do not play) //可視状態(プレイしなくてもエディタ上では表示されるため) - public Color color = Color.yellow; //Gizmo's color - public Space space = Space.Self; //World or Local values - - public bool colliderSync = false; //Synchronize to the size of the attached collider. //アタッチされてるコライダのサイズに同期する - public int colliderIndex = 0; //Serial number of the attached corridor (0 to n-1). //アタッチされてるコライダの連番(0~n-1) - - public bool scaleSync = true; //Synchronize to scale //スケールに同期する - - //Use your own icon (linked to the editor 's Gizmo size setting (slider)) - //(*) The icon image to use must create a folder named Gizmos and put it in there. - //(*) For the scale of the icon, the slider of 'Gizmos > 3D Icons' in the scene view is applied. - // - //独自のアイコンを使用する(エディタの Gizmo のサイズ設定(スライダ)に連動する) - //※使用するアイコン画像は Gizmos という名前のフォルダを作成し、そこに格納しておく必要がある。 - //※アイコンのスケールはシーンビューの「Gizmos>3D Icons」のスライダーが適用される。 - public string iconImage = ""; //Not need the extension //拡張子はいらない - - public Shape shape = Shape.Sphere; - - public Sphere sphereParam = new Sphere(Vector3.zero, 0.1f); - public Cube cubeParam = new Cube(Vector3.zero, Vector3.one); - public Line lineParam = new Line(Vector3.zero, Vector3.one); - - public Mesh mesh; - - - // Use this for initialization - void Start() - { - - } - - //Update is called once per frame - //void Update () { - // - //} - - void OnDrawGizmos() - { - if (!visible) - return; - - Gizmos.color = color; - - //Gizmo's icon (It needs to be in the 'Gizmos' folder) - if (!string.IsNullOrEmpty(iconImage)) - { - Gizmos.DrawIcon(transform.position, iconImage, true); - } - - - Vector3 scale = scaleSync ? transform.localScale : Vector3.one; - - switch (shape) - { - case Shape.Sphere: - if (colliderSync) - { - SphereCollider[] colliders = GetComponents(); - if (colliders.Length > 0 && colliderIndex < colliders.Length) - { - sphereParam.center = colliders[colliderIndex].center; - sphereParam.radius = colliders[colliderIndex].radius; - } - } - - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawSphere(sphereParam.center, sphereParam.radius); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(sphereParam.center, transform.rotation, scale); - Gizmos.DrawSphere(Vector3.zero, sphereParam.radius); - } - break; - - case Shape.WireSphere: - if (colliderSync) - { - SphereCollider[] colliders = GetComponents(); - if (colliders.Length > 0 && colliderIndex < colliders.Length) - { - sphereParam.center = colliders[colliderIndex].center; - sphereParam.radius = colliders[colliderIndex].radius; - } - } - - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawWireSphere(sphereParam.center, sphereParam.radius); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(sphereParam.center, transform.rotation, scale); - Gizmos.DrawWireSphere(Vector3.zero, sphereParam.radius); - } - break; - - case Shape.Cube: - if (colliderSync) - { - BoxCollider[] colliders = GetComponents(); - if (colliders.Length > 0 && colliderIndex < colliders.Length) - { - cubeParam.center = colliders[colliderIndex].center; - cubeParam.size = colliders[colliderIndex].size; - } - } - - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawCube(cubeParam.center, cubeParam.size); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(cubeParam.center, transform.rotation, scale); - Gizmos.DrawCube(Vector3.zero, cubeParam.size); - } - break; - - case Shape.WireCube: - if (colliderSync) - { - BoxCollider[] colliders = GetComponents(); - if (colliders.Length > 0 && colliderIndex < colliders.Length) - { - cubeParam.center = colliders[colliderIndex].center; - cubeParam.size = colliders[colliderIndex].size; - } - } - - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawWireCube(cubeParam.center, cubeParam.size); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(cubeParam.center, transform.rotation, scale); - Gizmos.DrawWireCube(Vector3.zero, cubeParam.size); - } - break; - - case Shape.Line: - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawLine(lineParam.from, lineParam.to); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(Vector3.zero, transform.rotation, scale); - Gizmos.DrawLine(lineParam.from, lineParam.to); - } - break; - - case Shape.Mesh: - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawMesh(mesh); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(Vector3.zero, transform.rotation, scale); - Gizmos.DrawMesh(mesh); - } - break; - - case Shape.WireMesh: - if (space == Space.Self) - { - Gizmos.matrix = Matrix4x4.TRS(transform.position, transform.rotation, scale); - Gizmos.DrawWireMesh(mesh); - } - else - { - Gizmos.matrix = Matrix4x4.TRS(Vector3.zero, transform.rotation, scale); - Gizmos.DrawWireMesh(mesh); - } - break; - - default: - break; - } - } - -#region Shape parameters - - [Serializable] - public class Sphere - { - public Vector3 center = Vector3.zero; - public float radius = 1f; - - public Sphere() { } - - public Sphere(Vector3 center, float radius) - { - this.center = center; - this.radius = radius; - } - - public Sphere(float x, float y, float z, float radius) - { - this.center = new Vector3(x, y, z); - this.radius = radius; - } - } - - [Serializable] - public class Cube - { - public Vector3 center = Vector3.zero; - public Vector3 size = Vector3.one; - - public Cube() { } - - public Cube(Vector3 center, Vector3 size) - { - this.center = center; - this.size = size; - } - - public Cube(float x, float y, float z, float scaleX, float scaleY, float scaleZ) - { - center = new Vector3(x, y, z); - size = new Vector3(scaleX, scaleY, scaleZ); - } - } - - [Serializable] - public class Line - { - public Vector3 from = Vector3.zero; - public Vector3 to = Vector3.zero; - - public Line() { } - - public Line(Vector3 from, Vector3 to) - { - this.from = from; - this.to = to; - } - - public Line(float x1, float y1, float z1, float x2, float y2, float z2) - { - from = new Vector3(x1, y1, z1); - to = new Vector3(x2, y2, z2); - } - } -#endregion - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/XGizmo.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/XGizmo.cs.meta deleted file mode 100644 index a02b4254..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Tool/XGizmo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0a442f9cdc8249048a0e5d12b831282c -timeCreated: 1533562844 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI.meta deleted file mode 100644 index d5ac7b7b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 65d912c3637744d4da96fe993fe98f13 -folderAsset: yes -timeCreated: 1523591989 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/BatteryTemperatureText.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/BatteryTemperatureText.cs deleted file mode 100644 index 17661b3c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/BatteryTemperatureText.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using UnityEngine; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Display temperature of battery status in text - /// - /// バッテリーステータスの温度をテキストに表示する - /// - public class BatteryTemperatureText : MonoBehaviour { - - //Inspector Settings - public Text targetText; //Display UI-Text //表示する UI-Text - public string format = "{0:F1} ℃"; //The display format (if it is 'F0', there are no decimal places) //表示フォーマット('F0' とすれば小数点以下は無くなる) - - //For work - StringBuilder sb = new StringBuilder(8); - - - // Use this for initialization - private void Start () { - - } - - // Update is called once per frame - //private void Update () { - - //} - - - //Callback handler from 'BatteryStatusController.OnStatus' - public void ReceiveBatteryStatus(BatteryInfo info) - { - if (targetText != null) - { - sb.Length = 0; - sb.AppendFormat(format, info.temperature); - targetText.text = sb.ToString(); - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/BatteryTemperatureText.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/BatteryTemperatureText.cs.meta deleted file mode 100644 index 1de2850b..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/BatteryTemperatureText.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6ad666be6d57b644380ac71b6d73a2bf -timeCreated: 1533620814 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBar.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBar.cs deleted file mode 100644 index 9b763421..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBar.cs +++ /dev/null @@ -1,161 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Display CPU Rate information (User, Nice, System, Idle) in a bar - /// - /// CPU 使用率の情報(User, Nice, System, Idle)をバーで表示する - /// - public class CpuRateBar : MonoBehaviour { - - public enum BarType - { - Each, //User, Nice, System, Idle - UseGrad, //(User + Nice + System), Idle - } - - //Inspector Settings - public BarType barType = BarType.Each; //Appearance of the bar - - public Text nameText; //"CPU~" - - public Image userBarImage; //User bar - public Image niceBarImage; //Nice bar - public Image systemBarImage; //System bar - public Image idleBarImage; //Idle bar - - public Gradient useGradColor; //User Bar color when 'UseGrad' (when changing with%) //'UseGrad' のときのバー色(%で変化するとき) - - - // Use this for initialization - private void Start () { - UserBarFill = 0f; - NiceBarFill = 0f; - SystemBarFill = 0f; - IdleBarFill = 0f; - } - - // Update is called once per frame - //private void Update () { - - //} - - - //'CpuRateInfo' to bar - public void SetCpuRate(CpuRateInfo info) - { - if (nameText != null) - nameText.text = info.name.ToUpper() + " : "; - - switch (barType) - { - case BarType.Each: - UpdateForEashTye(info); - break; - case BarType.UseGrad: - UpdateForUseGradTye(info); - break; - } - } - - //'Each' mode - private void UpdateForEashTye(CpuRateInfo info) - { - float total = info.user; - UserBarFill = total / 100f; - - total += info.nice; - NiceBarFill = total / 100f; - - total += info.system; - SystemBarFill = total / 100f; - - IdleBarFill = 1f; - } - - //'UseGrad' mode - private void UpdateForUseGradTye(CpuRateInfo info) - { - NiceBarFill = 0f; - SystemBarFill = 0f; - IdleBarFill = 1f; - - float rate = (info.user + info.nice + info.system) / 100f; - UserBarFill = rate; - - if (useGradColor != null) - UserBarColor = useGradColor.Evaluate(rate); - } - - - //User bar fill (0~1f) - float UserBarFill { - set { - if (userBarImage != null) - userBarImage.fillAmount = Mathf.Clamp01(value); - } - } - - //Nice bar fill (0~1f) - float NiceBarFill { - set { - if (niceBarImage != null) - niceBarImage.fillAmount = Mathf.Clamp01(value); - } - } - - //System bar fill (0~1f) - float SystemBarFill { - set { - if (systemBarImage != null) - systemBarImage.fillAmount = Mathf.Clamp01(value); - } - } - - //Idle bar fill (0~1f) - float IdleBarFill { - set { - if (idleBarImage != null) - idleBarImage.fillAmount = Mathf.Clamp01(value); - } - } - - - //User bar color - public Color UserBarColor { - set { - if (userBarImage != null) - userBarImage.color = value; - } - } - - //Nice bar color - public Color NiceBarColor { - set { - if (niceBarImage != null) - niceBarImage.color = value; - } - } - - //System bar color - public Color SystemBarColor { - set { - if (systemBarImage != null) - systemBarImage.color = value; - } - } - - //Idle bar color - public Color IdleBarColor { - set { - if (idleBarImage != null) - idleBarImage.color = value; - } - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBar.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBar.cs.meta deleted file mode 100644 index 2c24cd41..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2cc2d0cc791f2d640bf159011cfb082d -timeCreated: 1533007288 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBarsView.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBarsView.cs deleted file mode 100644 index fbb007d8..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBarsView.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace FantomLib -{ - using BarType = CpuRateBar.BarType; - - /// - /// Update bars with information on CPU 0 ~ n utilization - /// - /// CPU 0~n 使用率の情報でバーを更新する - /// - public class CpuRateBarsView : MonoBehaviour { - - //Inspector Settings - public bool applySettingOnAwake = false; //Apply settings at startup //起動時に設定を適用する - - public BarType barType = BarType.Each; //Appearance of the bar //バーの外観 - - public Color userColor; //User Bar color when 'Each' (when changing with%) //Each のときのバー色(%で変化するとき) - public Color niceColor; //Nice Bar color when 'Each' (when changing with%) //Each のときのバー色(%で変化するとき) - public Color systemColor; //System Bar color when 'Each' (when changing with%) //Each のときのバー色(%で変化するとき) - public Color idleColor; //Idle Bar color (when changing with%) //バー色(%で変化するとき) - - public Gradient useGradColor; //User Bar color when 'UseGrad' (when changing with%) //'UseGrad' のときのバー色(%で変化するとき) - - public CpuRateBar[] cpuRateBars; //CPU 0 ~ n - - - // Use this for initialization - private void Awake () { - if (applySettingOnAwake) - ApplySetting(); - } - - private void Start () { - - } - - // Update is called once per frame - //private void Update () { - - //} - - - //Register 'CpuRateController.OnStatus' - public void RecieveCpuRates(CpuRateInfo[] infos) - { - for (int i = 0; i < cpuRateBars.Length; i++) - { - if (cpuRateBars[i] == null) - continue; - - if (i < infos.Length) - { - cpuRateBars[i].gameObject.SetActive(true); - cpuRateBars[i].SetCpuRate(infos[i]); - } - else - { - cpuRateBars[i].gameObject.SetActive(false); - } - } - } - - //When 'applySettingOnAwake = true' - private void ApplySetting() - { - for (int i = 0; i < cpuRateBars.Length; i++) - { - if (cpuRateBars[i] == null) - continue; - - cpuRateBars[i].barType = barType; - - switch (barType) - { - case BarType.Each: - cpuRateBars[i].UserBarColor = userColor; - cpuRateBars[i].NiceBarColor = niceColor; - cpuRateBars[i].SystemBarColor = systemColor; - cpuRateBars[i].IdleBarColor = idleColor; - break; - case BarType.UseGrad: - cpuRateBars[i].useGradColor = useGradColor; - cpuRateBars[i].IdleBarColor = idleColor; - break; - } - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBarsView.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBarsView.cs.meta deleted file mode 100644 index 34ae82c9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/CpuRateBarsView.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 80afc0eeccf522c41b7808da780558d7 -timeCreated: 1533103866 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor.meta deleted file mode 100644 index b2eab29e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c24f46046663ff447afc4de691d857a3 -folderAsset: yes -timeCreated: 1524542214 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarEditor.cs deleted file mode 100644 index 8e8fb4fa..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarEditor.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(CpuRateBar))] - public class CpuRateBarEditor : Editor { - - SerializedProperty barType; - GUIContent barTypeLabel = new GUIContent("Bar Type"); - SerializedProperty nameText; - GUIContent nameTextLabel = new GUIContent("Name Text"); - SerializedProperty userBarImage; - GUIContent userBarImageLabel = new GUIContent("User Bar Image"); - SerializedProperty niceBarImage; - GUIContent niceBarImageLabel = new GUIContent("Nice Bar Image"); - SerializedProperty systemBarImage; - GUIContent systemBarImageLabel = new GUIContent("System Bar Image"); - SerializedProperty idleBarImage; - GUIContent idleBarImageLabel = new GUIContent("Idle Bar Image"); - SerializedProperty useGradColor; - GUIContent useGradColorLabel = new GUIContent("Use Grad Color"); - - private void OnEnable() - { - barType = serializedObject.FindProperty("barType"); - nameText = serializedObject.FindProperty("nameText"); - userBarImage = serializedObject.FindProperty("userBarImage"); - niceBarImage = serializedObject.FindProperty("niceBarImage"); - systemBarImage = serializedObject.FindProperty("systemBarImage"); - idleBarImage = serializedObject.FindProperty("idleBarImage"); - useGradColor = serializedObject.FindProperty("useGradColor"); - } - - public override void OnInspectorGUI() - { - var obj = target as CpuRateBar; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(barType, barTypeLabel, true); - - switch (obj.barType) - { - case CpuRateBar.BarType.Each: - break; - - case CpuRateBar.BarType.UseGrad: - EditorGUILayout.PropertyField(useGradColor, useGradColorLabel, true); - break; - } - - EditorGUILayout.PropertyField(nameText, nameTextLabel, true); - EditorGUILayout.PropertyField(userBarImage, userBarImageLabel, true); - EditorGUILayout.PropertyField(niceBarImage, niceBarImageLabel, true); - EditorGUILayout.PropertyField(systemBarImage, systemBarImageLabel, true); - EditorGUILayout.PropertyField(idleBarImage, idleBarImageLabel, true); - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarEditor.cs.meta deleted file mode 100644 index 707e4331..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 76c8100a859d7174cb753fe9ea27832b -timeCreated: 1533112972 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarsViewEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarsViewEditor.cs deleted file mode 100644 index 33cd47fd..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarsViewEditor.cs +++ /dev/null @@ -1,72 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(CpuRateBarsView))] - public class CpuRateBarsViewEditor : Editor { - - SerializedProperty applySettingOnAwake; - GUIContent applySettingOnAwakeLabel = new GUIContent("Apply Setting On Awake"); - SerializedProperty barType; - GUIContent barTypeLabel = new GUIContent("Bar Type"); - SerializedProperty userColor; - GUIContent userBarImageLabel = new GUIContent("User Bar Color"); - SerializedProperty niceColor; - GUIContent niceBarImageLabel = new GUIContent("Nice Bar Color"); - SerializedProperty systemColor; - GUIContent systemBarImageLabel = new GUIContent("System Bar Color"); - SerializedProperty idleColor; - GUIContent idleBarImageLabel = new GUIContent("Idle Bar Color"); - SerializedProperty useGradColor; - GUIContent useGradColorLabel = new GUIContent("Use Grad Color"); - SerializedProperty cpuRateBars; - GUIContent cpuRateBarsLabel = new GUIContent("Cpu Rate Bars"); - - private void OnEnable() - { - applySettingOnAwake = serializedObject.FindProperty("applySettingOnAwake"); - barType = serializedObject.FindProperty("barType"); - userColor = serializedObject.FindProperty("userColor"); - niceColor = serializedObject.FindProperty("niceColor"); - systemColor = serializedObject.FindProperty("systemColor"); - idleColor = serializedObject.FindProperty("idleColor"); - useGradColor = serializedObject.FindProperty("useGradColor"); - cpuRateBars = serializedObject.FindProperty("cpuRateBars"); - } - - public override void OnInspectorGUI() - { - var obj = target as CpuRateBarsView; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(applySettingOnAwake, applySettingOnAwakeLabel, true); - - EditorGUILayout.PropertyField(barType, barTypeLabel, true); - - switch (obj.barType) - { - case CpuRateBar.BarType.Each: - EditorGUILayout.PropertyField(userColor, userBarImageLabel, true); - EditorGUILayout.PropertyField(niceColor, niceBarImageLabel, true); - EditorGUILayout.PropertyField(systemColor, systemBarImageLabel, true); - EditorGUILayout.PropertyField(idleColor, idleBarImageLabel, true); - break; - - case CpuRateBar.BarType.UseGrad: - EditorGUILayout.PropertyField(useGradColor, useGradColorLabel, true); - EditorGUILayout.PropertyField(idleColor, idleBarImageLabel, true); - break; - } - - EditorGUILayout.PropertyField(cpuRateBars, cpuRateBarsLabel, true); - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarsViewEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarsViewEditor.cs.meta deleted file mode 100644 index d89606a4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/CpuRateBarsViewEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ed60e37ab2008054793f30ab8d987dac -timeCreated: 1533112954 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/LocalizeTextEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/LocalizeTextEditor.cs deleted file mode 100644 index f922a376..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/LocalizeTextEditor.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(LocalizeText))] - public class LocalizeTextEditor : Editor - { - SerializedProperty targetText; - GUIContent targetTextLabel = new GUIContent("Target Text"); - SerializedProperty resourceType; - GUIContent resourceTypeLabel = new GUIContent("Resource Type"); - SerializedProperty localize; - SerializedProperty localizeData; - GUIContent localizeLabel = new GUIContent("Localize"); - - private void OnEnable() - { - targetText = serializedObject.FindProperty("targetText"); - resourceType = serializedObject.FindProperty("resourceType"); - localize = serializedObject.FindProperty("localize"); - localizeData = serializedObject.FindProperty("localizeData"); - } - - public override void OnInspectorGUI() - { - var obj = target as LocalizeText; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(targetText, targetTextLabel, true); - - EditorGUILayout.PropertyField(resourceType, resourceTypeLabel, true); - switch (obj.resourceType) - { - case LocalizeText.ResourceType.Local: - EditorGUILayout.PropertyField(localize, localizeLabel, true); - break; - case LocalizeText.ResourceType.Resource: - EditorGUILayout.PropertyField(localizeData, localizeLabel, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/LocalizeTextEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/LocalizeTextEditor.cs.meta deleted file mode 100644 index 02a55767..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/LocalizeTextEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 52f2824b5afafc84091d951e419ea258 -timeCreated: 1524542232 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleButtonEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleButtonEditor.cs deleted file mode 100644 index 542a5b35..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleButtonEditor.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(ToggleButton))] - public class ToggleButtonEditor : ToggleObjectEditor { - - SerializedProperty targetButton; - GUIContent targetButtonLabel = new GUIContent("Target Button"); - - SerializedProperty onImage; - GUIContent onImageLabel = new GUIContent("On Image"); - SerializedProperty offImage; - GUIContent offImageLabel = new GUIContent("Off Image"); - - SerializedProperty images; - GUIContent imagesLabel = new GUIContent("Images"); - - - protected new void OnEnable() - { - base.OnEnable(); - - targetButton = serializedObject.FindProperty("targetButton"); - onImage = serializedObject.FindProperty("onImage"); - offImage = serializedObject.FindProperty("offImage"); - images = serializedObject.FindProperty("images"); - } - - public override void OnInspectorGUI() - { - //var obj = target as ToggleObject; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(targetButton, targetButtonLabel, true); - - EditorGUILayout.PropertyField(toggleType, toggleTypeLabel, true); - - switch (toggleType.enumValueIndex) - { - case (int)ToggleObject.ToggleType.OnOff: - EditorGUILayout.PropertyField(isOn, isOnLabel, true); - EditorGUILayout.PropertyField(onObject, onObjectLabel, true); - EditorGUILayout.PropertyField(onImage, onImageLabel, true); - EditorGUILayout.PropertyField(offObject, offObjectLabel, true); - EditorGUILayout.PropertyField(offImage, offImageLabel, true); - EditorGUILayout.PropertyField(OnToggleChanged, true); - break; - - case (int)ToggleObject.ToggleType.Index: - EditorGUILayout.PropertyField(index, indexLabel, true); - EditorGUILayout.PropertyField(objects, objectsLabel, true); - EditorGUILayout.PropertyField(images, imagesLabel, true); - EditorGUILayout.PropertyField(OnToggleIndexChanged, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleButtonEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleButtonEditor.cs.meta deleted file mode 100644 index 2f8ba626..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleButtonEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b59a54a1ab9768747938bd7f99bcb2a5 -timeCreated: 1530095709 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleObjectEditor.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleObjectEditor.cs deleted file mode 100644 index 832bd529..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleObjectEditor.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; -using UnityEditor; - -namespace FantomLib -{ - [CustomEditor(typeof(ToggleObject))] - public class ToggleObjectEditor : Editor { - - protected SerializedProperty toggleType; - protected GUIContent toggleTypeLabel = new GUIContent("Toggle Type"); - protected SerializedProperty isOn; - protected GUIContent isOnLabel = new GUIContent("Is On"); - protected SerializedProperty onObject; - protected GUIContent onObjectLabel = new GUIContent("On Object"); - protected SerializedProperty offObject; - protected GUIContent offObjectLabel = new GUIContent("Off Object"); - - protected SerializedProperty index; - protected GUIContent indexLabel = new GUIContent("Index"); - protected SerializedProperty objects; - protected GUIContent objectsLabel = new GUIContent("Objects"); - - protected SerializedProperty OnToggleChanged; - protected SerializedProperty OnToggleIndexChanged; - - - protected void OnEnable() - { - toggleType = serializedObject.FindProperty("toggleType"); - isOn = serializedObject.FindProperty("isOn"); - onObject = serializedObject.FindProperty("onObject"); - offObject = serializedObject.FindProperty("offObject"); - - index = serializedObject.FindProperty("index"); - objects = serializedObject.FindProperty("objects"); - - OnToggleChanged = serializedObject.FindProperty("OnToggleChanged"); - OnToggleIndexChanged = serializedObject.FindProperty("OnToggleIndexChanged"); - } - - public override void OnInspectorGUI() - { - //var obj = target as ToggleObject; - serializedObject.Update(); - - EditorGUI.BeginDisabledGroup(true); - EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour((MonoBehaviour)target) , typeof(MonoScript), false); - EditorGUI.EndDisabledGroup(); - - EditorGUILayout.PropertyField(toggleType, toggleTypeLabel, true); - - switch (toggleType.enumValueIndex) - { - case (int)ToggleObject.ToggleType.OnOff: - EditorGUILayout.PropertyField(isOn, isOnLabel, true); - EditorGUILayout.PropertyField(onObject, onObjectLabel, true); - EditorGUILayout.PropertyField(offObject, offObjectLabel, true); - EditorGUILayout.PropertyField(OnToggleChanged, true); - break; - - case (int)ToggleObject.ToggleType.Index: - EditorGUILayout.PropertyField(index, indexLabel, true); - EditorGUILayout.PropertyField(objects, objectsLabel, true); - EditorGUILayout.PropertyField(OnToggleIndexChanged, true); - break; - } - - serializedObject.ApplyModifiedProperties(); - EditorUtility.SetDirty(target); - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleObjectEditor.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleObjectEditor.cs.meta deleted file mode 100644 index 413c463d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/Editor/ToggleObjectEditor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 071af048b8a19314fb0810eb451ccdea -timeCreated: 1530084758 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/FpsText.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/FpsText.cs deleted file mode 100644 index 42ff0233..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/FpsText.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using UnityEngine; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Display FPS measurement value on UI-Text - /// http://fantom1x.blog130.fc2.com/blog-entry-307.html - /// - /// FPS 測定値を UI-Text に表示する - /// http://fantom1x.blog130.fc2.com/blog-entry-307.html - /// - public class FpsText : MonoBehaviour { - - //Inspector Settings - public Text targetText; //Display UI-Text //表示する UI-Text - public string format = "{0:F1} FPS"; //The display format (if it is 'F0', there are no decimal places) //表示フォーマット('F0' とすれば小数点以下は無くなる) - - //For measurement //測定用 - int tick = 0; //Number of frames //フレーム数 - float elapsed = 0; //Elapsed time //経過時間 - float fps = 0; //Frame rate //フレームレート - - //For work - StringBuilder sb = new StringBuilder(16); - - - // Use this for initialization - private void Awake () { - if (targetText == null) - targetText = GetComponentInChildren(); - } - - private void Start () { - - } - - // Update is called once per frame - private void Update () { - tick++; - elapsed += Time.deltaTime; - if (elapsed >= 1f) { - fps = tick / elapsed; - tick = 0; - elapsed = 0; - - if (targetText != null) - { - sb.Length = 0; - sb.AppendFormat(format, fps); - targetText.text = sb.ToString(); - } - } - } - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/FpsText.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/FpsText.cs.meta deleted file mode 100644 index 88b4981e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/FpsText.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 214f6a9df343f91429f730866cdff633 -timeCreated: 1533025412 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LanguageDropdown.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LanguageDropdown.cs deleted file mode 100644 index 7f878b35..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LanguageDropdown.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Assign all SystemLanguage to Dropdown and functions - /// - public class LanguageDropdown : MonoBehaviour - { - //Inspector Settings - public Dropdown targetDropdown; //Assign target - public bool addAllLanguages = true; //Add all SystemLanguage - - [SerializeField] private SystemLanguage defaultLanguage = SystemLanguage.Unknown; //When setting the default - public bool selectDefaultOnStart = false; //When setting the default, search the index (note that 'OnValueChanged' will occur) - - - //Assign all SystemLanguage to Dropdown. - private void AddAllSystemLanguageToDropdown() - { - if (targetDropdown == null) - return; - - List prev = targetDropdown.options.Select(e => e.text).ToList(); - HashSet set = new HashSet(prev); - - List list = Enum.GetNames(typeof(SystemLanguage)).ToList(); - List add = new List(); - foreach (var item in list) - { - if (!set.Contains(item)) - add.Add(item); //add unique - set.Add(item); - } - - if (add.Count > 0) - targetDropdown.AddOptions(add); - } - - //Search index from character string. - public int FindIndex(string lang, bool ignoreCase = true) - { - if (targetDropdown == null) - return -1; - - if (ignoreCase) - lang = lang.ToLower(); - - for (int i = 0; i < targetDropdown.options.Count; i++) - { - string cap = targetDropdown.options[i].text; - if (ignoreCase) - cap = cap.ToLower(); - if (cap == lang) - return i; - } - return -1; //not found - } - - //Search index from SystemLanguage. - public int FindIndex(SystemLanguage lang) - { - return FindIndex(lang.ToString()); - } - - //Change language with index - public int SelectedIndex { - get { - if (targetDropdown != null) - return targetDropdown.value; - return -1; - } - set { - if (targetDropdown != null) - return; - if (0 <= value && value < targetDropdown.options.Count) - targetDropdown.value = value; //'OnValueChanged' event occurs - } - } - - //Change language with string - public int SetLanguage(string lang, bool ignoreCase = true) - { - int idx = FindIndex(lang, ignoreCase); - if (idx >= 0) - { - targetDropdown.value = idx; //'OnValueChanged' event occurs - return idx; - } - return -1; - } - - //Change language with SystemLanguage - public int SetLanguage(SystemLanguage lang) - { - return SetLanguage(lang.ToString()); - } - - //Get the text of the currently selected language - public string CaptionText { - get { - return (targetDropdown != null) ? targetDropdown.captionText.text : ""; - } - } - - //Check if it is the currently selected language in the string - public bool IsSelectedLanguage(string lang, bool ignoreCase = true) - { - if (targetDropdown == null) - return false; - - string cap = targetDropdown.captionText.text; - if (ignoreCase) - { - lang = lang.ToLower(); - cap = cap.ToLower(); - } - return (lang == cap); - } - - //Check if it is the currently selected language in SystemLanguage - public bool IsSelectedLanguage(SystemLanguage lang) - { - return IsSelectedLanguage(lang.ToString()); - } - - - - // Use this for initialization - private void Start() - { - if (addAllLanguages) - AddAllSystemLanguageToDropdown(); - - if (selectDefaultOnStart) - SetLanguage(defaultLanguage); - } - - // Update is called once per frame - //private void Update() - //{ - - //} - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LanguageDropdown.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LanguageDropdown.cs.meta deleted file mode 100644 index b7bce375..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LanguageDropdown.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ac79fd001db8ab64091f9445a2e64434 -timeCreated: 1525083011 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LocalizeText.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LocalizeText.cs deleted file mode 100644 index 17c28d27..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LocalizeText.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Localize Text (For UI-Text) - /// - /// Apply LocalizeString to UI-Text. - ///・Ignored if languages are not found (= remain as original text). - ///·Ignored if font size is 0 (= remains as original size). - ///(*) Localization is done only once at startup. It does not apply to dynamically modified character strings (Activated by registering 'LocalizeStringResource' in inspector). - /// - /// - /// ローカライズされたテキストを取得して、UI の Text に代入する。 - ///・言語が見つからない場合は無視される(=元のままとなる)。 - ///・フォントサイズが 0 になっている場合は無視される(=元のままとなる)。 - ///※ローカライズは起動時に一度だけ行われる。動的に変更した文字列には適用されないので注意(LocalizeStringResource をインスペクタで登録することで有効になる)。 - /// - public class LocalizeText : LocalizableBehaviour, ILocalizable - { - //Inspector Settings - public Text targetText; //Target UI text - public LocalizeString localize; //Localized text data - - [Serializable] - public enum ResourceType - { - Local, //use local value 'LocalizeString' - Resource, //use value from 'LocalizeStringResource' linked with ID. - } - public ResourceType resourceType = ResourceType.Local; - - //Localize resource ID data - [Serializable] - public class LocalizeData - { - public LocalizeStringResource localizeResource; - public string textID = "text"; - } - public LocalizeData localizeData; - -#region Properties and Local values Section - - //Get text from LocalizeString and replace. - //LocalizeStringからテキストを取得し、置き換える。 - private void ApplyLocalizeToText(Text targetText, SystemLanguage language = SystemLanguage.Unknown) - { - if (targetText == null) - return; - - string str = ""; - int fontSize = 0; - switch (resourceType) - { - case ResourceType.Local: - if (localize != null) - { - str = localize.TextByLanguage(language); - fontSize = localize.FontSizeByLanguage(language); - } - break; - - case ResourceType.Resource: - if (localizeData.localizeResource != null) - { - LocalizeString loc = localizeData.localizeResource[localizeData.textID]; - if (loc != null) //ID is found - { - str = loc.TextByLanguage(language); - fontSize = loc.FontSizeByLanguage(language); - } - } - break; - } - - if (!string.IsNullOrEmpty(str)) - { - targetText.text = str; - if (fontSize > 0) - targetText.fontSize = fontSize; - } - } - - //Apply (reset) localized string - public void ApplyLocalize() - { - ApplyLocalizeToText(targetText); - } - - //Specify language and apply (update) localized string - public override void ApplyLocalize(SystemLanguage language) - { - ApplyLocalizeToText(targetText, language); - } - -#endregion - - // Use this for initialization - private void Awake() - { - ApplyLocalize(); - } - - private void Start() - { - - } - - // Update is called once per frame - //private void Update() - //{ - - //} - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LocalizeText.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LocalizeText.cs.meta deleted file mode 100644 index c8a4962c..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/LocalizeText.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d028741da3cf90b40b42b0c9480c51e8 -timeCreated: 1523592027 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ProgressImageFill.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ProgressImageFill.cs deleted file mode 100644 index c8e69192..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ProgressImageFill.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Use Image.fillAmount as progress - /// - /// Image.fillAmount を進捗として操作する - /// - public class ProgressImageFill : MonoBehaviour - { - [Range(0, 1)] public float preAmount = 0; //fillAmount on startup/reset //起動/リセット時の fillAmount - [Range(0, 1)] public float startAmount = 0; //fillAmount at start of progress //進捗開始時の fillAmount - [Range(0, 1)] public float completeAmount = 1; //fillAmount at completion of progress //進捗完了時の fillAmount - public bool delayedResetOnComplete = true; //Call delayed reset on completion //完了時に遅延リセットを実行 - public float resetDelay = 0.1f; //Delayed reset time //遅延リセットの時間 - - public Image fillImage; //Image for operate fillAmount //fillAmount を操作する Image - - - // Use this for initialization - private void Start() - { - if (fillImage != null) - fillImage.fillAmount = preAmount; - } - - // Update is called once per frame - //private void Update() - //{ - - //} - - public void OnStart() - { - if (fillImage != null) - fillImage.fillAmount = startAmount; - } - - public void OnProgress(float amount) - { - if (fillImage != null) - fillImage.fillAmount = amount; - } - - public void OnComplete() - { - if (fillImage != null) - fillImage.fillAmount = completeAmount; - - if (delayedResetOnComplete) - Invoke("OnReset", resetDelay); - } - - public void OnReset() - { - if (fillImage != null) - fillImage.fillAmount = preAmount; - } - } -} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ProgressImageFill.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ProgressImageFill.cs.meta deleted file mode 100644 index f37547d9..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ProgressImageFill.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f4949681639d7b04e99f8edda3a321b6 -timeCreated: 1515314860 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleButton.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleButton.cs deleted file mode 100644 index fe2e18b5..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleButton.cs +++ /dev/null @@ -1,61 +0,0 @@ -using UnityEngine.UI; - -namespace FantomLib -{ - /// - /// Switch the display of the some buttons. - ///·Mainly used for on / off switching. - /// - /// いくつかのボタンの表示を切り替える - ///・主にオン/オフ切り替えなどに用いる。 - /// - public class ToggleButton : ToggleObject { - - public Button targetButton; //Mainly switch images of targetGraphic - - public Image onImage; //Object to display when isOn = true - public Image offImage; //Object to display when isOn = false - - public Image[] images; //Object to display with index - -#region Properties and Local values Section - - //'ON object' On/Off - protected override void SetOnObjectVisible(bool visible) - { - if (visible && targetButton != null && onImage != null) - targetButton.targetGraphic = onImage; - - base.SetOnObjectVisible(visible); - } - - //'OFF object' On/Off - protected override void SetOffObjectVisible(bool visible) - { - if (visible && targetButton != null && offImage != null) - targetButton.targetGraphic = offImage; - - base.SetOffObjectVisible(visible); - } - - //'objects' visibility with index - protected override void SetObjectsVisible(int idx) - { - if (targetButton != null && images != null - && idx < images.Length && images[idx] != null) - { - targetButton.targetGraphic = images[idx]; - } - - base.SetObjectsVisible(idx); - } - -#endregion - - // Use this for initialization - protected new void Start () { - base.Start(); - } - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleButton.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleButton.cs.meta deleted file mode 100644 index 552bb8f4..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleButton.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0d6822d120ee83c459bac2d0f69243f9 -timeCreated: 1530088812 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleObject.cs b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleObject.cs deleted file mode 100644 index c81baf44..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleObject.cs +++ /dev/null @@ -1,144 +0,0 @@ -using System; -using UnityEngine; -using UnityEngine.Events; - -namespace FantomLib -{ - /// - /// Switch the display of the some objects. - ///·Mainly used for on / off switching. - /// - /// いくつかのオブジェクトの表示を切り替える - ///・主にオン/オフ切り替えなどに用いる。 - /// - public class ToggleObject : MonoBehaviour { - - [Serializable] - public enum ToggleType - { - OnOff, //onObject or offObject - Index, //objects - } - [SerializeField] protected ToggleType toggleType = ToggleType.OnOff; - - [SerializeField] protected bool isOn = true; //Toggle visible on/off - - public GameObject onObject; //Object to display when isOn = true - public GameObject offObject; //Object to display when isOn = false - - [SerializeField] protected int index = 0; //Index of the displayed object - public GameObject[] objects; //Object to display with index - - //Callbacks - [Serializable] public class ToggleHandler : UnityEvent { } //isOn - public ToggleHandler OnToggleChanged; - - [Serializable] public class ToggleIndexHandler : UnityEvent { } //indx - public ToggleIndexHandler OnToggleIndexChanged; - -#region Properties and Local values Section - - //Set On/Off - //・If there is a change, 'OnToggleChanged' event callback will occur. - public bool IsOn { - get { return isOn; } - set { - if (isOn != value) - { - isOn = value; - UpdateVisible(); - - if (OnToggleChanged != null) - OnToggleChanged.Invoke(isOn); - } - } - } - - //Set index - //・If there is a change, 'OnToggleIndexChanged' event callback will occur. - public int Index { - get { return index; } - set { - if (index != value) - { - index = value; - UpdateVisible(); - - if (OnToggleIndexChanged != null) - OnToggleIndexChanged.Invoke(index); - } - } - } - - - //Flip On/Off or next Index - //・'OnToggleChanged' event callback will occur. - public void Toggle() - { - switch (toggleType) - { - case ToggleType.OnOff: - IsOn = !IsOn; - break; - case ToggleType.Index: - Index = (int)Mathf.Repeat(index + 1, objects.Length); - break; - } - } - - - //Update the UI visible status. - protected virtual void UpdateVisible() - { - switch (toggleType) - { - case ToggleType.OnOff: - SetOnObjectVisible(isOn); - SetOffObjectVisible(!isOn); - break; - case ToggleType.Index: - SetObjectsVisible(index); - break; - } - } - - //'ON object' On/Off - protected virtual void SetOnObjectVisible(bool visible) - { - if (onObject != null) - onObject.SetActive(visible); - } - - //'OFF object' On/Off - protected virtual void SetOffObjectVisible(bool visible) - { - if (offObject != null) - offObject.SetActive(visible); - } - - //'objects' visibility with index - protected virtual void SetObjectsVisible(int idx) - { - if (objects == null || objects.Length == 0) - return; - - for (int i = 0; i < objects.Length; i++) - objects[i].SetActive(i == index); - } - -#endregion - - // Use this for initialization - protected void Start() - { - UpdateVisible(); - } - - // Update is called once per frame - //protected void Update() - //{ - - //} - - } -} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleObject.cs.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleObject.cs.meta deleted file mode 100644 index e83d1e60..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/UI/ToggleObject.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ac8f20e5930bb434b82a99bcc31e7164 -timeCreated: 1530025970 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds.meta deleted file mode 100644 index f6ac5481..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 94b5e34d05dd1bb4898bf3c4cecff73c -folderAsset: yes -timeCreated: 1511235526 -licenseType: Store -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds/GameMixer.mixer b/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds/GameMixer.mixer deleted file mode 100644 index 6691ddb3..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds/GameMixer.mixer +++ /dev/null @@ -1,232 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!241 &24100000 -AudioMixerController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: GameMixer - m_OutputGroup: {fileID: 0} - m_MasterGroup: {fileID: 24300002} - m_Snapshots: - - {fileID: 24500006} - - {fileID: 245541096709322278} - m_StartSnapshot: {fileID: 24500006} - m_SuspendThreshold: -80 - m_EnableSuspend: 1 - m_UpdateMode: 0 - m_ExposedParameters: - - guid: 12b439373fa7ea840a097ce02c3acfe8 - name: bgm - - guid: 07752acbf1ed4dd449c9a0f7ebc2589d - name: main - - guid: 7e5a792c4e0ebca48aee62afebbc4269 - name: master - - guid: 8b265667432ddaf40a16a426dacfe419 - name: se - - guid: 55e81e4e9c96b884e81da06bc6e5ccb7 - name: voice - m_AudioMixerGroupViews: - - guids: - - 839a3ee37d51b4a4c8ada4002579c631 - - b11e309af2fab054c9597f9cf08e84e1 - - b054499eb3751ae468e50865a41d7724 - - e026b30d4e8b06e438b1dd5ef8529cea - - 827db2ae5cd66ce4791c88a75326d0f7 - name: View - m_CurrentViewIndex: 0 - m_TargetSnapshot: {fileID: 24500006} ---- !u!243 &24300002 -AudioMixerGroupController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Master - m_AudioMixer: {fileID: 24100000} - m_GroupID: 839a3ee37d51b4a4c8ada4002579c631 - m_Children: - - {fileID: 243563497606724916} - m_Volume: 7e5a792c4e0ebca48aee62afebbc4269 - m_Pitch: d4385f9ad8673ed4fba5e5e00650bf20 - m_Send: 00000000000000000000000000000000 - m_Effects: - - {fileID: 24400004} - m_UserColorIndex: 0 - m_Mute: 0 - m_Solo: 0 - m_BypassEffects: 0 ---- !u!244 &24400004 -AudioMixerEffectController: - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_EffectID: 710a4d57a3fae044888e4e8c5bca6d62 - m_EffectName: Attenuation - m_MixLevel: 1b0903f005c36504cab504e8fcb95d42 - m_Parameters: [] - m_SendTarget: {fileID: 0} - m_EnableWetMix: 0 - m_Bypass: 0 ---- !u!245 &24500006 -AudioMixerSnapshotController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: SnapshotOn - m_AudioMixer: {fileID: 24100000} - m_SnapshotID: 35bbfe0704a451c408753a97dd927043 - m_FloatValues: - d4385f9ad8673ed4fba5e5e00650bf20: 1 - m_TransitionOverrides: {} ---- !u!243 &243253227821054236 -AudioMixerGroupController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Se - m_AudioMixer: {fileID: 24100000} - m_GroupID: e026b30d4e8b06e438b1dd5ef8529cea - m_Children: [] - m_Volume: 8b265667432ddaf40a16a426dacfe419 - m_Pitch: 23e5b52b61c4b2a46953b07cd3476d2b - m_Send: 00000000000000000000000000000000 - m_Effects: - - {fileID: 244976270664662602} - m_UserColorIndex: 0 - m_Mute: 0 - m_Solo: 0 - m_BypassEffects: 0 ---- !u!243 &243468808771620966 -AudioMixerGroupController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Bgm - m_AudioMixer: {fileID: 24100000} - m_GroupID: b054499eb3751ae468e50865a41d7724 - m_Children: [] - m_Volume: 12b439373fa7ea840a097ce02c3acfe8 - m_Pitch: cefcdc5b720181944b10f7e15b4088c5 - m_Send: 00000000000000000000000000000000 - m_Effects: - - {fileID: 244034773469818192} - m_UserColorIndex: 0 - m_Mute: 0 - m_Solo: 0 - m_BypassEffects: 0 ---- !u!243 &243563497606724916 -AudioMixerGroupController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Main - m_AudioMixer: {fileID: 24100000} - m_GroupID: b11e309af2fab054c9597f9cf08e84e1 - m_Children: - - {fileID: 243468808771620966} - - {fileID: 243253227821054236} - - {fileID: 243716415859447672} - m_Volume: 07752acbf1ed4dd449c9a0f7ebc2589d - m_Pitch: 8c9df5a93fd166e4da07bb79a14566d7 - m_Send: 00000000000000000000000000000000 - m_Effects: - - {fileID: 244694174530584376} - m_UserColorIndex: 0 - m_Mute: 0 - m_Solo: 0 - m_BypassEffects: 0 ---- !u!243 &243716415859447672 -AudioMixerGroupController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Voice - m_AudioMixer: {fileID: 24100000} - m_GroupID: 827db2ae5cd66ce4791c88a75326d0f7 - m_Children: [] - m_Volume: 55e81e4e9c96b884e81da06bc6e5ccb7 - m_Pitch: bb96ab566afe4de41a5149b8c4a719de - m_Send: 00000000000000000000000000000000 - m_Effects: - - {fileID: 244659568810704762} - m_UserColorIndex: 0 - m_Mute: 0 - m_Solo: 0 - m_BypassEffects: 0 ---- !u!244 &244034773469818192 -AudioMixerEffectController: - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_EffectID: 2b07f4193a18a3b4681341e6b388791f - m_EffectName: Attenuation - m_MixLevel: 19fa582a09a82ec4783f3d12674b161a - m_Parameters: [] - m_SendTarget: {fileID: 0} - m_EnableWetMix: 0 - m_Bypass: 0 ---- !u!244 &244659568810704762 -AudioMixerEffectController: - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_EffectID: d6f9aa84b35535f45b94e6a94aee1bc3 - m_EffectName: Attenuation - m_MixLevel: 03ce435dfc5346e4aad92d205b9414c2 - m_Parameters: [] - m_SendTarget: {fileID: 0} - m_EnableWetMix: 0 - m_Bypass: 0 ---- !u!244 &244694174530584376 -AudioMixerEffectController: - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_EffectID: 2735b7bbf045e1e448ab50abd806b0dd - m_EffectName: Attenuation - m_MixLevel: cd9d3ee9dcff19d48a1562eadfb414aa - m_Parameters: [] - m_SendTarget: {fileID: 0} - m_EnableWetMix: 0 - m_Bypass: 0 ---- !u!244 &244976270664662602 -AudioMixerEffectController: - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_EffectID: 8162d279482ba4d4c8fca60a1bc975b3 - m_EffectName: Attenuation - m_MixLevel: 01a4cf726305af947874105b0146ab14 - m_Parameters: [] - m_SendTarget: {fileID: 0} - m_EnableWetMix: 0 - m_Bypass: 0 ---- !u!245 &245541096709322278 -AudioMixerSnapshotController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: SnapshotOff - m_AudioMixer: {fileID: 24100000} - m_SnapshotID: 176b28e233a59fb4190736cd77587878 - m_FloatValues: - 7e5a792c4e0ebca48aee62afebbc4269: -80 - m_TransitionOverrides: {} diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds/GameMixer.mixer.meta b/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds/GameMixer.mixer.meta deleted file mode 100644 index c799a86a..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Sounds/GameMixer.mixer.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: faad99234e6ed19498e6589573ee3e0c -timeCreated: 1496238437 -licenseType: Store -NativeFormatImporter: - mainObjectFileID: 24100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomPluginDemo_QR.png b/TECHMANIA/Assets/FantomPlugin/FantomPluginDemo_QR.png deleted file mode 100644 index 16dfa88c..00000000 Binary files a/TECHMANIA/Assets/FantomPlugin/FantomPluginDemo_QR.png and /dev/null differ diff --git a/TECHMANIA/Assets/FantomPlugin/FantomPluginDemo_QR.png.meta b/TECHMANIA/Assets/FantomPlugin/FantomPluginDemo_QR.png.meta deleted file mode 100644 index 129fa54e..00000000 --- a/TECHMANIA/Assets/FantomPlugin/FantomPluginDemo_QR.png.meta +++ /dev/null @@ -1,96 +0,0 @@ -fileFormatVersion: 2 -guid: 6986e7c20c9eed347944a828f2afc396 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 11 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_en.txt b/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_en.txt deleted file mode 100644 index e0eedabf..00000000 --- a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_en.txt +++ /dev/null @@ -1,217 +0,0 @@ -http://fantom1x.blog130.fc2.com/blog-entry-293.html -Android Native Dialogs and Functions Plugin -Setup & Build Manual - -・Native Plugin "fantomPlugin.aar" is required 'Minimum API Level:Android 4.2 (API 17)' or higher. - -(*) It is necessary to set it to 'Android 4.4 (API 19)' or higher in order to use 'StorageLoadTextController' and 'StorageSaveTextController' to read/write text file of storage. - -(*) In order to acquire the value of the sensor it is necessary to set it above the necessary API Level of each sensor. For details, refer to official document or comments such as sensor related method & constant values. -https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - -・Move the "Assets/FantomPlugin/Plugins/" folder just under "Assets/" like "Assets/Plugins/". This "Plugins" folder is a special folder for running the plugin at runtime. -(see) https://docs.unity3d.com/Manual/ScriptCompileOrderFolders.html - -・Rename "AndroidManifest-FullPlugin~.xml" to "AndroidManifest.xml" when receive events of Hardware Volume buttons, Speech Recognizer with dialog, open Wifi Settings, request Bluetooth enable, read/write text file on External Storage, open Gallery, register MediaScanner, acquire change event of screen rotation, acquire sensor values, confirm Device Credentials (authentication), acquire text from QR Code Scanner. - -・Depending on the function you use, Android permission is required (https://developer.android.com/guide/topics/security/permissions.html). Permission is summarized in "Assets/Plugins/Android/Permission_ReadMe.txt". Please copy the necessary permission to "AndroidManifest.xml" (It is better to delete the permission of functions not used). - -・Text To Speech is required the reading engine and voice data must be installed on the smartphone. -(see) http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech_install -(Voice data: Google Play) -https://play.google.com/store/apps/details?id=com.google.android.tts -https://play.google.com/store/apps/details?id=jp.kddilabs.n2tts (Japanese) - -・To use QR code reading, QR code scanner application of ZXing (google's open source project) must be installed on the device. If it is not installed, you will be prompted to install (it will be directed to Google Play). -(Google Play) -https://play.google.com/store/apps/details?id=com.google.zxing.client.android -(ZXing open source project) -https://github.com/zxing/zxing - -・Select "_Landscape", "_Portrait" or "_Sensor" of "AndroidManifest~.xml" according to the screen rotation attribute (screenOrientation) of the application. -(see) https://developer.android.com/guide/topics/manifest/activity-element.html#screen - -(*) Warning "Unable to find unity activity in manifest. You need to make sure orientation attribute is set to sensorPortrait manually." can be ignored if you use anything other than Unity standard Activity (UnityPlayerActivity). -(see) https://docs.unity3d.com/ja/current/Manual/AndroidUnityPlayerActivity.html - ------------------------------------------------- -■About demo - -・Rename "AndroidManifest_demo.xml" to "AndroidManifest.xml" when building the Demo. Also add the scene in "Assets/FantomPlugin/Demo/Scenes/" to 'Build Settings...' and switch to 'Android' with 'Switch Platform'. - -・For Unity 2018.1.0 to 1.6, please build "Build System" as "Internal". - -(*) In the build of Unity 2018.1.0 to 1.6, when "Build Settings" is set to "Gradle" in "Build Settings ...", it is known that the package name is not added to "AndroidManifest.xml", and a build error occurs (Unity2018.1.7 and later have been bugfixed). In that case, you can build by describing 'package="(package name of application)"' (= Edit> Project Settings> Player> Other Settings> Identification> Package Name) in the "manifest" tag of "AndroidManifest.xml" (Until Unity 2017.4.2 is added automatically). -http://fantom1x.blog130.fc2.com/#unity2018_CommandInvokationFailure_packageName - -・The toggle button "Job" (C# Job System) of "CpuTest" is available in Unity 2018.1.0 or higher. - -(*) The demo of 'GalleryPickTest' does not include the mesh of the whole sphere (360 degrees). If necessary, download 'Sphere100.fbx' from the following URL and set it to 'Sphere' of hierarchy 'GalleryPickTest (Script)'. Also, please set 'TextureMat' to the material of 'Sphere 100'. Because the whole sphere look from the inside, if you give a negative value to the scale X, you can invert the image (size as you like, Scale Factor of mesh=1000 x Scale of Transform=-1 in the demo video). Please refer to the following article for the setup method. - -(360 degrees [whole shphere] setup) -http://fantom1x.blog130.fc2.com/blog-entry-297.html -(Mesh of whole sphere: Sphere100.fbx) -http://warapuri.com/post/131599525953/ -(Demo video: Vimeo) -https://vimeo.com/255712215 - --> Plug-in demo "FantomPluginDemo_QR.png" (QR code) contains an example of setup. Please also check the operation. - ------------------------------------------------- -■Application example - -・This Plug-in functions are also used for the following applications that are actually released. -If you want to check the operation please download it from AmazonAppStore (Cardboard VR, free App). - -UnityChan Flyer (Free) -http://amzn.to/2xJ4ujS - -SapphiartChan Live Show! (Free) -http://amzn.to/2xKmZ7H - -[*] Outside of Japanese-speaking countries, it will be localized in English automatically. - - In particular, -1. Operation hardware volume control (including Bluetooth operation) → Using 'HardVolumeController'. -2. Long Press (including Bluetooth operation) to Re-center (viewpoint reset) → Using 'LongKeyInput'. -3. Display battery information → Use 'BatteryStatusController'. -4. Language localization (switching between English and Japanese) → Using 'LocalizeString', 'LocalizeStringResource', 'LocalizeText'. -etc... - -●You can also download a simple sample app on blog (from GoogleDrive). - -・UnityChan In OtakuCity (UnityChan will fly over Akihabara!) -http://fantom1x.blog130.fc2.com/blog-entry-289.html#UnityChanInOtackuityAndroid - - This is a demonstration of "EasyMusicPlayer" (simple music player, storage access function, custom dialog etc), "SmoothFollow3" (camera angle operation with fingers), "PinchInput" (pinch operation), "SwipeInput" (swipe operation). It is also becoming a coin collection game. The compatible device will be Android 4.2 or higher (you need to allow "Install application with unknown provider"). - -・UnityChan Voice Janken (UnityChan Speech Recognition Janken) [*Japanese only] -http://fantom1x.blog130.fc2.com/blog-entry-273.html#UnityChanVoiceJanken -It is a voice recognition scissors game. The compatible device will be Android 4.2 or higher (you need to allow "Install application with unknown provider"). - -・FantomPluginDemo_QR.png (QR code) - You can download the demo that you built the latest version of the plugin with apk. An example of setting up some dummy objects on the scene is also included. Please also check the operation (QR code -> Google Drive to DL). The compatible device will be Android 4.2 or higher (you need to allow "Install application with unknown provider"). - ------------------------------------------------- -■News! - -The music library including sample song is now on sale at the Asset Store! - -Seamless Loop and Short Music (FREE!) -https://www.assetstore.unity3d.com/#!/content/107732 - ------------------------------------------------- -■Update history - -(ver.1.1) -・Added PinchInput, SwipeInput, LongClickInput/LongClickEventTrigger and its demo scene (PinchSwipeTest). -・Added SmoothFollow3 (originally StandardAssets SmoothFollow) with right/left rotation angle, height and distance, and added a corresponding to pinch (PinchInput) and swipe (SwipeInput) (demo scene: used with PinchSwipeTest). -・Changed the color format conversion of 'XColor' from ColorUtility to calculation formulas(Mathf.RoundToInt()). -・Changed 'XDebug' option of lines limit. -(ver.1.2) -・Added prefab and '-Controller' script of all functions. -・Added value change callbacks to SingleChoiceDialog, MultiChoiceDialog, SwitchDialog and CustomDialog items. -・Fixed bug that XDebug's automatic newline flag (newline) was ignored. Also, cleared the text buffer (Queue) with OnDestory() when using line limit. -(ver.1.3) -・Added function to open WIFI system settings (WifiSettingController). -・Added function to make Bluetooth connection request (dialog display) (BluetoothSettingController). -・Added function to send text using Chooser application (simple text sharing function) (SendTextController). -・Added functions to read/write text files (StorageLoadTextController/StorageSaveTextController) using the Storage Access Framework (API 19 or higher). -・Added function to open the gallery application and get the path of the image file (GalleryPickController) (also load texture and save screenshot). -・Added function to register (scan) file path to MediaScanner (MediaScannerController). -(ver.1.4) -・Added function to vibrate the Vibrator (VibratorController). -・Added vibrator function to notification (NotificationController). -・Changed all extended editor scripts with 'SerializedProperty' (as the setting was sometimes not saved in the editor). -(ver.1.5) -・Added function to get (listening) status of battery temperature, health(overheat, good, etc.), remaining capacity, connection status (BatteryStatusController). -(ver.1.6) -・Added function to get (listening) change status of device orientation (OrientationStatusController). -・Added function to get (listening) sensor values (~SensorController). -(ver.1.7) -・Added prefabs and demo to open various system settings screen. -・Added 'ActionType.ActionOnly' constant(enum) and 'Action' input support function to 'AndroidActionController'. -・Added some special ActionControllers such as 'MailerController', 'DialerController', 'ApplicationDetailsSettingsController' and etc. -(ver.1.8) -・Added function to use device credentials (authentication) [*fingerprint, pattern, PIN, password, etc. depending on user setting]. -・Added function to get API Level (int type) of the running device. -(ver.1.9) -・Added function to check permission granted (AndroidPlugin.CheckPermission(), ~Controller.IsPermissionGranted). -・Added support check (IsSupported~) and permission granted check (IsPermissionGranted) to several "~Controller"[*1] at startup (Start()). When it is not possible, an error message is returned to 'OnError' callback. -[*1]SpeechRecognizerDialogController, BluetoothSettingController, SpeechRecognizerController, VibratorController, HeartRateController, All other sensors (IsSupportedSensor only). -(ver.1.10) -・Added function to launch QR Code (Bar Code) Scanner and acquire text (ShowQRCodeScanner()). -・Added general constants of sensor values (SensorConstant). -(ver.1.11) -・Added multiple parameter overload to StartAction(), StartActionWithChooser(), StartActionURI(). 'AndroidActionController' also supports multiple parameters. -・Changed 'MailerController' to multiple parameter actions (because more mailers can handle it). -・Added Market (Google Play) search function (MarketSearchController). -・Added function to acquire application installation check (IsExistApplication()), application name (GetApplicationName()), application version number (GetVersionCode()), application version name (GetVersionName()). -(ver.1.12) -・Added function (LocalizeStringResource) to manage resource localization data by ID. -・Introduced the string localization (LocalizeString) in the dialog, etc. ID field was added for resource management, and some specifications were changed [*2] to correspond to the resource management function. -・Added controller for application installation check (AppInstallCheckController).・Added a permission check controller (PermissionCheckController). -・Add long key press (Back key etc.) input judgment script (LongKeyInput) (added to PinchSwipeTest demo). -[*2]Change language search to 'system language -> default setting language' only. In order to ignore the localization (= existing as it is) when the device language can not be found. Also change the font size default to 0 (= existing as it is) (* It does not change in the example of demo use, but please be careful if you are writing your own script.) Default language setting properly If so, the behavior does not change). -(ver.1.13) -・Added function to attach images to text send (SendTextController) and mailer (MailerController). -・Screen shot part only create a library (Screenshot) independently from demo (※ old demo remains as it is). -・Added editor tools insert/remove items, ID duplication, empty check editor tool in LocalizeStringResource (on inspector). -・Added 'LocalizeString' argument overload to the dynamic text setting method of some controllers. -・Added function to change localization language (LocalizeLanguageChanger). -・Added function to change language locale to speech recognization (SpeechRecognizerController, SpeechRecognizeDialogrController) and text reading (TextToSpeechController). -(ver.1.14) -・Added cancel callback to 'SingleChoiceDailogController', 'MultiChoiceDialogController', 'SliderDialogController', 'SwitchDialogController', 'CustomDialogController'. -・Changed when cancel button was pressed with 'VolumeSliderDialogController', the volume was modified to return to before change. -・Added checkbox (CheckItem) to the item type of the Custom Dialog. -・Added voltage to battery information (atteryInfo.voltage). -・Fixed 'LocalizeString.FontSizeByLanguage()' language search to 'system language -> default language' (to match 'LocalizeString.TextByLanguage()'). -・Added simple language display switching function for confirming editor to 'LocalizeLanguageChanger' (.debugLanguage, .debugApplyOnStart). -・Changed the equal interval arrangement tool such as UI (ObjectArrangeTool) [support tool] to a reorderable list, and also added function to drag & drop and parallel move of position. -(ver.1.15) -・Added function (GalleyPickController) so that you can also get movie information (path etc) from the gallery. -・Added "size" (file size), "mimeType" (MIME Type) and "orientation" (rotation angle) fields to ImageInfo (image information acquisition class). -(ver.1.16) -・Added function to acquire image, audio, video, other file and folder information with the Storage Access Framework (StorageOpenImageController, StorageOpenAudioController, StorageOpenVideoController, StorageOpenFileController, StorageOpenFolderControlle). -・Added function of save file (write access) by the Storage Access Framework (StorageSaveFileController). -・"UriWithMimeType" (action to URI with MIME type designation) added to AndroidActionController. And also added a demonstration to open various files to ExternalStorageTest as a sample. -・Added simple music player sample script (EasyMusicPlayer) and demo scene (MusicPlayerExample). -(ver.1.17) -・Added function to request permission (+ show explanation of the rationale dialog). Added "requestWhenNotGranted" option to 'PermissionCheckController'. -・Change sensor's support check function to real time (no cache) with sensor controller base script 'SensorControllerBase'. -(ver.1.18) -・Added status acquisition function of CPU utilization (CpuRateController). Also added a script "CpuRateBar" (single CPU) which displays the CPU utilization as a bar and "CpuRateBarView" (multiple CPUs) to display in a list. -・Added script "FpsText.cs" to display FPS (Frame Per Second) on UI-Text. Also added that prefab "FpsMonitor". -・Add "XGizmo" to display simple gizmos of sphere, box, line, mesh. -・Added field (targetText) to read and write directly to UI-Text to StorageLoadTextController and StorageSaveTextController. -・Added CurrentIndex and IsPlaying properties to EasyMusicPlayer. -・The storage open function when EasyMusicPlayer's song was added was included in the same class (it can be added directly from the previous StorageOpenAudio Controller). -・Change the item "Use Name" in "Scene Specification" and "Scene Name / Scene Build Index" in 'SceneLoadWithKey' Inspector (internally keeping the bool value). -・Fixed invalid code paths other than Android platform (not affected when building with Android). - - -(*)The latest version can be downloaded from GoogleDrive on blog (*Japanese version only). -http://fantom1x.blog130.fc2.com/blog-entry-273.html - ------------------------------------------------- -■License of use library. etc - -This plugin includes deliverables distributed under the license of Apache License, Version 2.0. -http://www.apache.org/licenses/LICENSE-2.0 - -ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] (QR Code Scan) -https://github.com/zxing/zxing - ------------------------------------------------- -Let's enjoy creative life! - -By Fantom - -[Blog] http://fantom1x.blog130.fc2.com/ -[Unity Connect] https://connect.unity.com/u/5abd008032b30600256e8ca9 -[Twitter] https://twitter.com/fantom_1x -[SoundCloud] https://soundcloud.com/user-751508071 -[Picotune] http://picotune.me/?@Fantom -[Monappy] https://monappy.jp/u/Fantom -[E-Mail] fantom_1x@yahoo.co.jp - diff --git a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_en.txt.meta b/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_en.txt.meta deleted file mode 100644 index ee3c1c8d..00000000 --- a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_en.txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b66a6fc494783234baa3674aa9943d1d -timeCreated: 1512397184 -licenseType: Store -TextScriptImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_jp.txt b/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_jp.txt deleted file mode 100644 index b0701a88..00000000 --- a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_jp.txt +++ /dev/null @@ -1,218 +0,0 @@ -http://fantom1x.blog130.fc2.com/blog-entry-273.html -http://fantom1x.blog130.fc2.com/blog-entry-293.html -Android Native Dialogs and Functions Plugin -セットアップ&ビルド マニュアル - -・ネイティブプラグイン "fantomPlugin.aar" は「Minimum API Level:Android 4.2 (API 17)」以上で使用して下さい。 - -(※) ストレージのテキストファイル読み書き機能「StorageLoadTextController」「StorageSaveTextController」を利用するには「Android 4.4 (API 19)」以上にする必要があります。 - -(※) センサーの値を取得するには各センサーの要求 API Level 以上にする必要があります。詳細は公式のドキュメントまたは、センサー関連メソッド・定数などのコメントを参照して下さい。 -https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ACCELEROMETER - -・"Assets/FantomPlugin/Plugins/" フォルダを "Assets/Plugins/" のように "Assets/" 直下に移動して下さい。この「Plugins」フォルダはランタイムでプラグインを稼働させるための特殊なフォルダとなります。 -(参照) https://docs.unity3d.com/ja/current/Manual/ScriptCompileOrderFolders.html - -・ハードウェア音量キーのイベント取得、ダイアログ付きの音声認識、WIFIの設定を開く、Bluetooth接続要求(ダイアログ)、ストレージのテキストファイルの読み書き、ギャラリーの画像パス取得、MediaScannerの更新機能、バッテリーのステータス取得、画面回転の変化取得、センサーの値取得、デバイス認証、QRコードスキャナからのテキスト取得を利用する場合には "AndroidManifest-FullPlugin~.xml" を "AndroidManifest.xml" にリネームして使用して下さい。 - -・使用する機能によっては Android のパーミッションが必要になります(https://developer.android.com/guide/topics/security/permissions.html)。パーミッションについては「Assets/Plugins/Android/Permission_ReadMe.txt」にまとめてあります。必要なパーミッションを「AndroidManifest.xml」にコピペして下さい(利用しない機能のパーミッションは削除する方が好ましいです)。 - -・テキスト読み上げを使用するには、端末に読み上げエンジンと音声データがインストールされている必要があります。 -(テキスト読み上げのインストール) -http://fantom1x.blog130.fc2.com/blog-entry-275.html#fantomPlugin_TextToSpeech_install -(音声データ:Google Play) -https://play.google.com/store/apps/details?id=com.google.android.tts -https://play.google.com/store/apps/details?id=jp.kddilabs.n2tts - -・QRコード読み取りを利用するには端末に ZXing(googleのオープンソースプロジェクト)のQRコードスキャナアプリがインストールされている必要があります。インストールされていない場合、インストールを促すダイアログが表示されます(Google Play へ誘導されます)。 -(Google Play) -https://play.google.com/store/apps/details?id=com.google.zxing.client.android -(ZXing オープンソースプロジェクト) -https://github.com/zxing/zxing - -・"AndroidManifest~.xml"の"_Landscape" または "_Portrait","_Sensor" はアプリの画面回転の属性(screenOrientation)に合わせて選択して下さい。 -(参照) https://developer.android.com/guide/topics/manifest/activity-element.html#screen - -(※) 警告「Unable to find unity activity in manifest. You need to make sure orientation attribute is set to sensorPortrait manually.」は Unityの標準のアクティビティ(UnityPlayerActivity)以外を使うと出るので無視して下さい。 - ------------------------------------------------- -■デモについて - -・デモをビルドするときは "AndroidManifest_demo.xml" を "AndroidManifest.xml" にリネームして使って下さい。また「Build Settings...」に「Assets/FantomPlugin/Demo/Scenes/」にあるシーンを追加して、「Switch Platform」で「Android」にしてビルドして下さい。 - -・Unity2018.1.0~1.6では「Build System」を「Internal」にしてビルドして下さい。 - -※Unity2018.1.0~1.6でのビルドにおいて、「Build Settings...」で「Build System」を「Gradle」にした場合、「AndroidManifest.xml」にパッケージ名が追加されず、ビルドエラーが出ることが確認されてます(Unity2018.1.7以降はバグFixされてます)。その場合、「AndroidManifest.xml」の「manifest」タグに「package="(アプリのパッケージ名)"」(= Edit>Project Settings>Player>Other Settings>Identification>Package Name)を記述すればビルドできます(Unity2017.4.2までは自動で追加されます)。 -http://fantom1x.blog130.fc2.com/#unity2018_CommandInvokationFailure_packageName - -・「CpuTest」のトグルボタン「Job」(C#Job System)は Unity2018.1.0 以降で使用可能になります。 - -※「GalleryPickTest」のデモには全天球のメッシュ(360 degrees)は含まれてません。必要であれば以下のURLから「Sphere100.fbx」ダウンロードし、ヒエラルキーの「GalleryPickTest(Script)」の「Sphere」にセットして下さい。また「Sphere100」の Material に「TextureMat」をセットして下さい。全天球は内側から覗く感じになるので、スケールの X にマイナス値を与えると画像を反転できます(大きさは任意。デモビデオではメッシュの Scale Factor=1000×Transform の Scale=-1)。セットアップ方法は以下の記事を参考にして下さい。 - -(360度「全天球」のセットアップ) -http://fantom1x.blog130.fc2.com/blog-entry-297.html -(全天球メッシュ:Sphere100.fbx) -http://warapuri.com/post/131599525953/ -(Demo video:Vimeo) -https://vimeo.com/255712215 - -→ プラグインのデモ「FantomPluginDemo_QR.png」(QRコード)にはセットアップした例が入っています。動作確認にもどうぞ。 - ------------------------------------------------- -■アプリ利用例 - -・実際にリリースされている以下のアプリにもプラグインの機能を利用しています。動作確認してみたい方は AmazonAppStore からダウンロードして下さい(Cardboard VR, 無料アプリ)。 - -UnityChan Flyer (Free) -http://amzn.to/2xJ4ujS - -SapphiartChan Live Show! (Free) -http://amzn.to/2xKmZ7H - -※日本語圏以外では、自動で英語にローカライズされます。 - - 具体的には、 -1. ハードウェア音量操作(Bluetooth操作も含む)→ HardVolumeController を利用。 -2. 長押し(Bluetooth操作も含む)でリセンター(視点リセット)→ LongKeyInput を利用。 -3. バッテリー情報の表示 → BatteryStatusController を利用。 -4. 言語ローカライズ(英語、日本語の切替)→ LocalizeString, LocalizeStringResource, LocalizeText を利用。 -など… - -●ブログにて簡単なサンプルアプリもダウンロードできます(GoogleDriveから)。 - -・UnityChan In OtakuCity(ユニティちゃんがアキバ上空を飛ぶ!) -http://fantom1x.blog130.fc2.com/blog-entry-289.html#UnityChanInOtackuityAndroid - -「EasyMusicPlayer」(簡易音楽プレイヤー、ストレージアクセス機能、カスタムダイアログ等)、「SmoothFollow3」(指でカメラアングル操作)、「PinchInput」(ピンチ操作)、「SwipeInput」(スワイプ操作)のデモです。またコイン集めゲームにもなっています。対応端末は Android 4.2 以上になります(「提供元不明のアプリをインストール」を許可する必要があります)。 - -・UnityChan Voice Janken(ユニティちゃんと音声認識じゃんけん)[*Japanese only] -http://fantom1x.blog130.fc2.com/blog-entry-273.html#UnityChanVoiceJanken -音声認識じゃんけんゲームです。対応端末は Android 4.2 以上になります(「提供元不明のアプリをインストール」を許可する必要があります)。 - -・FantomPluginDemo_QR.png(QRコード) - プラグインの最新版をビルドしたデモを apk でダウンロードできます。シーン上のいくつかのダミーオブジェクトをセットアップした例も入っています。動作確認にもどうぞ(QRコード→Google Drive からDL)。対応端末は Android 4.2 以上になります(「提供元不明のアプリをインストール」を許可する必要があります)。 - ------------------------------------------------- -■News! - -アセットストアにてサンプルの楽曲を含む音楽ライブラリが公開中! - -Seamless Loop and Short Music (FREE!) -https://www.assetstore.unity3d.com/#!/content/107732 - ------------------------------------------------- -■更新履歴 - -(ver.1.1) -・ピンチ(PinchInput),スワイプ(SwipeInput),ロングタップ(LongClickInput/LongClickEventTrigger)とそのデモシーン(PinchSwipeTest)を追加。 -・SmoothFollow3(元は StandardAssets の SmoothFollow)に左右回転アングルと高さと距離の遠近機能を追加し、ピンチ(PinchInput)やスワイプ(SwipeInput)にも対応させた改造版(SmoothFollow3)を追加(デモシーン:PinchSwipeTest で使用)。 -・XColor の色形式変換を ColorUtility から計算式(Mathf.RoundToInt())に変更。 -・XDebug に行数制限を追加。 -(ver.1.2) -・おおよそ全ての機能のプレファブ&「~Controller」スクリプトを追加。 -・単一選択(SingleChoiceDialog)、複数選択(MultiChoiceDialog)、スイッチダイアログ(SwitchDialog)、カスタムダイアログのアイテムに値変化のコールバックを追加。 -・XDebug の自動改行フラグ(newline)が無視されていた不具合を修正。また、行数制限を使用しているときに、OnDestory() でテキストのバッファ(Queue)をクリアするようにした。 -(ver.1.3) -・WIFIのシステム設定を開く機能(WifiSettingController)を追加。 -・Bluetoothの接続要求(ダイアログ表示)をする機能(BluetoothSettingController)を追加。 -・アプリChooserを利用してテキストを送信する(簡易的なテキストのシェア)(SendTextController)機能を追加。 -・ストレージアクセス機能(API19以上)を利用して、テキストファイルの保存と読み込み機能(StorageLoadTextController/StorageSaveTextController)を追加。 -・ギャラリーアプリを起動して、画像ファイルのパスを取得する機能(GalleryPickController)を追加(サンプルとしてテクスチャへのロードとスクリーンショットを追加)。 -・ファイルパスをMediaScannerに登録(更新)する機能(MediaScannerController)を追加。 -(ver.1.4) -・バイブレーターの機能を追加(VibratorController)。 -・通知(NotificationController)にもバイブレーター機能を追加。 -・全ての拡張エディタスクリプトを「SerializedProperty」に置き換え(エディタ上で設定が保存されないことがあったので)。 -(ver.1.5) -・バッテリーの温度、コンディション(オーバーヒート、良好、等)、残量、接続状態のステータス取得(リスニング)を追加(BatteryStatusController)。 -(ver.1.6) -・画面回転の変化イベント取得(OrientationStatusController)を追加。 -・センサーの値の取得機能(~SensorController)を追加。 -(ver.1.7) -・各システム設定画面を開くプレファブとデモを追加。 -・AndroidActionControllerに「ActionType.ActionOnly」定数(enum)とアクションの入力支援機能を追加。 -・MailerController, DialerController, ApplicationDetailsSettingsController 等、専用のアクションコントローラをいくつか追加。 -(ver.1.8) -・デバイス認証(指紋・パターン・PIN・パスワード等。ユーザーの設定による)の利用機能を追加。 -・実行中デバイスの API Level(int型)の取得機能を追加。 -(ver.1.9) -・パーミッション付与のチェック(AndroidPlugin.CheckPermission(), ~Controller.IsPermissionGranted)機能を追加。 -・いくつかの「~Controller」[*1] に、起動時(Start())にサポートのチェック(IsSupported~)とパーミッションの付与チェック(IsPermissionGranted)を追加。不可のとき「OnError」コールバックにエラーメッセージを返すようにした。 -[*1]SpeechRecognizerDialogController, BluetoothSettingController, SpeechRecognizerController, VibratorController, HeartRateController, その他全てのセンサー(IsSupportedSensorのみ) -(ver.1.10) -・QRコード(バーコード)スキャナを起動しテキストを取得する(ShowQRCodeScanner())機能を追加。 -・センサー値の一般的な定数(SensorConstant)を追加。 -(ver.1.11) -・StartAction(), StartActionWithChooser(), StartActionURI() に複数パラメタオーバーロードを追加。AndroidActionController も複数パラメタ対応。 -・MailerController を複数パラメタアクションに変更(より多くのメーラーが対応できるため)。 -・マーケット(Google Play)検索機能を追加(MarketSearchController)。 -・アプリのインストールチェック(IsExistApplication())、アプリ名(GetApplicationName())、アプリバージョン番号(GetVersionCode())、アプリバージョン名(GetVersionName())の取得機能を追加。 -(ver.1.12) -・文字列のローカライズデータをIDでリソース管理する機能(LocalizeStringResource)を追加。 -・文字列ローカライズ(LocalizeString)をダイアログ等に導入。リソース管理用にIDフィールドを追加。リソース管理用機能に対応させるため、一部仕様を変更した[*2]。 -・アプリのインストールチェックのコントローラ(AppInstallCheckController)を追加。 -・パーミッションチェックのコントローラ(PermissionCheckController)を追加。 -・キーの長押し(Backキー等)入力判定スクリプト(LongKeyInput)を追加(PinchSwipeTestデモに追加)。 -[*2]言語検索を「システム言語→デフォルト設定言語」のみに変更。端末の言語が見つからないとき、ローカライズを無視(=既存のまま)させるため。またフォントサイズのデフォルトも 0(=既存のまま)に変更(※デモの使用例では何ら変わりませんが、独自にスクリプトを組んでいる場合は注意して下さい。適切にデフォルト言語設定がされていれば、挙動に変わりはありません)。 -(ver.1.13) -・テキスト送信(SendTextController)、メーラー送信(MailerController)に画像を添付する機能を追加。 -・スクリーンショット部分のみデモから独立して、ライブラリ(Screenshot)として追加(※旧デモはそのまま)。 -・LocalizeStringResource にアイテムの追加・削除、IDの重複・空のチェックのエディタツール(インスペクタ上)を追加。 -・いくつかのコントローラの動的テキスト設定メソッド(.Show(),.Send() 等)に「LocalizeString」引数のオーバーロードを追加。 -・ローカライズの言語変更機能(LocalizeLanguageChanger)を追加。 -・音声認識(SpeechRecognizerController, SpeechRecognizeDialogrController)とテキスト読み上げ(TextToSpeechController)に言語ロケール指定機能を追加。 -(ver.1.14) -・単一選択ダイアログ、複数選択ダイアログ、スライダーダイアログ、スイッチダイアログ、カスタムダイアログにキャンセルコールバックを追加(SingleChoiceDailogController, MultiChoiceDialogController, SliderDialogController, SwitchDialogController, CustomDialogController)。 -・音量スライダーダイアログ(VolumeSliderDialogController)でキャンセルボタンが押されたとき、音量が変更前に戻るように修正。 -・カスタムダイアログのアイテム種類にチェックボックス(CheckItem)を追加。 -・バッテリー情報に電圧を追加(BatteryInfo.voltage)。 -・LocalizeString.FontSizeByLanguage() の言語検索を「システム言語→デフォルト言語」に修正(LocalizeString.TextByLanguage() と合わせるため)。 -・LocalizeLanguageChanger にエディタ確認用の簡易言語表示切替機能を追加(.debugLanguage, .debugApplyOnStart)。 -・UI等の等間隔整列ツール(ObjectArrangeTool)[補助ツール] を並べ替えリストに変更し、ドラッグ&ドロップや平行移動機能も追加。 -(ver.1.15) -・ギャラリーから動画情報(パス等)も取得できるように機能追加(GalleyPickController)。 -・ImageInfo(画像情報取得用クラス)に「size」(ファイルサイズ)、「mimeType」(MIME Type) 、「orientation」(画像回転角度) のフィールドを追加。 -(ver.1.16) -・ストレージアクセス機能にて画像、音声、動画、それ以外のファイル、フォルダの情報を取得する機能を追加(StorageOpenImageController, StorageOpenAudioController, StorageOpenVideoController, StorageOpenFileController, StorageOpenFolderController)。 -・ストレージアクセス機能にてファイル保存(書き込みアクセス)の機能を追加(StorageSaveFileController)。 -・AndroidActionController に「UriWithMimeType」(MIME type指定でのURIへのアクション)を追加。またサンプルとして ExternalStorageTest に様々なファイルを開くデモを追加。 -・簡易的な音楽プレイヤーのサンプルスクリプト(EasyMusicPlayer)とシーン(MusicPlayerExample)を追加。 -(ver.1.17) -・パーミッションのリクエスト(+その根拠のダイアログの表示)をする機能を追加。「PermissionCheckController」に「requestWhenNotGranted」オプションを追加。 -・センサーコントローラのベーススクリプト「SensorControllerBase」でセンサーのサポートチェック機能をリアルタイム(キャッシュなし)に変更。 -(ver.1.18) -・CPU使用率のステータス取得機能を追加(CpuRateController)。またそのCPU使用率をバーとして表示するスクリプト「CpuRateBar」(単一CPU)と一覧で表示する「CpuRateBarView」(複数CPU)を追加。 -・UI-Text 上で FPS(Frame Per Second)を表示するスクリプト「FpsText.cs」を追加。またそのプレファブ「FpsMonitor」を追加。 -・球・箱・線・メッシュ状の簡易ギズモを表示する「XGizmo」を追加。 -・StorageLoadTextController と StorageSaveTextController に直接 UI.Text に読み書きするフィールド(targetText)を追加。 -・EasyMusicPlayer に CurrentIndex と IsPlaying のプロパティを追加。 -・EasyMusicPlayer の曲追加時のストレージオープン機能を同クラスに内包した(以前の StorageOpenAudioController から追加もそのまま使えます)。 -・SceneLoadWithKey のインスペクタで「Use Name」の項目を「Scene Specification」で「Scene Name / Scene Build Index」で切り替えるように変更(内部的には bool 値のまま)。 -・Android以外の無効コードパスを修正(Androidでビルドしている場合は影響ありません)。 - - -※最新版はブログにて GoogleDrive からダウンロードできます(※日本語版のみ)。 -http://fantom1x.blog130.fc2.com/blog-entry-273.html - ------------------------------------------------- -■使用ライブラリのライセンス等 - -このプラグインには Apache License, Version 2.0 のライセンスで配布されている成果物を含んでいます。 -http://www.apache.org/licenses/LICENSE-2.0 - -ZXing ("Zebra Crossing") open source project (google). [ver.3.3.2] (QR Code Scan) -https://github.com/zxing/zxing - ------------------------------------------------- -それではよりよい作品の手助けになることを、心から願っています。 - -By Fantom - -[Blog] http://fantom1x.blog130.fc2.com/ -[Unity Connect] https://connect.unity.com/u/5abd008032b30600256e8ca9 -[Twitter] https://twitter.com/fantom_1x -[SoundCloud] https://soundcloud.com/user-751508071 -[Picotune] http://picotune.me/?@Fantom -[Monappy] https://monappy.jp/u/Fantom -[E-Mail] fantom_1x@yahoo.co.jp - diff --git a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_jp.txt.meta b/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_jp.txt.meta deleted file mode 100644 index f6c3938f..00000000 --- a/TECHMANIA/Assets/FantomPlugin/fantomPlugin_ReadMe_jp.txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 27af368827a841242a17aebc56923a61 -timeCreated: 1506919026 -licenseType: Store -TextScriptImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/AndroidManifest.xml b/TECHMANIA/Assets/Plugins/Android/AndroidManifest.xml index c34fc15c..85b9394b 100644 --- a/TECHMANIA/Assets/Plugins/Android/AndroidManifest.xml +++ b/TECHMANIA/Assets/Plugins/Android/AndroidManifest.xml @@ -5,12 +5,13 @@ - + android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" + android:exported="true" + > diff --git a/TECHMANIA/Assets/Plugins/Android/Permission_ReadMe.txt b/TECHMANIA/Assets/Plugins/Android/Permission_ReadMe.txt deleted file mode 100644 index cb8a31b1..00000000 --- a/TECHMANIA/Assets/Plugins/Android/Permission_ReadMe.txt +++ /dev/null @@ -1,75 +0,0 @@ -Permission & Attribute Manual ('AndroidManifest.xml') - -https://developer.android.com/guide/topics/security/permissions.html -https://developer.android.com/guide/topics/manifest/activity-element.html -List of functions requiring permission in manifest file (AndroidManifest.xml). - -(*) Depending on the function you want to use, you need to manually add permissions in 'AndroidManifest.xml'. Since all permissions have been added to the demonstration manifest file 'AndroidManifest_demo.xml', if necessary, please copy and paste it in the same way (It is better to delete the permission of functions not used). - -·Recording audio permission is required for Speech Recognizer. - - -·To read (load) to External Storage, access permission (read) to media storage is required (* However, it is not necessary if there is "WRITE_EXTERNAL_STORAGE"). - - -·Bluetooth permission is required for Bluetooth connection request. - - -·Vibrate permission is required for using vibrator. - - -·BodySensor permission is required for using heart rate sensor. - - -·Device orientation change status, the following attribute is required for 'activiey' tag (* Unity is set by default). -android:configChanges="orientation|screenSize" - -(*)It is better to also combine the attributes of rotation. -android:screenOrientation="sensor" - - ----------------------------------------------------------------------------- -https://developer.android.com/guide/topics/security/permissions.html -https://developer.android.com/guide/topics/manifest/activity-element.html -マニフェストファイル「AndroidManifest.xml」にパーミッション・属性が必要な機能一覧 - -※使いたい機能によってはパーミッションを「AndroidManifest.xml」に手動で追加する必要があります。デモのマニフェストファイル「AndroidManifest_demo.xml」には全てのパーミッションが追加してあるので、必要であれば同じようにコピペなどして追加して下さい(利用しない機能のパーミッションは削除する方が好ましいです)。 - -・音声認識には録音パーミッションが必要です。 - - -・ExternalStorageから読み込みを行うにはメディアストレージへのアクセスパーミッション(読み取り)が必要です(※ただし「WRITE_EXTERNAL_STORAGE」がある場合は必要ありません)。 - - -・Bluetoothの接続要求を行うにはBluetoothパーミッションが必要です。 - - -・バイブレーターを利用する場合には以下のパーミッションが必要です。 - - -・心拍センサー(HeartRate)を利用する場合にはバイタルサインに関するセンサーデータへのアクセスパーミッションが必要です。 - - -・画面回転の変化取得を利用するには「activiey」タグに以下の属性が必要です(※Unity のデフォルトでは設定されています)。 -android:configChanges="orientation|screenSize" - -※また回転の属性も合わせた方が良いです。 -android:screenOrientation="sensor" - - ------------------------------------------------- -By Fantom - -[Blog] http://fantom1x.blog130.fc2.com/ -[Twitter] https://twitter.com/fantom_1x -[SoundCloud] https://soundcloud.com/user-751508071 -[Picotune] http://picotune.me/?@Fantom -[Monappy] https://monappy.jp/u/Fantom -[E-Mail] fantom_1x@yahoo.co.jp - diff --git a/TECHMANIA/Assets/Plugins/Android/Permission_ReadMe.txt.meta b/TECHMANIA/Assets/Plugins/Android/Permission_ReadMe.txt.meta deleted file mode 100644 index bb8768d8..00000000 --- a/TECHMANIA/Assets/Plugins/Android/Permission_ReadMe.txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: aff76a852af8ac045b9ebf3b361eb472 -timeCreated: 1518518055 -licenseType: Store -TextScriptImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/ZXing_LICENSE.txt b/TECHMANIA/Assets/Plugins/Android/ZXing_LICENSE.txt deleted file mode 100644 index 510991ed..00000000 --- a/TECHMANIA/Assets/Plugins/Android/ZXing_LICENSE.txt +++ /dev/null @@ -1,245 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -======================================================================== -jai-imageio -======================================================================== - -Copyright (c) 2005 Sun Microsystems, Inc. -Copyright © 2010-2014 University of Manchester -Copyright © 2010-2015 Stian Soiland-Reyes -Copyright © 2015 Peter Hull -All Rights Reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -- Redistribution of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -- Redistribution in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - -Neither the name of Sun Microsystems, Inc. or the names of -contributors may be used to endorse or promote products derived -from this software without specific prior written permission. - -This software is provided "AS IS," without a warranty of any -kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND -WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY -EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL -NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF -USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS -DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR -ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, -CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND -REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR -INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - -You acknowledge that this software is not designed or intended for -use in the design, construction, operation or maintenance of any -nuclear facility. \ No newline at end of file diff --git a/TECHMANIA/Assets/Plugins/Android/ZXing_LICENSE.txt.meta b/TECHMANIA/Assets/Plugins/Android/ZXing_LICENSE.txt.meta deleted file mode 100644 index 4be823db..00000000 --- a/TECHMANIA/Assets/Plugins/Android/ZXing_LICENSE.txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b491fb1170f90e84ba0251ec7f2107eb -timeCreated: 1523091284 -licenseType: Store -TextScriptImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/ZXing_NOTICE.txt b/TECHMANIA/Assets/Plugins/Android/ZXing_NOTICE.txt deleted file mode 100644 index 70d46cb4..00000000 --- a/TECHMANIA/Assets/Plugins/Android/ZXing_NOTICE.txt +++ /dev/null @@ -1,17 +0,0 @@ --------------------------------------------------------------------------------- -NOTICES FOR BARCODE4J --------------------------------------------------------------------------------- - -Barcode4J -Copyright 2002-2010 Jeremias Märki -Copyright 2005-2006 Dietmar Bürkle - -Portions of this software were contributed under section 5 of the -Apache License. Contributors are listed under: -http://barcode4j.sourceforge.net/contributors.html - --------------------------------------------------------------------------------- -NOTICES FOR JCOMMANDER --------------------------------------------------------------------------------- - -Copyright 2010 Cedric Beust cedric@beust.com diff --git a/TECHMANIA/Assets/Plugins/Android/ZXing_NOTICE.txt.meta b/TECHMANIA/Assets/Plugins/Android/ZXing_NOTICE.txt.meta deleted file mode 100644 index acb85771..00000000 --- a/TECHMANIA/Assets/Plugins/Android/ZXing_NOTICE.txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4df4269c99bbb134188539b0e6aa1453 -timeCreated: 1523098625 -licenseType: Store -TextScriptImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/fantomPlugin.aar b/TECHMANIA/Assets/Plugins/Android/fantomPlugin.aar deleted file mode 100644 index c95230a2..00000000 Binary files a/TECHMANIA/Assets/Plugins/Android/fantomPlugin.aar and /dev/null differ diff --git a/TECHMANIA/Assets/Plugins/Android/fantomPlugin.aar.meta b/TECHMANIA/Assets/Plugins/Android/fantomPlugin.aar.meta deleted file mode 100644 index ec9594b7..00000000 --- a/TECHMANIA/Assets/Plugins/Android/fantomPlugin.aar.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: c3e575e1a0861704c935c352c42a84a2 -timeCreated: 1530354953 -licenseType: Store -PluginImporter: - serializedVersion: 2 - iconMap: {} - executionOrder: {} - isPreloaded: 0 - isOverridable: 0 - platformData: - data: - first: - Android: Android - second: - enabled: 1 - settings: {} - data: - first: - Any: - second: - enabled: 0 - settings: {} - data: - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/gradleTemplate.properties b/TECHMANIA/Assets/Plugins/Android/gradleTemplate.properties new file mode 100644 index 00000000..15d7d3d2 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/Android/gradleTemplate.properties @@ -0,0 +1,7 @@ +org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M +org.gradle.parallel=true +android.enableR8=**MINIFY_WITH_R_EIGHT** +unityStreamingAssets=.unity3d**STREAMING_ASSETS** +**ADDITIONAL_PROPERTIES** +android.useAndroidX=true +android.enableJetifier=true \ No newline at end of file diff --git a/TECHMANIA/Assets/Plugins/Android/gradleTemplate.properties.meta b/TECHMANIA/Assets/Plugins/Android/gradleTemplate.properties.meta new file mode 100644 index 00000000..75e6a704 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/Android/gradleTemplate.properties.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f76a2a18da892c943bedfea019938465 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/launcherTemplate.gradle b/TECHMANIA/Assets/Plugins/Android/launcherTemplate.gradle new file mode 100644 index 00000000..4233e81b --- /dev/null +++ b/TECHMANIA/Assets/Plugins/Android/launcherTemplate.gradle @@ -0,0 +1,60 @@ + +apply plugin: 'com.android.application' + +dependencies { + implementation project(':unityLibrary') + } + +android { + compileSdkVersion **APIVERSION** + buildToolsVersion '30.0.3' + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + minSdkVersion **MINSDKVERSION** + targetSdkVersion **TARGETSDKVERSION** + applicationId '**APPLICATIONID**' + ndk { + abiFilters **ABIFILTERS** + } + versionCode **VERSIONCODE** + versionName '**VERSIONNAME**' + } + + aaptOptions { + noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ') + ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" + }**SIGN** + + lintOptions { + abortOnError false + } + + buildTypes { + debug { + minifyEnabled **MINIFY_DEBUG** + proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** + jniDebuggable true + } + release { + minifyEnabled **MINIFY_RELEASE** + proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** + } + }**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS** +**BUILT_APK_LOCATION** + bundle { + language { + enableSplit = false + } + density { + enableSplit = false + } + abi { + enableSplit = true + } + } +}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP** diff --git a/TECHMANIA/Assets/Plugins/Android/launcherTemplate.gradle.meta b/TECHMANIA/Assets/Plugins/Android/launcherTemplate.gradle.meta new file mode 100644 index 00000000..c5e48d80 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/Android/launcherTemplate.gradle.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: cff981489fd4d134a9b550dc26ec4698 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/Android/mainTemplate.gradle b/TECHMANIA/Assets/Plugins/Android/mainTemplate.gradle new file mode 100644 index 00000000..13fb2b16 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/Android/mainTemplate.gradle @@ -0,0 +1,42 @@ + +apply plugin: 'com.android.library' +**APPLY_PLUGINS** + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'androidx.appcompat:appcompat:1.4.1' + implementation "androidx.documentfile:documentfile:1.0.1" +**DEPS**} + +android { + compileSdkVersion **APIVERSION** + buildToolsVersion '30.0.3' + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + minSdkVersion **MINSDKVERSION** + targetSdkVersion **TARGETSDKVERSION** + ndk { + abiFilters **ABIFILTERS** + } + versionCode **VERSIONCODE** + versionName '**VERSIONNAME**' + consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD** + } + + lintOptions { + abortOnError false + } + + aaptOptions { + noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ') + ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" + }**PACKAGING_OPTIONS** +}**REPOSITORIES** +**IL_CPP_BUILD_SETUP** +**SOURCE_BUILD_SETUP** +**EXTERNAL_SOURCES** diff --git a/TECHMANIA/Assets/Plugins/Android/mainTemplate.gradle.meta b/TECHMANIA/Assets/Plugins/Android/mainTemplate.gradle.meta new file mode 100644 index 00000000..85e36306 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/Android/mainTemplate.gradle.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: af0da0b8753f37e489cc5605a219fde2 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO.meta similarity index 57% rename from TECHMANIA/Assets/FantomPlugin/FantomLib.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO.meta index 042d314a..9a55bf3a 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO.meta @@ -1,9 +1,8 @@ fileFormatVersion: 2 -guid: 1d5837fc5196e9843a9ab19c571ae3ed +guid: 3f0f99c5ed108b64088dafc60b39704b folderAsset: yes -timeCreated: 1506480854 -licenseType: Store DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts.meta similarity index 57% rename from TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts.meta index e5b94d2a..33c5a61f 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts.meta @@ -1,9 +1,8 @@ fileFormatVersion: 2 -guid: 7b968cd80a558154d91b31ba4e429bca +guid: 3c1aa87779b586146986a9ac3c052eba folderAsset: yes -timeCreated: 1506590596 -licenseType: Store DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/Global.cs b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/Global.cs new file mode 100644 index 00000000..b04cda8c --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/Global.cs @@ -0,0 +1,45 @@ +using UnityEngine; +using System; + + +namespace AndroidNativeIO +{ + // This points to a compiled library at Assets/Plugins/AndroidNativeIO/lib-release.aar + // Source code: https://github.com/samnyan/UnityNativeAndroidIO + + public class Constants + { + public const string ANDROID_PACKAGE = "cn.samnya.nativeandroid.io"; + } + + public class Global + { + + private static AndroidJavaClass cachedUnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); + private static AndroidJavaObject cachedUnityPlayerContext = null; + + public static AndroidJavaObject InitializeContext() + { + if (cachedUnityPlayer == null) + { + cachedUnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); + } + AndroidJavaObject context = cachedUnityPlayer.GetStatic("currentActivity"); + cachedUnityPlayerContext = context; + return context; + } + + public static AndroidJavaObject GetContext() + { + if (cachedUnityPlayerContext != null) + { + return cachedUnityPlayerContext; + } + else + { + return InitializeContext(); + } + } + + } +} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/Screenshot.cs.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/Global.cs.meta similarity index 68% rename from TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/Screenshot.cs.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/Global.cs.meta index 103aa93e..1861218f 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/Screenshot.cs.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/Global.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 47a2219ccab0fbb40bccdb540bfb155c -timeCreated: 1524404705 -licenseType: Store +guid: 7fad043312980c04685f94b5723d3b82 MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO.meta similarity index 57% rename from TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO.meta index bda9f2e4..6618e7a8 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Prefabs.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO.meta @@ -1,9 +1,8 @@ fileFormatVersion: 2 -guid: c5e1a9aab45c4b340a6423f6c2c5df2e +guid: bc53e6906bae3cf4c8c27d3b06f7c3c0 folderAsset: yes -timeCreated: 1506590610 -licenseType: Store DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Directory.cs b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Directory.cs new file mode 100644 index 00000000..f380ee60 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Directory.cs @@ -0,0 +1,93 @@ + +using System; +using UnityEngine; + +namespace AndroidNativeIO.IO +{ + public class Directory + { + + public const string ANDROID_CLASS = Constants.ANDROID_PACKAGE + ".csharp.Directory"; + public static AndroidJavaClass cachedClass = null; + + public static AndroidJavaClass GetCurrentClass() + { + if (cachedClass == null) + { + cachedClass = new AndroidJavaClass(ANDROID_CLASS); + } + return cachedClass; + } + + public static bool CreateDirectory(string parentPath, string childFolderName) + { + return GetCurrentClass().CallStatic( + "createDirectory", + Global.GetContext(), + parentPath, + childFolderName + ); + } + + public static bool Exists(string path) + { + return GetCurrentClass().CallStatic( + "exists", + Global.GetContext(), + path + ); + } + + public static string[] EnumerateDirectories(string path) + { + using ( + var obj = GetCurrentClass().CallStatic( + "enumerateDirectories", + Global.GetContext(), + path + ) + ) + { + + if (obj.GetRawObject().ToInt32() != 0) + { + String[] result = AndroidJNIHelper.ConvertFromJNIArray(obj.GetRawObject()); + return result; + } + return new string[] { }; + } + + } + + public static string[] EnumerateFiles(string path, string searchPattern) + { + using ( + var obj = GetCurrentClass().CallStatic( + "enumerateFiles", + Global.GetContext(), + path, + searchPattern + ) + ) + { + + if (obj.GetRawObject().ToInt32() != 0) + { + String[] result = AndroidJNIHelper.ConvertFromJNIArray(obj.GetRawObject()); + return result; + } + return new string[] { }; + } + + } + + public static string GetName(string path) + { + return GetCurrentClass().CallStatic( + "getName", + Global.GetContext(), + path + ); + } + } +} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera/SmoothFollow3.cs.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Directory.cs.meta similarity index 68% rename from TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera/SmoothFollow3.cs.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Directory.cs.meta index 185db616..16198028 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Camera/SmoothFollow3.cs.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Directory.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 0970a2e1a37f3f14d92dec216fb1c750 -timeCreated: 1515228251 -licenseType: Store +guid: 6d9d4c3ee39ff3245ba0ffbf85f1e5e1 MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/File.cs b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/File.cs new file mode 100644 index 00000000..cc5801b9 --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/File.cs @@ -0,0 +1,49 @@ +using System; +using UnityEngine; + +namespace AndroidNativeIO.IO +{ + public class File + { + + public const string ANDROID_CLASS = Constants.ANDROID_PACKAGE + ".csharp.File"; + public static AndroidJavaClass cachedClass = null; + + public static AndroidJavaClass GetCurrentClass() + { + if (cachedClass == null) + { + cachedClass = new AndroidJavaClass(ANDROID_CLASS); + } + return cachedClass; + } + + public static bool Exists(string path) + { + return GetCurrentClass().CallStatic( + "exists", + Global.GetContext(), + path + ); + } + + public static string ReadAllText(string path) + { + return GetCurrentClass().CallStatic( + "readAllText", + Global.GetContext(), + path + ); + } + + public static string WriteAllText(string path, string content) + { + return GetCurrentClass().CallStatic( + "writeAllText", + Global.GetContext(), + path, + content + ); + } + } +} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example/EasyMusicPlayer.cs.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/File.cs.meta similarity index 68% rename from TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example/EasyMusicPlayer.cs.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/File.cs.meta index ab876153..2c4e71c0 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Example/EasyMusicPlayer.cs.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/File.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 7d1b3ef60104a054e932bbbccc3b61b4 -timeCreated: 1530025908 -licenseType: Store +guid: ac263465a9e871b4d8b784476abcc104 MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Path.cs b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Path.cs new file mode 100644 index 00000000..daf3c5ee --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Path.cs @@ -0,0 +1,41 @@ +using System; +using UnityEngine; + +namespace AndroidNativeIO.IO +{ + public class Path + { + + public const string ANDROID_CLASS = Constants.ANDROID_PACKAGE + ".csharp.Path"; + public static AndroidJavaClass cachedClass = null; + + public static AndroidJavaClass GetCurrentClass() + { + if (cachedClass == null) + { + cachedClass = new AndroidJavaClass(ANDROID_CLASS); + } + return cachedClass; + } + + public static string Combine(string path1, string path2) + { + return GetCurrentClass().CallStatic( + "combine", + Global.GetContext(), + path1, + path2 + ); + } + + public static string GetDirectoryName(string path, bool returnToTreeUri) + { + return GetCurrentClass().CallStatic( + "getDirectoryName", + Global.GetContext(), + path, + returnToTreeUri + ); + } + } +} \ No newline at end of file diff --git a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/AndroidColor.cs.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Path.cs.meta similarity index 68% rename from TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/AndroidColor.cs.meta rename to TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Path.cs.meta index 8013abf6..2f024514 100644 --- a/TECHMANIA/Assets/FantomPlugin/FantomLib/Scripts/Graphics/AndroidColor.cs.meta +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/IO/Path.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 021a7969dafe0ec419fb37df315971bd -timeCreated: 1512011359 -licenseType: Store +guid: ee0b0ee87cf79b344804b05a9b2d6a9e MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/StorageUtils.cs b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/StorageUtils.cs new file mode 100644 index 00000000..00862b1e --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/StorageUtils.cs @@ -0,0 +1,47 @@ + +using UnityEngine; +using AndroidNativeIO; + +namespace AndroidNativeIO.Utils +{ + public class StorageUtils + { + + public const string ANDROID_CLASS = Constants.ANDROID_PACKAGE + ".AndroidStorage"; + + public static AndroidJavaClass cachedClass = null; + + public static AndroidJavaClass GetCurrentClass() + { + if (cachedClass == null) + { + cachedClass = new AndroidJavaClass(ANDROID_CLASS); + } + return cachedClass; + } + + public static void OpenStorageFolder(string callbackGameObject, + string resultCallbackMethod, string errorCallbackMethod) + { + Global.GetContext().Call("runOnUiThread", new AndroidJavaRunnable(() => + { + GetCurrentClass().CallStatic( + "openDocumentTree", + Global.GetContext(), + callbackGameObject, + resultCallbackMethod, + errorCallbackMethod + ); + })); + } + + public static string GetRealPathFromUri(string path) + { + return GetCurrentClass().CallStatic( + "getRealPathFromContentUri", + Global.GetContext(), + path + ); + } + } +} \ No newline at end of file diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/StorageUtils.cs.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/StorageUtils.cs.meta new file mode 100644 index 00000000..7370686b --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/Scripts/StorageUtils.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3a93201c037988c44a295f20a2896da7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/lib-release.aar b/TECHMANIA/Assets/Plugins/AndroidNativeIO/lib-release.aar new file mode 100644 index 00000000..8ca6c5bd Binary files /dev/null and b/TECHMANIA/Assets/Plugins/AndroidNativeIO/lib-release.aar differ diff --git a/TECHMANIA/Assets/Plugins/AndroidNativeIO/lib-release.aar.meta b/TECHMANIA/Assets/Plugins/AndroidNativeIO/lib-release.aar.meta new file mode 100644 index 00000000..3ebc8dcc --- /dev/null +++ b/TECHMANIA/Assets/Plugins/AndroidNativeIO/lib-release.aar.meta @@ -0,0 +1,32 @@ +fileFormatVersion: 2 +guid: 976220751deb6294d9c72595e3329519 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Android: Android + second: + enabled: 1 + settings: {} + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorContext.cs b/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorContext.cs index b9c8a0f3..20fb5c12 100644 --- a/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorContext.cs +++ b/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorContext.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.IO; using UnityEngine; using UnityEngine.Events; @@ -76,13 +75,10 @@ public class EditorContext : MonoBehaviour public static Track track; // Full path of the track.tech file. public static string trackPath; - public static string trackFolder - { - get - { - return Path.GetDirectoryName(trackPath); - } - } + // Because getting parent folder on Android not always + // gives the same string, and this string is use for + // keys, it can't use PathGetDirectoryName from trackPath + public static string trackFolder; public static int patternIndex; public static Pattern Pattern diff --git a/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorSelectTrackPanel.cs b/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorSelectTrackPanel.cs index 6c020902..2d5a05d9 100644 --- a/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorSelectTrackPanel.cs +++ b/TECHMANIA/Assets/Scripts/Components/Editor Scene/EditorSelectTrackPanel.cs @@ -1,8 +1,4 @@ using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Text; using UnityEngine; using UnityEngine.UI; @@ -13,14 +9,22 @@ public class EditorSelectTrackPanel : SelectTrackPanel protected override bool ShowNewTrackCard() { +#if UNITY_ANDROID + // Creating new file doesn't work with this + if (Options.instance.customDataLocation) + { + return false; + } +#endif return true; } protected override void OnTrackCardClick(GameObject o) { EditorContext.Reset(); - EditorContext.trackPath = Path.Combine(cardToTrack[o].folder, + EditorContext.trackPath = UniversalIO.Path.Combine(cardToTrack[o].folder, Paths.kTrackFilename); + EditorContext.trackFolder = cardToTrack[o].folder; PanelTransitioner.TransitionTo(trackSetupPanel, TransitionToPanel.Direction.Right); } @@ -44,11 +48,11 @@ private void OnCreateButtonClick(string title, string artist) .RemoveCharsNotAllowedOnFileSystem(artist); string timestamp = DateTime.Now.ToString("yyyyMMddHHmmss"); - string newDir = Path.Combine(currentLocation, - $"{filteredArtist} - {filteredTitle} - {timestamp}"); + string newDirName = $"{filteredArtist} - {filteredTitle} - {timestamp}"; + string newDir = UniversalIO.Path.Combine(currentLocation, newDirName); try { - Directory.CreateDirectory(newDir); + UniversalIO.Directory.CreateDirectory(currentLocation, newDirName); } catch (Exception e) { @@ -62,7 +66,7 @@ private void OnCreateButtonClick(string title, string artist) // Create empty track. Track track = new Track(title, artist); - string filename = Path.Combine(newDir, Paths.kTrackFilename); + string filename = UniversalIO.Path.Combine(newDir, Paths.kTrackFilename); try { track.SaveToFile(filename); @@ -85,6 +89,7 @@ private void OnCreateButtonClick(string title, string artist) EditorContext.Reset(); EditorContext.trackPath = filename; + EditorContext.trackFolder = newDir; EditorContext.track = track; PanelTransitioner.TransitionTo(trackSetupPanel, TransitionToPanel.Direction.Right); diff --git a/TECHMANIA/Assets/Scripts/Components/Game Scene/Game.cs b/TECHMANIA/Assets/Scripts/Components/Game Scene/Game.cs index a01c1a7b..2955d85b 100644 --- a/TECHMANIA/Assets/Scripts/Components/Game Scene/Game.cs +++ b/TECHMANIA/Assets/Scripts/Components/Game Scene/Game.cs @@ -2,7 +2,6 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics; // For stopwatch -using System.IO; using TMPro; using UnityEngine; using UnityEngine.Events; @@ -368,8 +367,11 @@ private IEnumerator LoadSequence() if (GameSetup.pattern.patternMetadata.backImage != null && GameSetup.pattern.patternMetadata.backImage != "") { - string fullPath = Path.Combine(GameSetup.trackFolder, + string fullPath = UniversalIO.Path.Combine(GameSetup.trackFolder, GameSetup.pattern.patternMetadata.backImage); +#if UNITY_ANDROID + fullPath = UniversalIO.GetAndroidRealPath(fullPath); +#endif backgroundImageLoaded = false; ResourceLoader.LoadImage(fullPath, OnImageLoadComplete); @@ -413,8 +415,11 @@ private IEnumerator LoadSequence() if (GameSetup.pattern.patternMetadata.backingTrack != null && GameSetup.pattern.patternMetadata.backingTrack != "") { - string fullPath = Path.Combine(GameSetup.trackFolder, + string fullPath = UniversalIO.Path.Combine(GameSetup.trackFolder, GameSetup.pattern.patternMetadata.backingTrack); +#if UNITY_ANDROID + fullPath = UniversalIO.GetAndroidRealPath(fullPath); +#endif backingTrackLoaded = false; ResourceLoader.LoadAudio(fullPath, OnBackingTrackLoadComplete); @@ -438,8 +443,11 @@ private IEnumerator LoadSequence() GameSetup.pattern.patternMetadata.bga != null && GameSetup.pattern.patternMetadata.bga != "") { - string fullPath = Path.Combine(GameSetup.trackFolder, + string fullPath = UniversalIO.Path.Combine(GameSetup.trackFolder, GameSetup.pattern.patternMetadata.bga); +#if UNITY_ANDROID + fullPath = UniversalIO.GetAndroidRealPath(fullPath); +#endif videoPlayer.url = fullPath; videoPlayer.errorReceived += VideoPlayerErrorReceived; videoPlayer.Prepare(); diff --git a/TECHMANIA/Assets/Scripts/Components/Main Menu/GlobalResourceLoader.cs b/TECHMANIA/Assets/Scripts/Components/Main Menu/GlobalResourceLoader.cs index 46bc5316..56ef2c8a 100644 --- a/TECHMANIA/Assets/Scripts/Components/Main Menu/GlobalResourceLoader.cs +++ b/TECHMANIA/Assets/Scripts/Components/Main Menu/GlobalResourceLoader.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.IO; using UnityEngine; using UnityEngine.Events; @@ -84,7 +83,7 @@ public void LoadNoteSkin(UnityAction progressCallback, { string noteSkinFolder = Paths.GetNoteSkinFolder( Options.instance.noteSkin); - string noteSkinFilename = Path.Combine( + string noteSkinFilename = UniversalIO.Path.Combine( noteSkinFolder, Paths.kSkinFilename); try { @@ -114,7 +113,7 @@ public void LoadVfxSkin(UnityAction progressCallback, { string vfxSkinFolder = Paths.GetVfxSkinFolder( Options.instance.vfxSkin); - string vfxSkinFilename = Path.Combine( + string vfxSkinFilename = UniversalIO.Path.Combine( vfxSkinFolder, Paths.kSkinFilename); try { @@ -144,7 +143,7 @@ public void LoadComboSkin(UnityAction progressCallback, { string comboSkinFolder = Paths.GetComboSkinFolder( Options.instance.comboSkin); - string comboSkinFilename = Path.Combine( + string comboSkinFilename = UniversalIO.Path.Combine( comboSkinFolder, Paths.kSkinFilename); try { @@ -191,7 +190,7 @@ public void LoadGameUiSkin(UnityAction progressCallback, { string gameUiSkinFolder = Paths.GetGameUiSkinFolder( Options.instance.gameUiSkin); - string gameUiSkinFilename = Path.Combine( + string gameUiSkinFilename = UniversalIO.Path.Combine( gameUiSkinFolder, Paths.kSkinFilename); try { @@ -234,7 +233,7 @@ private IEnumerator LoadSkin(string skinFolder, continue; } - string filename = Path.Combine(skinFolder, + string filename = UniversalIO.Path.Combine(skinFolder, spriteSheetReferences[i].filename); bool loaded = false; bool error = false; diff --git a/TECHMANIA/Assets/Scripts/Components/Main Menu/OptionsPanel.cs b/TECHMANIA/Assets/Scripts/Components/Main Menu/OptionsPanel.cs index 00039825..a83a4ce7 100644 --- a/TECHMANIA/Assets/Scripts/Components/Main Menu/OptionsPanel.cs +++ b/TECHMANIA/Assets/Scripts/Components/Main Menu/OptionsPanel.cs @@ -5,8 +5,8 @@ using UnityEngine; using UnityEngine.Audio; using UnityEngine.UI; -using FantomLib; using UnityEngine.Networking; +using AndroidNativeIO.Utils; public class OptionsPanel : MonoBehaviour { @@ -181,11 +181,21 @@ private void MemoryToUI() customDataLocation.SetIsOnWithoutNotify( Options.instance.customDataLocation); tracksFolder.SetActive(Options.instance.customDataLocation); +#if UNITY_ANDROID + tracksFolderDisplay.SetUp(UniversalIO.GetAndroidRealPath(Options.instance + .tracksFolderLocation)); +#else tracksFolderDisplay.SetUp(Options.instance .tracksFolderLocation); +#endif skinsFolder.SetActive(Options.instance.customDataLocation); +#if UNITY_ANDROID + skinsFolderDisplay.SetUp(UniversalIO.GetAndroidRealPath(Options.instance + .skinsFolderLocation)); +#else skinsFolderDisplay.SetUp(Options.instance .skinsFolderLocation); +#endif latencyDisplay.text = $"{Options.instance.touchOffsetMs}/{Options.instance.touchLatencyMs}/{Options.instance.keyboardMouseOffsetMs}/{Options.instance.keyboardMouseLatencyMs} ms"; pauseWhenGameLosesFocusToggle.SetIsOnWithoutNotify( Options.instance.pauseWhenGameLosesFocus); @@ -379,7 +389,7 @@ public void OnCustomDataLocationChanged() public void OnTracksFolderBrowseButtonClick() { #if UNITY_ANDROID - AndroidPlugin.OpenStorageFolder(gameObject.name, "OnAndroidTracksFolderSelected", "", true); + StorageUtils.OpenStorageFolder(gameObject.name, "OnAndroidTracksFolderSelected", ""); #else string[] folders = SFB.StandaloneFileBrowser .OpenFolderPanel("", @@ -395,7 +405,7 @@ public void OnTracksFolderBrowseButtonClick() public void OnSkinsFolderBrowseButtonClick() { #if UNITY_ANDROID - AndroidPlugin.OpenStorageFolder(gameObject.name, "OnAndroidSkinsFolderSelected", "", true); + StorageUtils.OpenStorageFolder(gameObject.name, "OnAndroidSkinsFolderSelected", ""); #else string[] folders = SFB.StandaloneFileBrowser .OpenFolderPanel("", @@ -410,20 +420,12 @@ public void OnSkinsFolderBrowseButtonClick() private void OnAndroidTracksFolderSelected(string result) { - if (result[0] == '{') - { - ContentInfo info = JsonUtility.FromJson(result); - OnTracksFolderSelected(info.path); - } + OnTracksFolderSelected(result); } private void OnAndroidSkinsFolderSelected(string result) { - if (result[0] == '{') - { - ContentInfo info = JsonUtility.FromJson(result); - OnSkinsFolderSelected(info.path); - } + OnSkinsFolderSelected(result); } private void OnTracksFolderSelected(string fullPath) diff --git a/TECHMANIA/Assets/Scripts/Components/Main Menu/SelectTrackPanel.cs b/TECHMANIA/Assets/Scripts/Components/Main Menu/SelectTrackPanel.cs index 7c9dd322..73a74b79 100644 --- a/TECHMANIA/Assets/Scripts/Components/Main Menu/SelectTrackPanel.cs +++ b/TECHMANIA/Assets/Scripts/Components/Main Menu/SelectTrackPanel.cs @@ -2,7 +2,6 @@ using System.Collections; using System.Collections.Generic; using System.ComponentModel; -using System.IO; using System.Threading; using TMPro; using UnityEngine; @@ -38,9 +37,9 @@ public enum Type protected static int selectedCardIndex; protected static bool anyOutdatedTrack; // Cached, keyed by track folder's parent folder. - protected static Dictionary> + protected static Dictionary> subfolderList; - protected static Dictionary> + protected static Dictionary> trackList; protected static Dictionary> errorTrackList; @@ -68,7 +67,7 @@ public static void ResetLocation() public static void RemoveOneTrack(string trackFolder) { - string parent = Path.GetDirectoryName(trackFolder); + string parent = UniversalIO.Path.GetDirectoryName(trackFolder); trackList[parent].RemoveAll((TrackInFolder t) => { return t.folder == trackFolder; @@ -77,12 +76,12 @@ public static void RemoveOneTrack(string trackFolder) public static void ReloadOneTrack(string trackFolder) { - string parent = Path.GetDirectoryName(trackFolder); + string parent = UniversalIO.Path.GetDirectoryName(trackFolder, true); foreach (TrackInFolder t in trackList[parent]) { if (t.folder == trackFolder) { - string trackPath = Path.Combine( + string trackPath = UniversalIO.Path.Combine( trackFolder, Paths.kTrackFilename); t.track = Track.LoadFromFile(trackPath) as Track; t.track = MinimizeTrack(t.track); @@ -129,7 +128,7 @@ protected void Start() protected void OnEnable() { StartCoroutine(Refresh()); - TrackFilterSidesheet.trackFilterChanged += + TrackFilterSidesheet.trackFilterChanged += OnTrackFilterChanged; DiscordController.SetActivity(DiscordActivityType.SelectingTrack); @@ -157,7 +156,7 @@ protected IEnumerator Refresh(bool upgradeVersion = false) // Initialization and/or disaster recovery. if (currentLocation == "" || - !UniversalIO.DirectoryExists(currentLocation)) + !UniversalIO.Directory.Exists(currentLocation)) { currentLocation = Paths.GetTrackRootFolder(); } @@ -205,24 +204,27 @@ protected IEnumerator Refresh(bool upgradeVersion = false) trackStatusText.gameObject.SetActive(false); // Launch background worker to rebuild track list. + trackListBuilder = new BackgroundWorker(); trackListBuilder.DoWork += TrackListBuilderDoWork; trackListBuilder.RunWorkerCompleted += TrackListBuilderCompleted; + builderDone = false; builderProgress = ""; Options.TemporarilyDisableVSync(); trackListBuilder.RunWorkerAsync( new BackgroundWorkerArgument() - { - upgradeVersion = upgradeVersion - }); + { + upgradeVersion = upgradeVersion + }); do { trackListBuildingProgress.text = builderProgress; yield return null; } while (!builderDone); + Options.RestoreVSync(); trackListBuildingProgress.gameObject.SetActive(false); @@ -274,7 +276,7 @@ protected IEnumerator Refresh(bool upgradeVersion = false) subfolderGrid.transform); card.name = "Subfolder Card"; card.GetComponent().Initialize( - new DirectoryInfo(subfolder.path).Name, + UniversalIO.Directory.GetName(subfolder.path), subfolder.eyecatchFullPath); card.SetActive(true); subfolderGridEmpty = false; @@ -376,7 +378,7 @@ protected IEnumerator Refresh(bool upgradeVersion = false) GameObject template = error.type switch { ErrorInTrack.Type.Load => errorCardTemplate, - ErrorInTrack.Type.Upgrade => + ErrorInTrack.Type.Upgrade => upgradeErrorCardTemplate, _ => null }; @@ -449,7 +451,7 @@ protected IEnumerator Refresh(bool upgradeVersion = false) tracks.Count - cardToTrack.Count, trackFilterSidesheet.searchKeyword); } - else if (cardToSubfolder.Count + + else if (cardToSubfolder.Count + cardToTrack.Count + cardToError.Count == 0) { trackStatusText.gameObject.SetActive(true); @@ -607,11 +609,16 @@ private void TrackListBuilderDoWork(object sender, private void BuildTrackListFor(string folder, bool upgradeVersion) { + +#if UNITY_ANDROID + // Because this is the backgound thread + AndroidJNI.AttachCurrentThread(); +#endif subfolderList.Add(folder, new List()); trackList.Add(folder, new List()); errorTrackList.Add(folder, new List()); - foreach (string file in Directory.EnumerateFiles( + foreach (string file in UniversalIO.Directory.EnumerateFiles( folder, "*.zip")) { // Attempt to extract this archive. @@ -628,7 +635,7 @@ private void BuildTrackListFor(string folder, } } - foreach (string dir in Directory.EnumerateDirectories( + foreach (string dir in UniversalIO.Directory.EnumerateDirectories( folder)) { if (upgradeVersion) @@ -645,9 +652,9 @@ private void BuildTrackListFor(string folder, } // Is there a track? - string possibleTrackFile = Path.Combine( + string possibleTrackFile = UniversalIO.Path.Combine( dir, Paths.kTrackFilename); - if (!File.Exists(possibleTrackFile)) + if (!UniversalIO.File.Exists(possibleTrackFile)) { Subfolder subfolder = new Subfolder() { @@ -655,16 +662,22 @@ private void BuildTrackListFor(string folder, }; // Look for eyecatch, if any. - string pngEyecatch = Path.Combine(dir, + string pngEyecatch = UniversalIO.Path.Combine(dir, Paths.kSubfolderEyecatchPngFilename); - if (File.Exists(pngEyecatch)) + if (UniversalIO.File.Exists(pngEyecatch)) { +#if UNITY_ANDROID + pngEyecatch = UniversalIO.GetAndroidRealPath(pngEyecatch); +#endif subfolder.eyecatchFullPath = pngEyecatch; } - string jpgEyecatch = Path.Combine(dir, + string jpgEyecatch = UniversalIO.Path.Combine(dir, Paths.kSubfolderEyecatchJpgFilename); - if (File.Exists(jpgEyecatch)) + if (UniversalIO.File.Exists(jpgEyecatch)) { +#if UNITY_ANDROID + jpgEyecatch = UniversalIO.GetAndroidRealPath(jpgEyecatch); +#endif subfolder.eyecatchFullPath = jpgEyecatch; } @@ -674,8 +687,8 @@ private void BuildTrackListFor(string folder, { subfolderList[Paths.GetTrackRootFolder()] .Add(subfolder); - } - else + } + else { subfolderList[folder].Add(subfolder); } @@ -749,14 +762,14 @@ private void BuildStreamingTrackList() { return; } - + // Get all track.tech files. string[] relativeTrackFiles = BetterStreamingAssets.GetFiles( Paths.RelativePathInStreamingAssets( Paths.GetStreamingTrackRootFolder() ), Paths.kTrackFilename, - SearchOption.AllDirectories + System.IO.SearchOption.AllDirectories ); // Get all directories above them. @@ -765,11 +778,11 @@ private void BuildStreamingTrackList() // Get absolute track.tech file path. string absoluteTrackFile = Paths.AbsolutePathInStreamingAssets(relativeTrackFile); // Get relative directory path. - string relativeTrackFolder = Path.GetDirectoryName(relativeTrackFile); + string relativeTrackFolder = UniversalIO.Path.GetDirectoryName(relativeTrackFile); // Get absolute directory path. string absoluteTrackFolder = Paths.AbsolutePathInStreamingAssets(relativeTrackFolder); - string processingRelativeFolder = Path.GetDirectoryName(relativeTrackFolder); + string processingRelativeFolder = UniversalIO.Path.GetDirectoryName(relativeTrackFolder); string processingAbsoluteFolder = Paths.AbsolutePathInStreamingAssets(processingRelativeFolder); if (processingAbsoluteFolder == Paths.GetStreamingTrackRootFolder()) @@ -814,7 +827,7 @@ private void BuildStreamingTrackList() // Process path folders one by one. while (processingAbsoluteFolder != Paths.GetStreamingTrackRootFolder()) { - string processingRelativeParentFolder = Path.GetDirectoryName(processingRelativeFolder); + string processingRelativeParentFolder = UniversalIO.Path.GetDirectoryName(processingRelativeFolder); string processingAbsoluteParentFolder = Paths.AbsolutePathInStreamingAssets(processingRelativeParentFolder); string dirKey = processingAbsoluteParentFolder; @@ -837,7 +850,7 @@ private void BuildStreamingTrackList() { path = processingAbsoluteFolder }; - string pngEyecatch = Path.Combine( + string pngEyecatch = UniversalIO.Path.Combine( processingRelativeFolder, Paths.kSubfolderEyecatchPngFilename); if (BetterStreamingAssets.FileExists( @@ -847,7 +860,7 @@ private void BuildStreamingTrackList() AbsolutePathInStreamingAssets( pngEyecatch); } - string jpgEyecatch = Path.Combine( + string jpgEyecatch = UniversalIO.Path.Combine( processingRelativeFolder, Paths.kSubfolderEyecatchJpgFilename); if (BetterStreamingAssets.FileExists( @@ -864,7 +877,7 @@ private void BuildStreamingTrackList() } } } - private void TrackListBuilderCompleted(object sender, + private void TrackListBuilderCompleted(object sender, RunWorkerCompletedEventArgs e) { builderDone = true; @@ -878,7 +891,7 @@ private void ExtractZipFile(string zipFilename) { Debug.Log("Extracting: " + zipFilename); - using (FileStream fileStream = File.OpenRead(zipFilename)) + using (System.IO.FileStream fileStream = UniversalIO.File.OpenRead(zipFilename)) using (ICSharpCode.SharpZipLib.Zip.ZipFile zipFile = new ICSharpCode.SharpZipLib.Zip.ZipFile(fileStream)) { @@ -888,7 +901,7 @@ private void ExtractZipFile(string zipFilename) zipFile) { if (string.IsNullOrEmpty( - Path.GetDirectoryName(entry.Name))) + UniversalIO.Path.GetDirectoryName(entry.Name))) { Debug.Log($"Ignoring due to not being in a folder: {entry.Name} in {zipFilename}"); continue; @@ -900,14 +913,15 @@ private void ExtractZipFile(string zipFilename) continue; } - string extractedFilename = Path.Combine( + string extractedFilename = UniversalIO.Path.Combine( currentLocation, entry.Name); Debug.Log($"Extracting {entry.Name} in {zipFilename} to: {extractedFilename}"); - Directory.CreateDirectory(Path.GetDirectoryName( + // Doesn't use in Android, so use C# System.IO + System.IO.Directory.CreateDirectory(UniversalIO.Path.GetDirectoryName( extractedFilename)); using var inputStream = zipFile.GetInputStream(entry); - using FileStream outputStream = File.Create( + using System.IO.FileStream outputStream = UniversalIO.File.Create( extractedFilename); ICSharpCode.SharpZipLib.Core.StreamUtils.Copy( inputStream, outputStream, buffer); @@ -915,7 +929,7 @@ private void ExtractZipFile(string zipFilename) } Debug.Log($"Extract successful. Deleting: {zipFilename}"); - File.Delete(zipFilename); + UniversalIO.File.Delete(zipFilename); } #endregion @@ -946,7 +960,7 @@ public void OnGoUpButtonClick() { Debug.Log(currentLocation); - currentLocation = Path.GetDirectoryName(currentLocation); + currentLocation = UniversalIO.Path.GetDirectoryName(currentLocation); if (currentLocation.Equals( Paths.GetStreamingTrackRootFolder())) currentLocation = Paths.GetTrackRootFolder(); @@ -969,7 +983,7 @@ private void OnSubfolderCardClick(GameObject o) protected virtual void OnTrackCardClick(GameObject o) { - GameSetup.trackPath = Path.Combine(cardToTrack[o].folder, + GameSetup.trackPath = UniversalIO.Path.Combine(cardToTrack[o].folder, Paths.kTrackFilename); GameSetup.trackOptions = Options.instance .GetPerTrackOptions( diff --git a/TECHMANIA/Assets/Scripts/Components/PreviewTrackPlayer.cs b/TECHMANIA/Assets/Scripts/Components/PreviewTrackPlayer.cs index f7dc28dd..d56f20ef 100644 --- a/TECHMANIA/Assets/Scripts/Components/PreviewTrackPlayer.cs +++ b/TECHMANIA/Assets/Scripts/Components/PreviewTrackPlayer.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.IO; using UnityEngine; using UnityEngine.Networking; @@ -48,8 +47,11 @@ private IEnumerator InnerPlay(string trackFolder, // We could use ResourceLoader.LoadAudio, but this creates // problems when the user stops preview track playback // before the loading completes. - string filename = Path.Combine(trackFolder, + string filename = UniversalIO.Path.Combine(trackFolder, previewTrackFilename); +#if UNITY_ANDROID + filename = UniversalIO.GetAndroidRealPath(filename); +#endif UnityWebRequest request = UnityWebRequestMultimedia.GetAudioClip( Paths.FullPathToUri(filename), AudioType.UNKNOWN); diff --git a/TECHMANIA/Assets/Scripts/Components/ResourceLoader.cs b/TECHMANIA/Assets/Scripts/Components/ResourceLoader.cs index 58f35bb4..16aeef17 100644 --- a/TECHMANIA/Assets/Scripts/Components/ResourceLoader.cs +++ b/TECHMANIA/Assets/Scripts/Components/ResourceLoader.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.IO; using UnityEngine; using UnityEngine.Events; using UnityEngine.Networking; @@ -100,7 +99,7 @@ public static void CacheAllKeysounds(string trackFolder, { if (n.sound != null && n.sound != "") { - filenames.Add(Path.Combine(trackFolder, n.sound)); + filenames.Add(UniversalIO.Path.Combine(trackFolder, n.sound)); } } ResourceLoader instance = GetInstance(); @@ -139,11 +138,16 @@ private IEnumerator InnerCacheAudioResources( yield break; } + string filePath = file; +#if UNITY_ANDROID + filePath = UniversalIO.GetAndroidRealPath(filePath); +#endif + // Somehow passing in AudioType.UNKNOWN will make it // magically work for every format. UnityWebRequest request = UnityWebRequestMultimedia.GetAudioClip( - Paths.FullPathToUri(file), AudioType.UNKNOWN); + Paths.FullPathToUri(filePath), AudioType.UNKNOWN); yield return request.SendWebRequest(); AudioClip clip; @@ -186,9 +190,13 @@ public static AudioClip GetCachedClip(string filenameWithoutFolder) public static void LoadAudio(string fullPath, UnityAction loadAudioCompleteCallback) { + string path = fullPath; +#if UNITY_ANDROID + path = UniversalIO.GetAndroidRealPath(path); +#endif ResourceLoader instance = GetInstance(); instance.StartCoroutine(instance.InnerLoadAudio( - fullPath, loadAudioCompleteCallback)); + path, loadAudioCompleteCallback)); } private IEnumerator InnerLoadAudio(string fullPath, @@ -234,7 +242,12 @@ private static bool IsEmptyFile(string fullPath) { return false; } - FileInfo fileInfo = new FileInfo(fullPath); + if (fullPath.StartsWith(UniversalIO.ANDROID_CONTENT_URI)) + { + return false; + } + + System.IO.FileInfo fileInfo = new System.IO.FileInfo(fullPath); return fileInfo.Length == 0; } @@ -278,9 +291,13 @@ public static void GetAudioClipFromWebRequest( public static void LoadImage(string fullPath, UnityAction loadImageCompleteCallback) { + string path = fullPath; +#if UNITY_ANDROID + path = UniversalIO.GetAndroidRealPath(path); +#endif ResourceLoader instance = GetInstance(); instance.StartCoroutine(instance.InnerLoadImage( - fullPath, loadImageCompleteCallback)); + path, loadImageCompleteCallback)); } public static Sprite CreateSpriteFromTexture(Texture2D texture) diff --git a/TECHMANIA/Assets/Scripts/Components/UI/EyecatchSelfLoader.cs b/TECHMANIA/Assets/Scripts/Components/UI/EyecatchSelfLoader.cs index 0c4a16ef..98cbb729 100644 --- a/TECHMANIA/Assets/Scripts/Components/UI/EyecatchSelfLoader.cs +++ b/TECHMANIA/Assets/Scripts/Components/UI/EyecatchSelfLoader.cs @@ -1,6 +1,5 @@ using System.Collections; using System.Collections.Generic; -using System.IO; using UnityEngine; using UnityEngine.UI; @@ -22,7 +21,7 @@ public void LoadImage(string folder, TrackMetadata t) if (t.eyecatchImage != null && t.eyecatchImage != "") { - string fullPath = Path.Combine(folder, t.eyecatchImage); + string fullPath = UniversalIO.Path.Combine(folder, t.eyecatchImage); ResourceLoader.LoadImage(fullPath, OnLoadImageComplete); } else diff --git a/TECHMANIA/Assets/Scripts/GameSetup.cs b/TECHMANIA/Assets/Scripts/GameSetup.cs index e55574c6..41ce13db 100644 --- a/TECHMANIA/Assets/Scripts/GameSetup.cs +++ b/TECHMANIA/Assets/Scripts/GameSetup.cs @@ -13,6 +13,9 @@ public static string trackFolder { get { + if (trackPath.StartsWith(UniversalIO.ANDROID_CONTENT_URI)) { + return trackPath.Replace("%2Ftrack.tech", ""); + } // FileInfo.DirectoryName turns "jar:file:///" into // "/jar:file:/", so we need to correct it. return new FileInfo(trackPath).DirectoryName.Replace( diff --git a/TECHMANIA/Assets/Scripts/Paths.cs b/TECHMANIA/Assets/Scripts/Paths.cs index f139fb89..5874db9b 100644 --- a/TECHMANIA/Assets/Scripts/Paths.cs +++ b/TECHMANIA/Assets/Scripts/Paths.cs @@ -1,7 +1,6 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -using System.IO; using System.Text; using UnityEngine.Events; using System; @@ -13,9 +12,9 @@ public static class Paths { public const string kTrackFilename = "track.tech"; public const string kSkinFilename = "skin.json"; - public const string kSubfolderEyecatchPngFilename = + public const string kSubfolderEyecatchPngFilename = "eyecatch.png"; - public const string kSubfolderEyecatchJpgFilename = + public const string kSubfolderEyecatchJpgFilename = "eyecatch.jpg"; public const string kTrackFolderName = "Tracks"; public const string kSkinFolderName = "Skins"; @@ -63,10 +62,10 @@ public static void PrepareFolders() string current = Application.persistentDataPath; #else // Does not end with separator - string current = Directory.GetCurrentDirectory(); + string current = UniversalIO.DirectoryGetCurrentDirectory(); #endif - string buildsFolder = Path.Combine(current, "Builds"); - if (Directory.Exists(buildsFolder)) + string buildsFolder = UniversalIO.Path.Combine(current, "Builds"); + if (UniversalIO.File.Exists(buildsFolder)) { workingDirectory = buildsFolder; } @@ -76,36 +75,45 @@ public static void PrepareFolders() } // Track root folder - trackRootFolder = Path.Combine(workingDirectory, + trackRootFolder = UniversalIO.Path.Combine(workingDirectory, kTrackFolderName); - Directory.CreateDirectory(trackRootFolder); - streamingTrackRootFolder = Path.Combine( + UniversalIO.Directory.CreateDirectory(workingDirectory, + kTrackFolderName); + + streamingTrackRootFolder = UniversalIO.Path.Combine( streamingAssetsFolder, kTrackFolderName); // Skin folder - skinFolder = Path.Combine(workingDirectory, + skinFolder = UniversalIO.Path.Combine(workingDirectory, kSkinFolderName); - Directory.CreateDirectory(skinFolder); - streamingSkinFolder = Path.Combine( + UniversalIO.Directory.CreateDirectory(workingDirectory, + kSkinFolderName); + + streamingSkinFolder = UniversalIO.Path.Combine( streamingAssetsFolder, kSkinFolderName); - Directory.CreateDirectory(GetNoteSkinRootFolder()); - Directory.CreateDirectory(GetVfxSkinRootFolder()); - Directory.CreateDirectory(GetComboSkinRootFolder()); - Directory.CreateDirectory(GetGameUiSkinRootFolder()); + UniversalIO.Directory.CreateDirectory(GetSkinFolder(), kNoteSkinFolderName); + UniversalIO.Directory.CreateDirectory(GetSkinFolder(), kVfxSkinFolderName); + UniversalIO.Directory.CreateDirectory(GetSkinFolder(), kComboSkinFolderName); + UniversalIO.Directory.CreateDirectory(GetSkinFolder(), kGameUiFolderName); // Data folder #if UNITY_ANDROID || UNITY_IOS - dataFolder = Path.Combine( + dataFolder = UniversalIO.Path.Combine( Application.persistentDataPath, "TECHMANIA"); + UniversalIO.Directory.CreateDirectory(Application.persistentDataPath, + "TECHMANIA"); #else - dataFolder = Path.Combine( + dataFolder = UniversalIO.Path.Combine( + System.Environment.GetFolderPath( + System.Environment.SpecialFolder.MyDocuments), + "TECHMANIA"); + UniversalIO.Directory.CreateDirectory( System.Environment.GetFolderPath( System.Environment.SpecialFolder.MyDocuments), "TECHMANIA"); #endif - Directory.CreateDirectory(dataFolder); } public static void ApplyCustomDataLocation() @@ -127,9 +135,9 @@ public static void ApplyCustomDataLocation() } else { - trackRootFolder = Path.Combine(workingDirectory, + trackRootFolder = UniversalIO.Path.Combine(workingDirectory, kTrackFolderName); - skinFolder = Path.Combine(workingDirectory, + skinFolder = UniversalIO.Path.Combine(workingDirectory, kSkinFolderName); } } @@ -158,11 +166,11 @@ public static string GetStreamingSkinFolder() public static string GetNoteSkinRootFolder() { - return Path.Combine(GetSkinFolder(), kNoteSkinFolderName); + return UniversalIO.Path.Combine(GetSkinFolder(), kNoteSkinFolderName); } public static string GetStreamingNoteSkinRootFolder() { - return Path.Combine(GetStreamingSkinFolder(), + return UniversalIO.Path.Combine(GetStreamingSkinFolder(), kNoteSkinFolderName); } public static string GetNoteSkinFolder(string name) @@ -170,90 +178,92 @@ public static string GetNoteSkinFolder(string name) // If there's a name collision between a skin in the // working directory and streaming assets, prioritize the // former. This is the same behavior as SelectSkinPanel. - string temp = Path.Combine(GetNoteSkinRootFolder(), name); - return Directory.Exists(temp) ? + string temp = UniversalIO.Path.Combine(GetNoteSkinRootFolder(), name); + + bool isExist = UniversalIO.File.Exists(temp); + return isExist ? temp : - Path.Combine(GetStreamingNoteSkinRootFolder(), name); + UniversalIO.Path.Combine(GetStreamingNoteSkinRootFolder(), name); } public static string GetVfxSkinRootFolder() { - return Path.Combine(GetSkinFolder(), kVfxSkinFolderName); + return UniversalIO.Path.Combine(GetSkinFolder(), kVfxSkinFolderName); } public static string GetStreamingVfxSkinRootFolder() { - return Path.Combine(GetStreamingSkinFolder(), + return UniversalIO.Path.Combine(GetStreamingSkinFolder(), kVfxSkinFolderName); } public static string GetVfxSkinFolder(string name) { - string temp = Path.Combine(GetVfxSkinRootFolder(), name); - return Directory.Exists(temp) ? + string temp = UniversalIO.Path.Combine(GetVfxSkinRootFolder(), name); + return UniversalIO.File.Exists(temp) ? temp : - Path.Combine(GetStreamingVfxSkinRootFolder(), name); + UniversalIO.Path.Combine(GetStreamingVfxSkinRootFolder(), name); } public static string GetComboSkinRootFolder() { - return Path.Combine(GetSkinFolder(), kComboSkinFolderName); + return UniversalIO.Path.Combine(GetSkinFolder(), kComboSkinFolderName); } public static string GetStreamingComboSkinRootFolder() { - return Path.Combine(GetStreamingSkinFolder(), + return UniversalIO.Path.Combine(GetStreamingSkinFolder(), kComboSkinFolderName); } public static string GetComboSkinFolder(string name) { - string temp = Path.Combine(GetComboSkinRootFolder(), name); - return Directory.Exists(temp) ? + string temp = UniversalIO.Path.Combine(GetComboSkinRootFolder(), name); + return UniversalIO.File.Exists(temp) ? temp : - Path.Combine(GetStreamingComboSkinRootFolder(), name); + UniversalIO.Path.Combine(GetStreamingComboSkinRootFolder(), name); } public static string GetGameUiSkinRootFolder() { - return Path.Combine(GetSkinFolder(), kGameUiFolderName); + return UniversalIO.Path.Combine(GetSkinFolder(), kGameUiFolderName); } public static string GetStreamingGameUiSkinRootFolder() { - return Path.Combine(GetStreamingSkinFolder(), + return UniversalIO.Path.Combine(GetStreamingSkinFolder(), kGameUiFolderName); } public static string GetGameUiSkinFolder(string name) { - string temp = Path.Combine(GetGameUiSkinRootFolder(), name); - return Directory.Exists(temp) ? + string temp = UniversalIO.Path.Combine(GetGameUiSkinRootFolder(), name); + return UniversalIO.File.Exists(temp) ? temp : - Path.Combine(GetStreamingGameUiSkinRootFolder(), name); + UniversalIO.Path.Combine(GetStreamingGameUiSkinRootFolder(), name); } #endregion #region Things in document folder public static string GetOptionsFilePath() { - return Path.Combine(dataFolder, "options.json"); + return UniversalIO.Path.Combine(dataFolder, "options.json"); } public static string GetRulesetFilePath() { - return Path.Combine(dataFolder, "ruleset.json"); + return UniversalIO.Path.Combine(dataFolder, "ruleset.json"); } public static string GetRecordsFilePath() { - return Path.Combine(dataFolder, "records.json"); + return UniversalIO.Path.Combine(dataFolder, "records.json"); } #endregion #region Listing files of specific type - private static List GetAllMatchingFiles(string folder, + private static List GetAllMatchingFiles(string folder, List patterns) { List files = new List(); foreach (string pattern in patterns) { foreach (string file in - Directory.EnumerateFiles(folder, pattern, SearchOption.AllDirectories)) + UniversalIO.Directory.EnumerateFiles(folder, pattern, System.IO.SearchOption.AllDirectories)) { files.Add(file); } @@ -334,6 +344,13 @@ public static string FullPathToUri(string fullPath) public static string HidePlatformInternalPath(string fullPath) { +#if UNITY_ANDROID + if (fullPath.StartsWith(UniversalIO.ANDROID_CONTENT_URI)) + { + return UniversalIO.GetAndroidRealPath(fullPath) + .Replace(UniversalIO.GetAndroidRealPath(Paths.GetTrackRootFolder()), "Tracks"); + } +#endif #if UNITY_ANDROID || UNITY_IOS return fullPath .Replace(Paths.GetStreamingTrackRootFolder(), "Tracks") @@ -350,6 +367,10 @@ public static string HidePlatformInternalPath(string fullPath) public static string RelativePath(string reference, string absolutePath) { + if (reference.StartsWith(UniversalIO.ANDROID_CONTENT_URI)) + { + return absolutePath.Replace(reference, "").Replace("%2F", ""); + } return absolutePath .Substring(reference.Length + 1) #if UNITY_WSA || UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN @@ -365,7 +386,7 @@ public static bool IsInStreamingAssets(string path) return path.StartsWith(streamingAssetsFolder); } - public static string RelativePathInStreamingAssets(string + public static string RelativePathInStreamingAssets(string absolutePath) { return absolutePath.Substring(streamingAssetsFolder.Length); @@ -378,7 +399,7 @@ public static string AbsolutePathInStreamingAssets(string // any previous path components are ignored, and the // returned string begins with that rooted path component. relativePath = relativePath.TrimStart('/', '\\'); - string absolutePath = Path.Combine(streamingAssetsFolder, + string absolutePath = UniversalIO.Path.Combine(streamingAssetsFolder, relativePath); #if UNITY_WSA || UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN absolutePath = absolutePath.Replace('/', '\\'); diff --git a/TECHMANIA/Assets/Scripts/Serializable/SerializableClass.cs b/TECHMANIA/Assets/Scripts/Serializable/SerializableClass.cs index 60278670..4dc922f1 100644 --- a/TECHMANIA/Assets/Scripts/Serializable/SerializableClass.cs +++ b/TECHMANIA/Assets/Scripts/Serializable/SerializableClass.cs @@ -127,14 +127,14 @@ public T Clone() public void SaveToFile(string path) { - System.IO.File.WriteAllText(path, Serialize( + UniversalIO.File.WriteAllText(path, Serialize( optimizeForSaving: true)); } public static T LoadFromFile(string path, out bool upgraded) { #if UNITY_2020 - string fileContent = UniversalIO.ReadAllText(path); + string fileContent = UniversalIO.File.ReadAllText(path); return Deserialize(fileContent, out upgraded); #else upgraded = false; diff --git a/TECHMANIA/Assets/Scripts/UniversalIO.cs b/TECHMANIA/Assets/Scripts/UniversalIO.cs index 409b051c..02d01067 100644 --- a/TECHMANIA/Assets/Scripts/UniversalIO.cs +++ b/TECHMANIA/Assets/Scripts/UniversalIO.cs @@ -3,46 +3,195 @@ using System.IO; using UnityEngine; -// Generalized IO that works on both a file system and -// streaming assets. +// Generalized IO that works on PC, Android and iOS. +// Also supports streaming assets on iOS. public static class UniversalIO { - public static bool FileExists(string path) + // Paths returned by the Android file picker will be in this scheme. + // We can call GetRealPathFromUri to translate it to a file system path and do regular I/O, but there are limitations: + // * Android 12 doesn't allow direct reading of these files, unless it's a media file + // * Enumerating directories won't show non-media files at all + // Therefore, unless reading a media file, all I/O should go through methods in this class. + public const string ANDROID_CONTENT_URI = "content://"; + + public static bool IsAndroidContentURI(string path) + { + return path.StartsWith(ANDROID_CONTENT_URI); + } + + // This method will decode the content uri back to linux file path, but the limitations still apply. + // Only use this for display on the UI or reading media file. + public static string GetAndroidRealPath(string path) + { + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.Utils.StorageUtils.GetRealPathFromUri(path); + } + return path; + } + + #region Directory + public static class Directory { - if (Paths.IsInStreamingAssets(path)) + public static void CreateDirectory(string parentPath, string childFolderName) + { + if (IsAndroidContentURI(parentPath)) + { + if (!AndroidNativeIO.IO.Directory.CreateDirectory(parentPath, childFolderName)) + { + throw new IOException("Failed to create directory (Android Native IO)"); + } + } + else + { + System.IO.Directory.CreateDirectory(Path.Combine(parentPath, childFolderName)); + } + } + + + public static IEnumerable EnumerateFiles(string path, string searchPattern) + { + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.Directory.EnumerateFiles(path, searchPattern); + } + return System.IO.Directory.EnumerateFiles(path, searchPattern); + } + + public static IEnumerable EnumerateFiles(string path, string searchPattern, SearchOption searchOption) { - return BetterStreamingAssets.FileExists( - Paths.RelativePathInStreamingAssets(path)); + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.Directory.EnumerateFiles(path, searchPattern); + } + return System.IO.Directory.EnumerateFiles(path, searchPattern, searchOption); } - else + + public static IEnumerable EnumerateDirectories(string path) + { + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.Directory.EnumerateDirectories(path); + } + return System.IO.Directory.EnumerateDirectories(path); + } + + public static string GetName(string path) { - return File.Exists(path); + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.Directory.GetName(path); + } + return new DirectoryInfo(path).Name; + } + + public static bool Exists(string path) + { + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.Directory.Exists(path); + } + if (Paths.IsInStreamingAssets(path)) + { + return BetterStreamingAssets.DirectoryExists( + Paths.RelativePathInStreamingAssets(path)); + } + else + { + return System.IO.Directory.Exists(path); + } } } + #endregion - public static bool DirectoryExists(string path) + + #region File + public static class File { - if (Paths.IsInStreamingAssets(path)) + public static bool Exists(string path) + { + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.File.Exists(path); + } + if (Paths.IsInStreamingAssets(path)) + { + return BetterStreamingAssets.FileExists( + Paths.RelativePathInStreamingAssets(path)); + } + else + { + return System.IO.File.Exists(path); + } + } + + public static string ReadAllText(string path) + { + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.File.ReadAllText(path); + } + if (Paths.IsInStreamingAssets(path)) + { + return BetterStreamingAssets.ReadAllText( + Paths.RelativePathInStreamingAssets(path)); + } + else + { + return System.IO.File.ReadAllText(path); + } + } + + public static void WriteAllText(string path, string content) { - return BetterStreamingAssets.DirectoryExists( - Paths.RelativePathInStreamingAssets(path)); + if (IsAndroidContentURI(path)) + { + AndroidNativeIO.IO.File.WriteAllText(path, content); + } + else + { + System.IO.File.WriteAllText(path, content); + } } - else + public static FileStream Create(string path) { - return Directory.Exists(path); + return System.IO.File.Create(path); + } + + public static void Delete(string path) + { + System.IO.File.Delete(path); + } + + public static FileStream OpenRead(string path) + { + return System.IO.File.OpenRead(path); } } + #endregion - public static string ReadAllText(string path) + #region Path + public static class Path { - if (Paths.IsInStreamingAssets(path)) + public static string GetDirectoryName(string path, bool returnToTreeUri = true) { - return BetterStreamingAssets.ReadAllText( - Paths.RelativePathInStreamingAssets(path)); + + if (IsAndroidContentURI(path)) + { + return AndroidNativeIO.IO.Path.GetDirectoryName(path, returnToTreeUri); + } + return System.IO.Path.GetDirectoryName(path); } - else + + public static string Combine(string parent, string name) { - return File.ReadAllText(path); + if (IsAndroidContentURI(parent)) + { + return AndroidNativeIO.IO.Path.Combine(parent, name); + } + return System.IO.Path.Combine(parent, name); } } + + #endregion } diff --git a/TECHMANIA/ProjectSettings/ProjectSettings.asset b/TECHMANIA/ProjectSettings/ProjectSettings.asset index 47e4cb22..1aa5b525 100644 --- a/TECHMANIA/ProjectSettings/ProjectSettings.asset +++ b/TECHMANIA/ProjectSettings/ProjectSettings.asset @@ -76,7 +76,7 @@ PlayerSettings: androidFullscreenMode: 1 defaultIsNativeResolution: 1 macRetinaSupport: 1 - runInBackground: 1 + runInBackground: 0 captureSingleScreen: 0 muteOtherAudioSources: 0 Prepare IOS For Recording: 0 @@ -162,15 +162,15 @@ PlayerSettings: tvOS: 0 overrideDefaultApplicationIdentifier: 0 AndroidBundleVersionCode: 1 - AndroidMinSdkVersion: 19 - AndroidTargetSdkVersion: 29 + AndroidMinSdkVersion: 22 + AndroidTargetSdkVersion: 31 AndroidPreferredInstallLocation: 1 aotOptions: stripEngineCode: 1 iPhoneStrippingLevel: 0 iPhoneScriptCallOptimization: 0 ForceInternetPermission: 0 - ForceSDCardPermission: 0 + ForceSDCardPermission: 1 CreateWallpaper: 0 APKExpansionFiles: 0 keepLoadedShadersAlive: 0 @@ -239,10 +239,10 @@ PlayerSettings: templateDefaultScene: Assets/Scenes/SampleScene.unity useCustomMainManifest: 1 useCustomLauncherManifest: 0 - useCustomMainGradleTemplate: 0 - useCustomLauncherGradleManifest: 0 + useCustomMainGradleTemplate: 1 + useCustomLauncherGradleManifest: 1 useCustomBaseGradleTemplate: 0 - useCustomGradlePropertiesTemplate: 0 + useCustomGradlePropertiesTemplate: 1 useCustomProguardFile: 0 AndroidTargetArchitectures: 3 AndroidTargetDevices: 0 @@ -279,36 +279,6 @@ PlayerSettings: m_BuildTargetPlatformIcons: - m_BuildTarget: Android m_Icons: - - m_Textures: [] - m_Width: 432 - m_Height: 432 - m_Kind: 2 - m_SubKind: - - m_Textures: [] - m_Width: 324 - m_Height: 324 - m_Kind: 2 - m_SubKind: - - m_Textures: [] - m_Width: 216 - m_Height: 216 - m_Kind: 2 - m_SubKind: - - m_Textures: [] - m_Width: 162 - m_Height: 162 - m_Kind: 2 - m_SubKind: - - m_Textures: [] - m_Width: 108 - m_Height: 108 - m_Kind: 2 - m_SubKind: - - m_Textures: [] - m_Width: 81 - m_Height: 81 - m_Kind: 2 - m_SubKind: - m_Textures: [] m_Width: 192 m_Height: 192 @@ -369,6 +339,36 @@ PlayerSettings: m_Height: 36 m_Kind: 1 m_SubKind: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: m_BuildTargetBatching: [] m_BuildTargetGraphicsJobs: - m_BuildTarget: MacStandaloneSupport