Commit 62387b4d1333f37dd59356a7bf4f4ce71fcd2093

Authored by ClaudiomarAraujo
1 parent ba22241a

Reconhecimento de voz e botoes de voltar

Assets/Plugins.meta 0 → 100644
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
  1 +fileFormatVersion: 2
  2 +guid: 2f76639d276d256418c4d22174caf2aa
  3 +folderAsset: yes
  4 +timeCreated: 1443633364
  5 +licenseType: Free
  6 +DefaultImporter:
  7 + userData:
  8 + assetBundleName:
  9 + assetBundleVariant:
Assets/Plugins/Android.meta 0 → 100644
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
  1 +fileFormatVersion: 2
  2 +guid: c09545e387c50874db2086d6b06b2a1c
  3 +folderAsset: yes
  4 +timeCreated: 1442947850
  5 +licenseType: Free
  6 +DefaultImporter:
  7 + userData:
  8 + assetBundleName:
  9 + assetBundleVariant:
Assets/Plugins/Android/AndroidManifest.xml 0 → 100644
@@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3 + package="com.lavid.vlibrasdroid"
  4 + android:versionCode="1"
  5 + android:versionName="1.0">
  6 + <uses-sdk android:minSdkVersion="14" />
  7 + <application android:label="@string/app_name">
  8 + <activity android:name=".MainActivity"
  9 + android:label="@string/app_name">
  10 + <intent-filter>
  11 + <action android:name="android.intent.action.MAIN" />
  12 + <category android:name="android.intent.category.LAUNCHER" />
  13 + </intent-filter>
  14 + </activity>
  15 + </application>
  16 +</manifest>
0 \ No newline at end of file 17 \ No newline at end of file
Assets/Plugins/Android/AndroidManifest.xml.meta 0 → 100644
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +fileFormatVersion: 2
  2 +guid: 9a462ece95f547e47a1b71267f63d924
  3 +timeCreated: 1442947850
  4 +licenseType: Free
  5 +TextScriptImporter:
  6 + userData:
  7 + assetBundleName:
  8 + assetBundleVariant:
Assets/Plugins/Android/AndroidPlugin.jar 0 → 100644
No preview for this file type
Assets/Plugins/Android/AndroidPlugin.jar.meta 0 → 100644
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
  1 +fileFormatVersion: 2
  2 +guid: adceddb083d40cc4aaefba7e91837e28
  3 +timeCreated: 1443633684
  4 +licenseType: Free
  5 +PluginImporter:
  6 + serializedVersion: 1
  7 + iconMap: {}
  8 + executionOrder: {}
  9 + isPreloaded: 0
  10 + platformData:
  11 + Android:
  12 + enabled: 1
  13 + settings:
  14 + CPU: ARMv7
  15 + Any:
  16 + enabled: 0
  17 + settings: {}
  18 + Editor:
  19 + enabled: 0
  20 + settings:
  21 + DefaultValueInitialized: true
  22 + userData:
  23 + assetBundleName:
  24 + assetBundleVariant:
Assets/Resources/GUI/Connection_Failed.png 0 → 100644

29.3 KB

Assets/Resources/GUI/Connection_Failed.png.meta 0 → 100644
@@ -0,0 +1,55 @@ @@ -0,0 +1,55 @@
  1 +fileFormatVersion: 2
  2 +guid: 50d21420fd916e048b11cacad3dda079
  3 +timeCreated: 1443640673
  4 +licenseType: Free
  5 +TextureImporter:
  6 + fileIDToRecycleName: {}
  7 + serializedVersion: 2
  8 + mipmaps:
  9 + mipMapMode: 0
  10 + enableMipMap: 1
  11 + linearTexture: 0
  12 + correctGamma: 0
  13 + fadeOut: 0
  14 + borderMipMap: 0
  15 + mipMapFadeDistanceStart: 1
  16 + mipMapFadeDistanceEnd: 3
  17 + bumpmap:
  18 + convertToNormalMap: 0
  19 + externalNormalMap: 0
  20 + heightScale: .25
  21 + normalMapFilter: 0
  22 + isReadable: 0
  23 + grayScaleToAlpha: 0
  24 + generateCubemap: 0
  25 + cubemapConvolution: 0
  26 + cubemapConvolutionSteps: 8
  27 + cubemapConvolutionExponent: 1.5
  28 + seamlessCubemap: 0
  29 + textureFormat: -1
  30 + maxTextureSize: 2048
  31 + textureSettings:
  32 + filterMode: -1
  33 + aniso: -1
  34 + mipBias: -1
  35 + wrapMode: 1
  36 + nPOTScale: 0
  37 + lightmap: 0
  38 + rGBM: 0
  39 + compressionQuality: 50
  40 + spriteMode: 1
  41 + spriteExtrude: 1
  42 + spriteMeshType: 1
  43 + alignment: 0
  44 + spritePivot: {x: .5, y: .5}
  45 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
  46 + spritePixelsToUnits: 100
  47 + alphaIsTransparency: 1
  48 + textureType: 8
  49 + buildTargetSettings: []
  50 + spriteSheet:
  51 + sprites: []
  52 + spritePackingTag:
  53 + userData:
  54 + assetBundleName:
  55 + assetBundleVariant:
Assets/Scenes/Main.unity
@@ -435,6 +435,72 @@ CanvasRenderer: @@ -435,6 +435,72 @@ CanvasRenderer:
435 type: 2} 435 type: 2}
436 m_PrefabInternal: {fileID: 0} 436 m_PrefabInternal: {fileID: 0}
437 m_GameObject: {fileID: 46909741} 437 m_GameObject: {fileID: 46909741}
  438 +--- !u!1 &55870182
  439 +GameObject:
  440 + m_ObjectHideFlags: 0
  441 + m_PrefabParentObject: {fileID: 0}
  442 + m_PrefabInternal: {fileID: 0}
  443 + serializedVersion: 4
  444 + m_Component:
  445 + - 224: {fileID: 55870183}
  446 + - 222: {fileID: 55870185}
  447 + - 114: {fileID: 55870184}
  448 + m_Layer: 5
  449 + m_Name: Text
  450 + m_TagString: Untagged
  451 + m_Icon: {fileID: 0}
  452 + m_NavMeshLayer: 0
  453 + m_StaticEditorFlags: 0
  454 + m_IsActive: 1
  455 +--- !u!224 &55870183
  456 +RectTransform:
  457 + m_ObjectHideFlags: 0
  458 + m_PrefabParentObject: {fileID: 0}
  459 + m_PrefabInternal: {fileID: 0}
  460 + m_GameObject: {fileID: 55870182}
  461 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  462 + m_LocalPosition: {x: 0, y: 0, z: 0}
  463 + m_LocalScale: {x: 1, y: 1, z: 1}
  464 + m_Children: []
  465 + m_Father: {fileID: 1525104851}
  466 + m_RootOrder: 0
  467 + m_AnchorMin: {x: 0, y: 0}
  468 + m_AnchorMax: {x: 1, y: 1}
  469 + m_AnchoredPosition: {x: 0, y: 0}
  470 + m_SizeDelta: {x: 0, y: 0}
  471 + m_Pivot: {x: .5, y: .5}
  472 +--- !u!114 &55870184
  473 +MonoBehaviour:
  474 + m_ObjectHideFlags: 0
  475 + m_PrefabParentObject: {fileID: 0}
  476 + m_PrefabInternal: {fileID: 0}
  477 + m_GameObject: {fileID: 55870182}
  478 + m_Enabled: 1
  479 + m_EditorHideFlags: 0
  480 + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
  481 + m_Name:
  482 + m_EditorClassIdentifier:
  483 + m_Material: {fileID: 0}
  484 + m_Color: {r: .196078435, g: .196078435, b: .196078435, a: 1}
  485 + m_FontData:
  486 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
  487 + m_FontSize: 42
  488 + m_FontStyle: 0
  489 + m_BestFit: 0
  490 + m_MinSize: 10
  491 + m_MaxSize: 40
  492 + m_Alignment: 4
  493 + m_RichText: 1
  494 + m_HorizontalOverflow: 0
  495 + m_VerticalOverflow: 0
  496 + m_LineSpacing: 1
  497 + m_Text: OK
  498 +--- !u!222 &55870185
  499 +CanvasRenderer:
  500 + m_ObjectHideFlags: 0
  501 + m_PrefabParentObject: {fileID: 0}
  502 + m_PrefabInternal: {fileID: 0}
  503 + m_GameObject: {fileID: 55870182}
438 --- !u!1 &58433888 504 --- !u!1 &58433888
439 GameObject: 505 GameObject:
440 m_ObjectHideFlags: 0 506 m_ObjectHideFlags: 0
@@ -625,6 +691,109 @@ CanvasRenderer: @@ -625,6 +691,109 @@ CanvasRenderer:
625 type: 2} 691 type: 2}
626 m_PrefabInternal: {fileID: 0} 692 m_PrefabInternal: {fileID: 0}
627 m_GameObject: {fileID: 93856253} 693 m_GameObject: {fileID: 93856253}
  694 +--- !u!1 &117472615
  695 +GameObject:
  696 + m_ObjectHideFlags: 0
  697 + m_PrefabParentObject: {fileID: 0}
  698 + m_PrefabInternal: {fileID: 0}
  699 + serializedVersion: 4
  700 + m_Component:
  701 + - 224: {fileID: 117472616}
  702 + - 223: {fileID: 117472619}
  703 + - 114: {fileID: 117472618}
  704 + - 114: {fileID: 117472617}
  705 + - 114: {fileID: 117472620}
  706 + m_Layer: 5
  707 + m_Name: connection_error
  708 + m_TagString: Untagged
  709 + m_Icon: {fileID: 0}
  710 + m_NavMeshLayer: 0
  711 + m_StaticEditorFlags: 0
  712 + m_IsActive: 1
  713 +--- !u!224 &117472616
  714 +RectTransform:
  715 + m_ObjectHideFlags: 0
  716 + m_PrefabParentObject: {fileID: 0}
  717 + m_PrefabInternal: {fileID: 0}
  718 + m_GameObject: {fileID: 117472615}
  719 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  720 + m_LocalPosition: {x: 0, y: 0, z: 0}
  721 + m_LocalScale: {x: 0, y: 0, z: 0}
  722 + m_Children:
  723 + - {fileID: 1665948603}
  724 + m_Father: {fileID: 0}
  725 + m_RootOrder: 2
  726 + m_AnchorMin: {x: 0, y: 0}
  727 + m_AnchorMax: {x: 0, y: 0}
  728 + m_AnchoredPosition: {x: 0, y: 0}
  729 + m_SizeDelta: {x: 0, y: 0}
  730 + m_Pivot: {x: 0, y: 0}
  731 +--- !u!114 &117472617
  732 +MonoBehaviour:
  733 + m_ObjectHideFlags: 0
  734 + m_PrefabParentObject: {fileID: 0}
  735 + m_PrefabInternal: {fileID: 0}
  736 + m_GameObject: {fileID: 117472615}
  737 + m_Enabled: 1
  738 + m_EditorHideFlags: 0
  739 + m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
  740 + m_Name:
  741 + m_EditorClassIdentifier:
  742 + m_IgnoreReversedGraphics: 1
  743 + m_BlockingObjects: 0
  744 + m_BlockingMask:
  745 + serializedVersion: 2
  746 + m_Bits: 4294967295
  747 +--- !u!114 &117472618
  748 +MonoBehaviour:
  749 + m_ObjectHideFlags: 0
  750 + m_PrefabParentObject: {fileID: 0}
  751 + m_PrefabInternal: {fileID: 0}
  752 + m_GameObject: {fileID: 117472615}
  753 + m_Enabled: 1
  754 + m_EditorHideFlags: 0
  755 + m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
  756 + m_Name:
  757 + m_EditorClassIdentifier:
  758 + m_UiScaleMode: 0
  759 + m_ReferencePixelsPerUnit: 100
  760 + m_ScaleFactor: 1
  761 + m_ReferenceResolution: {x: 800, y: 600}
  762 + m_ScreenMatchMode: 0
  763 + m_MatchWidthOrHeight: 0
  764 + m_PhysicalUnit: 3
  765 + m_FallbackScreenDPI: 96
  766 + m_DefaultSpriteDPI: 96
  767 + m_DynamicPixelsPerUnit: 1
  768 +--- !u!223 &117472619
  769 +Canvas:
  770 + m_ObjectHideFlags: 0
  771 + m_PrefabParentObject: {fileID: 0}
  772 + m_PrefabInternal: {fileID: 0}
  773 + m_GameObject: {fileID: 117472615}
  774 + m_Enabled: 1
  775 + serializedVersion: 2
  776 + m_RenderMode: 0
  777 + m_Camera: {fileID: 0}
  778 + m_PlaneDistance: 100
  779 + m_PixelPerfect: 0
  780 + m_ReceivesEvents: 1
  781 + m_OverrideSorting: 0
  782 + m_OverridePixelPerfect: 0
  783 + m_SortingLayerID: 0
  784 + m_SortingOrder: 0
  785 +--- !u!114 &117472620
  786 +MonoBehaviour:
  787 + m_ObjectHideFlags: 0
  788 + m_PrefabParentObject: {fileID: 0}
  789 + m_PrefabInternal: {fileID: 0}
  790 + m_GameObject: {fileID: 117472615}
  791 + m_Enabled: 1
  792 + m_EditorHideFlags: 0
  793 + m_Script: {fileID: 11500000, guid: 09acbdec1f642334e86af23b51b56662, type: 3}
  794 + m_Name:
  795 + m_EditorClassIdentifier:
  796 + box: {fileID: 1665948604}
628 --- !u!1 &136047198 797 --- !u!1 &136047198
629 GameObject: 798 GameObject:
630 m_ObjectHideFlags: 0 799 m_ObjectHideFlags: 0
@@ -2020,6 +2189,55 @@ MonoBehaviour: @@ -2020,6 +2189,55 @@ MonoBehaviour:
2020 thisButton: {fileID: 460346710} 2189 thisButton: {fileID: 460346710}
2021 reference: {fileID: 1066268158} 2190 reference: {fileID: 1066268158}
2022 isEnabled: 1 2191 isEnabled: 1
  2192 +--- !u!1 &478527308
  2193 +GameObject:
  2194 + m_ObjectHideFlags: 0
  2195 + m_PrefabParentObject: {fileID: 0}
  2196 + m_PrefabInternal: {fileID: 0}
  2197 + serializedVersion: 4
  2198 + m_Component:
  2199 + - 4: {fileID: 478527310}
  2200 + - 114: {fileID: 478527309}
  2201 + m_Layer: 0
  2202 + m_Name: BackButtons
  2203 + m_TagString: Untagged
  2204 + m_Icon: {fileID: 0}
  2205 + m_NavMeshLayer: 0
  2206 + m_StaticEditorFlags: 0
  2207 + m_IsActive: 1
  2208 +--- !u!114 &478527309
  2209 +MonoBehaviour:
  2210 + m_ObjectHideFlags: 0
  2211 + m_PrefabParentObject: {fileID: 0}
  2212 + m_PrefabInternal: {fileID: 0}
  2213 + m_GameObject: {fileID: 478527308}
  2214 + m_Enabled: 1
  2215 + m_EditorHideFlags: 0
  2216 + m_Script: {fileID: 11500000, guid: 11f8b85837bcf7c4da290b756e6580da, type: 3}
  2217 + m_Name:
  2218 + m_EditorClassIdentifier:
  2219 + infos: {fileID: 1740734478}
  2220 + t_1: {fileID: 1032180210}
  2221 + t_2: {fileID: 323095193}
  2222 + t_3: {fileID: 1570800641}
  2223 + t_4: {fileID: 1559431851}
  2224 + t_5: {fileID: 984201654}
  2225 + collider: {fileID: 0}
  2226 + text_entry: {fileID: 1800578777}
  2227 + i_bar: {fileID: 317863996}
  2228 + player_manager: {fileID: 578311381}
  2229 +--- !u!4 &478527310
  2230 +Transform:
  2231 + m_ObjectHideFlags: 0
  2232 + m_PrefabParentObject: {fileID: 0}
  2233 + m_PrefabInternal: {fileID: 0}
  2234 + m_GameObject: {fileID: 478527308}
  2235 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  2236 + m_LocalPosition: {x: 0, y: 0, z: 0}
  2237 + m_LocalScale: {x: 1, y: 1, z: 1}
  2238 + m_Children: []
  2239 + m_Father: {fileID: 0}
  2240 + m_RootOrder: 0
2023 --- !u!1 &496020597 2241 --- !u!1 &496020597
2024 GameObject: 2242 GameObject:
2025 m_ObjectHideFlags: 0 2243 m_ObjectHideFlags: 0
@@ -2316,6 +2534,17 @@ MonoBehaviour: @@ -2316,6 +2534,17 @@ MonoBehaviour:
2316 m_StringArgument: 2534 m_StringArgument:
2317 m_BoolArgument: 1 2535 m_BoolArgument: 1
2318 m_CallState: 2 2536 m_CallState: 2
  2537 + - m_Target: {fileID: 478527309}
  2538 + m_MethodName: setHomeScreen
  2539 + m_Mode: 6
  2540 + m_Arguments:
  2541 + m_ObjectArgument: {fileID: 0}
  2542 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  2543 + m_IntArgument: 0
  2544 + m_FloatArgument: 0
  2545 + m_StringArgument:
  2546 + m_BoolArgument: 1
  2547 + m_CallState: 2
2319 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 2548 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
2320 Culture=neutral, PublicKeyToken=null 2549 Culture=neutral, PublicKeyToken=null
2321 --- !u!114 &522470816 2550 --- !u!114 &522470816
@@ -2526,7 +2755,7 @@ Prefab: @@ -2526,7 +2755,7 @@ Prefab:
2526 m_Modifications: 2755 m_Modifications:
2527 - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} 2756 - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2}
2528 propertyPath: m_Animations.Array.size 2757 propertyPath: m_Animations.Array.size
2529 - value: 40 2758 + value: 41
2530 objectReference: {fileID: 0} 2759 objectReference: {fileID: 0}
2531 - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2} 2760 - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2}
2532 propertyPath: m_LocalPosition.x 2761 propertyPath: m_LocalPosition.x
@@ -2558,7 +2787,7 @@ Prefab: @@ -2558,7 +2787,7 @@ Prefab:
2558 objectReference: {fileID: 0} 2787 objectReference: {fileID: 0}
2559 - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2} 2788 - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2}
2560 propertyPath: m_RootOrder 2789 propertyPath: m_RootOrder
2561 - value: 4 2790 + value: 6
2562 objectReference: {fileID: 0} 2791 objectReference: {fileID: 0}
2563 - target: {fileID: 13795696, guid: 00197fc9877daa14c963e5917de36124, type: 2} 2792 - target: {fileID: 13795696, guid: 00197fc9877daa14c963e5917de36124, type: 2}
2564 propertyPath: m_Materials.Array.data[0] 2793 propertyPath: m_Materials.Array.data[0]
@@ -2747,7 +2976,11 @@ Prefab: @@ -2747,7 +2976,11 @@ Prefab:
2747 - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} 2976 - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2}
2748 propertyPath: m_Animation 2977 propertyPath: m_Animation
2749 value: 2978 value:
2750 - objectReference: {fileID: 7400000, guid: e9d2ab4f57bf67b4e9b1d6e702c350ec, type: 2} 2979 + objectReference: {fileID: 7400000, guid: d5e155ea263a8204ba16b7567efb8d98, type: 2}
  2980 + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2}
  2981 + propertyPath: m_Animations.Array.data[40]
  2982 + value:
  2983 + objectReference: {fileID: 7400000, guid: d5e155ea263a8204ba16b7567efb8d98, type: 2}
2751 m_RemovedComponents: [] 2984 m_RemovedComponents: []
2752 m_ParentPrefab: {fileID: 100100000, guid: 00197fc9877daa14c963e5917de36124, type: 2} 2985 m_ParentPrefab: {fileID: 100100000, guid: 00197fc9877daa14c963e5917de36124, type: 2}
2753 m_IsPrefabParent: 0 2986 m_IsPrefabParent: 0
@@ -3703,6 +3936,17 @@ MonoBehaviour: @@ -3703,6 +3936,17 @@ MonoBehaviour:
3703 m_StringArgument: 3936 m_StringArgument:
3704 m_BoolArgument: 1 3937 m_BoolArgument: 1
3705 m_CallState: 2 3938 m_CallState: 2
  3939 + - m_Target: {fileID: 478527309}
  3940 + m_MethodName: setHomeScreen
  3941 + m_Mode: 6
  3942 + m_Arguments:
  3943 + m_ObjectArgument: {fileID: 0}
  3944 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  3945 + m_IntArgument: 0
  3946 + m_FloatArgument: 0
  3947 + m_StringArgument:
  3948 + m_BoolArgument: 1
  3949 + m_CallState: 2
3706 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 3950 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
3707 Culture=neutral, PublicKeyToken=null 3951 Culture=neutral, PublicKeyToken=null
3708 --- !u!114 &721763002 3952 --- !u!114 &721763002
@@ -4138,7 +4382,7 @@ RectTransform: @@ -4138,7 +4382,7 @@ RectTransform:
4138 - {fileID: 1800578778} 4382 - {fileID: 1800578778}
4139 - {fileID: 1927199758} 4383 - {fileID: 1927199758}
4140 m_Father: {fileID: 0} 4384 m_Father: {fileID: 0}
4141 - m_RootOrder: 1 4385 + m_RootOrder: 3
4142 m_AnchorMin: {x: 0, y: 0} 4386 m_AnchorMin: {x: 0, y: 0}
4143 m_AnchorMax: {x: 0, y: 0} 4387 m_AnchorMax: {x: 0, y: 0}
4144 m_AnchoredPosition: {x: 0, y: 0} 4388 m_AnchoredPosition: {x: 0, y: 0}
@@ -8008,6 +8252,17 @@ MonoBehaviour: @@ -8008,6 +8252,17 @@ MonoBehaviour:
8008 m_StringArgument: 8252 m_StringArgument:
8009 m_BoolArgument: 1 8253 m_BoolArgument: 1
8010 m_CallState: 2 8254 m_CallState: 2
  8255 + - m_Target: {fileID: 478527309}
  8256 + m_MethodName: setHomeScreen
  8257 + m_Mode: 6
  8258 + m_Arguments:
  8259 + m_ObjectArgument: {fileID: 0}
  8260 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  8261 + m_IntArgument: 0
  8262 + m_FloatArgument: 0
  8263 + m_StringArgument:
  8264 + m_BoolArgument: 1
  8265 + m_CallState: 2
8011 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 8266 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
8012 Culture=neutral, PublicKeyToken=null 8267 Culture=neutral, PublicKeyToken=null
8013 --- !u!114 &1491086500 8268 --- !u!114 &1491086500
@@ -8148,6 +8403,17 @@ MonoBehaviour: @@ -8148,6 +8403,17 @@ MonoBehaviour:
8148 m_StringArgument: 8403 m_StringArgument:
8149 m_BoolArgument: 0 8404 m_BoolArgument: 0
8150 m_CallState: 2 8405 m_CallState: 2
  8406 + - m_Target: {fileID: 478527309}
  8407 + m_MethodName: setHomeScreen
  8408 + m_Mode: 6
  8409 + m_Arguments:
  8410 + m_ObjectArgument: {fileID: 0}
  8411 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  8412 + m_IntArgument: 0
  8413 + m_FloatArgument: 0
  8414 + m_StringArgument:
  8415 + m_BoolArgument: 0
  8416 + m_CallState: 2
8151 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 8417 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
8152 Culture=neutral, PublicKeyToken=null 8418 Culture=neutral, PublicKeyToken=null
8153 --- !u!114 &1495062327 8419 --- !u!114 &1495062327
@@ -8406,6 +8672,110 @@ CanvasRenderer: @@ -8406,6 +8672,110 @@ CanvasRenderer:
8406 type: 2} 8672 type: 2}
8407 m_PrefabInternal: {fileID: 0} 8673 m_PrefabInternal: {fileID: 0}
8408 m_GameObject: {fileID: 1514219280} 8674 m_GameObject: {fileID: 1514219280}
  8675 +--- !u!1 &1525104850
  8676 +GameObject:
  8677 + m_ObjectHideFlags: 0
  8678 + m_PrefabParentObject: {fileID: 0}
  8679 + m_PrefabInternal: {fileID: 0}
  8680 + serializedVersion: 4
  8681 + m_Component:
  8682 + - 224: {fileID: 1525104851}
  8683 + - 222: {fileID: 1525104854}
  8684 + - 114: {fileID: 1525104853}
  8685 + - 114: {fileID: 1525104852}
  8686 + m_Layer: 5
  8687 + m_Name: Button
  8688 + m_TagString: Untagged
  8689 + m_Icon: {fileID: 0}
  8690 + m_NavMeshLayer: 0
  8691 + m_StaticEditorFlags: 0
  8692 + m_IsActive: 1
  8693 +--- !u!224 &1525104851
  8694 +RectTransform:
  8695 + m_ObjectHideFlags: 0
  8696 + m_PrefabParentObject: {fileID: 0}
  8697 + m_PrefabInternal: {fileID: 0}
  8698 + m_GameObject: {fileID: 1525104850}
  8699 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  8700 + m_LocalPosition: {x: 0, y: 0, z: -10}
  8701 + m_LocalScale: {x: 1, y: 1, z: 1}
  8702 + m_Children:
  8703 + - {fileID: 55870183}
  8704 + m_Father: {fileID: 1665948603}
  8705 + m_RootOrder: 0
  8706 + m_AnchorMin: {x: .5, y: 0}
  8707 + m_AnchorMax: {x: .5, y: 0}
  8708 + m_AnchoredPosition: {x: 0, y: 93.75}
  8709 + m_SizeDelta: {x: 360, y: 125}
  8710 + m_Pivot: {x: .5, y: .5}
  8711 +--- !u!114 &1525104852
  8712 +MonoBehaviour:
  8713 + m_ObjectHideFlags: 0
  8714 + m_PrefabParentObject: {fileID: 0}
  8715 + m_PrefabInternal: {fileID: 0}
  8716 + m_GameObject: {fileID: 1525104850}
  8717 + m_Enabled: 1
  8718 + m_EditorHideFlags: 0
  8719 + m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
  8720 + m_Name:
  8721 + m_EditorClassIdentifier:
  8722 + m_Navigation:
  8723 + m_Mode: 3
  8724 + m_SelectOnUp: {fileID: 0}
  8725 + m_SelectOnDown: {fileID: 0}
  8726 + m_SelectOnLeft: {fileID: 0}
  8727 + m_SelectOnRight: {fileID: 0}
  8728 + m_Transition: 1
  8729 + m_Colors:
  8730 + m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
  8731 + m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1}
  8732 + m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1}
  8733 + m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814}
  8734 + m_ColorMultiplier: 1
  8735 + m_FadeDuration: .100000001
  8736 + m_SpriteState:
  8737 + m_HighlightedSprite: {fileID: 0}
  8738 + m_PressedSprite: {fileID: 0}
  8739 + m_DisabledSprite: {fileID: 0}
  8740 + m_AnimationTriggers:
  8741 + m_NormalTrigger: Normal
  8742 + m_HighlightedTrigger: Highlighted
  8743 + m_PressedTrigger: Pressed
  8744 + m_DisabledTrigger: Disabled
  8745 + m_Interactable: 1
  8746 + m_TargetGraphic: {fileID: 1525104853}
  8747 + m_OnClick:
  8748 + m_PersistentCalls:
  8749 + m_Calls: []
  8750 + m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
  8751 + Culture=neutral, PublicKeyToken=null
  8752 +--- !u!114 &1525104853
  8753 +MonoBehaviour:
  8754 + m_ObjectHideFlags: 0
  8755 + m_PrefabParentObject: {fileID: 0}
  8756 + m_PrefabInternal: {fileID: 0}
  8757 + m_GameObject: {fileID: 1525104850}
  8758 + m_Enabled: 1
  8759 + m_EditorHideFlags: 0
  8760 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
  8761 + m_Name:
  8762 + m_EditorClassIdentifier:
  8763 + m_Material: {fileID: 0}
  8764 + m_Color: {r: 1, g: 1, b: 1, a: 1}
  8765 + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
  8766 + m_Type: 1
  8767 + m_PreserveAspect: 0
  8768 + m_FillCenter: 1
  8769 + m_FillMethod: 4
  8770 + m_FillAmount: 1
  8771 + m_FillClockwise: 1
  8772 + m_FillOrigin: 0
  8773 +--- !u!222 &1525104854
  8774 +CanvasRenderer:
  8775 + m_ObjectHideFlags: 0
  8776 + m_PrefabParentObject: {fileID: 0}
  8777 + m_PrefabInternal: {fileID: 0}
  8778 + m_GameObject: {fileID: 1525104850}
8409 --- !u!1 &1531717202 8779 --- !u!1 &1531717202
8410 GameObject: 8780 GameObject:
8411 m_ObjectHideFlags: 0 8781 m_ObjectHideFlags: 0
@@ -9037,6 +9407,28 @@ MonoBehaviour: @@ -9037,6 +9407,28 @@ MonoBehaviour:
9037 m_StringArgument: 9407 m_StringArgument:
9038 m_BoolArgument: 1 9408 m_BoolArgument: 1
9039 m_CallState: 2 9409 m_CallState: 2
  9410 + - m_Target: {fileID: 578311381}
  9411 + m_MethodName: SetAvatarCollider
  9412 + m_Mode: 6
  9413 + m_Arguments:
  9414 + m_ObjectArgument: {fileID: 0}
  9415 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  9416 + m_IntArgument: 0
  9417 + m_FloatArgument: 0
  9418 + m_StringArgument:
  9419 + m_BoolArgument: 1
  9420 + m_CallState: 2
  9421 + - m_Target: {fileID: 478527309}
  9422 + m_MethodName: setHomeScreen
  9423 + m_Mode: 6
  9424 + m_Arguments:
  9425 + m_ObjectArgument: {fileID: 0}
  9426 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  9427 + m_IntArgument: 0
  9428 + m_FloatArgument: 0
  9429 + m_StringArgument:
  9430 + m_BoolArgument: 1
  9431 + m_CallState: 2
9040 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 9432 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
9041 Culture=neutral, PublicKeyToken=null 9433 Culture=neutral, PublicKeyToken=null
9042 --- !u!114 &1577109303 9434 --- !u!114 &1577109303
@@ -9213,6 +9605,68 @@ CanvasRenderer: @@ -9213,6 +9605,68 @@ CanvasRenderer:
9213 type: 2} 9605 type: 2}
9214 m_PrefabInternal: {fileID: 0} 9606 m_PrefabInternal: {fileID: 0}
9215 m_GameObject: {fileID: 1621592085} 9607 m_GameObject: {fileID: 1621592085}
  9608 +--- !u!1 &1665948602
  9609 +GameObject:
  9610 + m_ObjectHideFlags: 0
  9611 + m_PrefabParentObject: {fileID: 0}
  9612 + m_PrefabInternal: {fileID: 0}
  9613 + serializedVersion: 4
  9614 + m_Component:
  9615 + - 224: {fileID: 1665948603}
  9616 + - 222: {fileID: 1665948605}
  9617 + - 114: {fileID: 1665948604}
  9618 + m_Layer: 5
  9619 + m_Name: Image
  9620 + m_TagString: Untagged
  9621 + m_Icon: {fileID: 0}
  9622 + m_NavMeshLayer: 0
  9623 + m_StaticEditorFlags: 0
  9624 + m_IsActive: 1
  9625 +--- !u!224 &1665948603
  9626 +RectTransform:
  9627 + m_ObjectHideFlags: 0
  9628 + m_PrefabParentObject: {fileID: 0}
  9629 + m_PrefabInternal: {fileID: 0}
  9630 + m_GameObject: {fileID: 1665948602}
  9631 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  9632 + m_LocalPosition: {x: 0, y: 0, z: 0}
  9633 + m_LocalScale: {x: 1, y: 1, z: 1}
  9634 + m_Children:
  9635 + - {fileID: 1525104851}
  9636 + m_Father: {fileID: 117472616}
  9637 + m_RootOrder: 0
  9638 + m_AnchorMin: {x: .5, y: .5}
  9639 + m_AnchorMax: {x: .5, y: .5}
  9640 + m_AnchoredPosition: {x: 0, y: 0}
  9641 + m_SizeDelta: {x: 1400, y: 420}
  9642 + m_Pivot: {x: .5, y: .5}
  9643 +--- !u!114 &1665948604
  9644 +MonoBehaviour:
  9645 + m_ObjectHideFlags: 0
  9646 + m_PrefabParentObject: {fileID: 0}
  9647 + m_PrefabInternal: {fileID: 0}
  9648 + m_GameObject: {fileID: 1665948602}
  9649 + m_Enabled: 1
  9650 + m_EditorHideFlags: 0
  9651 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
  9652 + m_Name:
  9653 + m_EditorClassIdentifier:
  9654 + m_Material: {fileID: 0}
  9655 + m_Color: {r: 1, g: 1, b: 1, a: 1}
  9656 + m_Sprite: {fileID: 21300000, guid: 50d21420fd916e048b11cacad3dda079, type: 3}
  9657 + m_Type: 0
  9658 + m_PreserveAspect: 1
  9659 + m_FillCenter: 1
  9660 + m_FillMethod: 4
  9661 + m_FillAmount: 1
  9662 + m_FillClockwise: 1
  9663 + m_FillOrigin: 0
  9664 +--- !u!222 &1665948605
  9665 +CanvasRenderer:
  9666 + m_ObjectHideFlags: 0
  9667 + m_PrefabParentObject: {fileID: 0}
  9668 + m_PrefabInternal: {fileID: 0}
  9669 + m_GameObject: {fileID: 1665948602}
9216 --- !u!1 &1669460799 9670 --- !u!1 &1669460799
9217 GameObject: 9671 GameObject:
9218 m_ObjectHideFlags: 0 9672 m_ObjectHideFlags: 0
@@ -9322,6 +9776,17 @@ MonoBehaviour: @@ -9322,6 +9776,17 @@ MonoBehaviour:
9322 m_StringArgument: 9776 m_StringArgument:
9323 m_BoolArgument: 0 9777 m_BoolArgument: 0
9324 m_CallState: 2 9778 m_CallState: 2
  9779 + - m_Target: {fileID: 478527309}
  9780 + m_MethodName: setHomeScreen
  9781 + m_Mode: 6
  9782 + m_Arguments:
  9783 + m_ObjectArgument: {fileID: 0}
  9784 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  9785 + m_IntArgument: 0
  9786 + m_FloatArgument: 0
  9787 + m_StringArgument:
  9788 + m_BoolArgument: 0
  9789 + m_CallState: 2
9325 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 9790 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
9326 Culture=neutral, PublicKeyToken=null 9791 Culture=neutral, PublicKeyToken=null
9327 --- !u!114 &1669460802 9792 --- !u!114 &1669460802
@@ -9409,7 +9874,7 @@ MonoBehaviour: @@ -9409,7 +9874,7 @@ MonoBehaviour:
9409 m_SelectOnRight: {fileID: 0} 9874 m_SelectOnRight: {fileID: 0}
9410 m_Transition: 1 9875 m_Transition: 1
9411 m_Colors: 9876 m_Colors:
9412 - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 9877 + m_NormalColor: {r: .254901975, g: .741176486, b: .862745166, a: 1}
9413 m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1} 9878 m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1}
9414 m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1} 9879 m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1}
9415 m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814} 9880 m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814}
@@ -9462,6 +9927,17 @@ MonoBehaviour: @@ -9462,6 +9927,17 @@ MonoBehaviour:
9462 m_StringArgument: 9927 m_StringArgument:
9463 m_BoolArgument: 1 9928 m_BoolArgument: 1
9464 m_CallState: 2 9929 m_CallState: 2
  9930 + - m_Target: {fileID: 478527309}
  9931 + m_MethodName: setHomeScreen
  9932 + m_Mode: 6
  9933 + m_Arguments:
  9934 + m_ObjectArgument: {fileID: 0}
  9935 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  9936 + m_IntArgument: 0
  9937 + m_FloatArgument: 0
  9938 + m_StringArgument:
  9939 + m_BoolArgument: 1
  9940 + m_CallState: 2
9465 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 9941 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
9466 Culture=neutral, PublicKeyToken=null 9942 Culture=neutral, PublicKeyToken=null
9467 --- !u!114 &1708734847 9943 --- !u!114 &1708734847
@@ -9846,7 +10322,7 @@ Transform: @@ -9846,7 +10322,7 @@ Transform:
9846 m_Children: 10322 m_Children:
9847 - {fileID: 2123885087} 10323 - {fileID: 2123885087}
9848 m_Father: {fileID: 0} 10324 m_Father: {fileID: 0}
9849 - m_RootOrder: 2 10325 + m_RootOrder: 4
9850 --- !u!20 &1772891849 10326 --- !u!20 &1772891849
9851 Camera: 10327 Camera:
9852 m_ObjectHideFlags: 0 10328 m_ObjectHideFlags: 0
@@ -10005,6 +10481,17 @@ MonoBehaviour: @@ -10005,6 +10481,17 @@ MonoBehaviour:
10005 m_StringArgument: 10481 m_StringArgument:
10006 m_BoolArgument: 1 10482 m_BoolArgument: 1
10007 m_CallState: 2 10483 m_CallState: 2
  10484 + - m_Target: {fileID: 478527309}
  10485 + m_MethodName: setHomeScreen
  10486 + m_Mode: 6
  10487 + m_Arguments:
  10488 + m_ObjectArgument: {fileID: 0}
  10489 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  10490 + m_IntArgument: 0
  10491 + m_FloatArgument: 0
  10492 + m_StringArgument:
  10493 + m_BoolArgument: 1
  10494 + m_CallState: 2
10008 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 10495 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
10009 Culture=neutral, PublicKeyToken=null 10496 Culture=neutral, PublicKeyToken=null
10010 --- !u!114 &1778899874 10497 --- !u!114 &1778899874
@@ -10615,7 +11102,18 @@ MonoBehaviour: @@ -10615,7 +11102,18 @@ MonoBehaviour:
10615 m_TargetGraphic: {fileID: 1814140556} 11102 m_TargetGraphic: {fileID: 1814140556}
10616 m_OnClick: 11103 m_OnClick:
10617 m_PersistentCalls: 11104 m_PersistentCalls:
10618 - m_Calls: [] 11105 + m_Calls:
  11106 + - m_Target: {fileID: 578311381}
  11107 + m_MethodName: callVoiceRecognizer
  11108 + m_Mode: 1
  11109 + m_Arguments:
  11110 + m_ObjectArgument: {fileID: 0}
  11111 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  11112 + m_IntArgument: 0
  11113 + m_FloatArgument: 0
  11114 + m_StringArgument:
  11115 + m_BoolArgument: 0
  11116 + m_CallState: 2
10619 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 11117 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
10620 Culture=neutral, PublicKeyToken=null 11118 Culture=neutral, PublicKeyToken=null
10621 --- !u!114 &1814140556 11119 --- !u!114 &1814140556
@@ -11183,7 +11681,7 @@ Transform: @@ -11183,7 +11681,7 @@ Transform:
11183 m_LocalScale: {x: 1, y: 1, z: 1} 11681 m_LocalScale: {x: 1, y: 1, z: 1}
11184 m_Children: [] 11682 m_Children: []
11185 m_Father: {fileID: 0} 11683 m_Father: {fileID: 0}
11186 - m_RootOrder: 3 11684 + m_RootOrder: 5
11187 --- !u!1001 &1924401076 11685 --- !u!1001 &1924401076
11188 Prefab: 11686 Prefab:
11189 m_ObjectHideFlags: 0 11687 m_ObjectHideFlags: 0
@@ -11221,7 +11719,7 @@ Prefab: @@ -11221,7 +11719,7 @@ Prefab:
11221 objectReference: {fileID: 0} 11719 objectReference: {fileID: 0}
11222 - target: {fileID: 484614, guid: da45329542b035e4da18f1132cc3d700, type: 2} 11720 - target: {fileID: 484614, guid: da45329542b035e4da18f1132cc3d700, type: 2}
11223 propertyPath: m_RootOrder 11721 propertyPath: m_RootOrder
11224 - value: 0 11722 + value: 1
11225 objectReference: {fileID: 0} 11723 objectReference: {fileID: 0}
11226 - target: {fileID: 11435512, guid: da45329542b035e4da18f1132cc3d700, type: 2} 11724 - target: {fileID: 11435512, guid: da45329542b035e4da18f1132cc3d700, type: 2}
11227 propertyPath: SUBTITLES 11725 propertyPath: SUBTITLES
@@ -11734,6 +12232,17 @@ MonoBehaviour: @@ -11734,6 +12232,17 @@ MonoBehaviour:
11734 m_StringArgument: 12232 m_StringArgument:
11735 m_BoolArgument: 1 12233 m_BoolArgument: 1
11736 m_CallState: 2 12234 m_CallState: 2
  12235 + - m_Target: {fileID: 478527309}
  12236 + m_MethodName: setHomeScreen
  12237 + m_Mode: 6
  12238 + m_Arguments:
  12239 + m_ObjectArgument: {fileID: 0}
  12240 + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  12241 + m_IntArgument: 0
  12242 + m_FloatArgument: 0
  12243 + m_StringArgument:
  12244 + m_BoolArgument: 1
  12245 + m_CallState: 2
11737 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 12246 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
11738 Culture=neutral, PublicKeyToken=null 12247 Culture=neutral, PublicKeyToken=null
11739 --- !u!114 &2084437506 12248 --- !u!114 &2084437506
Assets/Scripts/GenericPlayerManager.cs
@@ -84,6 +84,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { @@ -84,6 +84,7 @@ public abstract class GenericPlayerManager : MonoBehaviour {
84 84
85 protected bool playing = false; 85 protected bool playing = false;
86 protected bool paused = false; 86 protected bool paused = false;
  87 + protected VoiceRecognition voiceRecognizer;
87 88
88 public virtual void Start() 89 public virtual void Start()
89 { 90 {
@@ -91,6 +92,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { @@ -91,6 +92,7 @@ public abstract class GenericPlayerManager : MonoBehaviour {
91 COMPONENT_ANIMATION = AVATAR.GetComponent<Animation>();//referencia para o componente animador do avatar 92 COMPONENT_ANIMATION = AVATAR.GetComponent<Animation>();//referencia para o componente animador do avatar
92 AVATAR_COLLIDER = GameObject.FindGameObjectWithTag("avatar").GetComponent<BoxCollider>(); 93 AVATAR_COLLIDER = GameObject.FindGameObjectWithTag("avatar").GetComponent<BoxCollider>();
93 Application.ExternalCall("onLoadPlayer");//var onLoadPlayer = function(){} 94 Application.ExternalCall("onLoadPlayer");//var onLoadPlayer = function(){}
  95 + voiceRecognizer = new VoiceRecognition();
94 } 96 }
95 97
96 public void SetAvatarCollider(bool isActive) 98 public void SetAvatarCollider(bool isActive)
Assets/Scripts/PlayerManager.cs
@@ -22,6 +22,7 @@ public class PlayerManager : GenericPlayerManager { @@ -22,6 +22,7 @@ public class PlayerManager : GenericPlayerManager {
22 //private const string BASE_URL = "http://150.165.205.9/anims/AssetBundles/0_DefaultBundles/"; 22 //private const string BASE_URL = "http://150.165.205.9/anims/AssetBundles/0_DefaultBundles/";
23 public InputField INFIELD; 23 public InputField INFIELD;
24 private int version = 1; 24 private int version = 1;
  25 + private bool thereIsConnection;
25 26
26 public void catchGlosa(String glosa) 27 public void catchGlosa(String glosa)
27 { 28 {
@@ -86,29 +87,6 @@ public class PlayerManager : GenericPlayerManager { @@ -86,29 +87,6 @@ public class PlayerManager : GenericPlayerManager {
86 } 87 }
87 } 88 }
88 89
89 - protected string getGlosaFromServer(string str)  
90 - {  
91 - string strToServer = "";  
92 -  
93 - foreach (char c in str)  
94 - if (c.Equals(' '))  
95 - strToServer += "%20";  
96 - else  
97 - strToServer += c;  
98 -  
99 - Debug.Log("str to server -> " + strToServer);  
100 -  
101 - string urlWithText = SERVER_URL + strToServer;  
102 -  
103 - WWW www = new WWW(urlWithText);  
104 - StartCoroutine(waitForRequest(www));  
105 -  
106 - // while(!www.isDone) Thread.Sleep(250);  
107 -  
108 - Debug.Log("returned from server -> " + www.text);  
109 - return www.text;  
110 - }  
111 -  
112 protected IEnumerator waitForRequest(WWW www) 90 protected IEnumerator waitForRequest(WWW www)
113 { 91 {
114 yield return www.isDone; 92 yield return www.isDone;
@@ -119,4 +97,49 @@ public class PlayerManager : GenericPlayerManager { @@ -119,4 +97,49 @@ public class PlayerManager : GenericPlayerManager {
119 else 97 else
120 Debug.Log("WWW Error: "+ www.error); 98 Debug.Log("WWW Error: "+ www.error);
121 } 99 }
  100 +
  101 + // Called from microphone icon at main interface
  102 + public void callVoiceRecognizer()
  103 + {
  104 + /*
  105 + //base.voiceRecognizer.callConnectionError();
  106 + CheckConnection();
  107 + //StartCoroutine(CheckConnection());
  108 + Debug.Log("passou");
  109 + if(thereIsConnection)
  110 + {
  111 + //base.glosa = base.voiceRecognizer.callRecognition();
  112 + base.glosa = base.voiceRecognizer.callRecognition();
  113 + if(!base.glosa.Equals(""))
  114 + {
  115 + StartCoroutine(translate ());
  116 + }
  117 + }
  118 + else
  119 + {
  120 +
  121 + Debug.Log("NO NET");
  122 + //ShowErrorMessage();
  123 + //base.voiceRecognizer.callConnectionError();
  124 + //base.voiceRecognizer.callConnectionError();
  125 + }
  126 + //base.voiceRecognizer.callConnectionError();*/
  127 + }
  128 +
  129 + void CheckConnection()
  130 + {
  131 + thereIsConnection = false;
  132 + WWW www = new WWW("https://www.google.com.br");
  133 + waitForRequest(www);
  134 +
  135 + if(www.bytesDownloaded > 0){
  136 + thereIsConnection = true;
  137 + Debug.Log("connection ok");
  138 + }
  139 + else{
  140 + Debug.Log("no connection");
  141 + thereIsConnection = false;
  142 +
  143 + }
  144 + }
122 } 145 }
Assets/Scripts/ScreenReferences.cs 0 → 100644
@@ -0,0 +1,99 @@ @@ -0,0 +1,99 @@
  1 +/**********************
  2 +********LAVID**********
  3 +***VLibras Project*****
  4 +*------------------------------------------------------------------------
  5 +*Description:
  6 +*
  7 +* Controls screens transactions (back button)
  8 +*
  9 +*------------------------------------------------------------------------
  10 +**Author: Claudiomar Araujo
  11 +*claudiomar.araujo@lavid.ufpb.br
  12 +*/
  13 +using UnityEngine;
  14 +using System.Collections;
  15 +using System.Threading;
  16 +
  17 +public class ScreenReferences : MonoBehaviour {
  18 +
  19 + // tutorials
  20 + public GameObject infos;
  21 + public GameObject t_1;
  22 + public GameObject t_2;
  23 + public GameObject t_3;
  24 + public GameObject t_4;
  25 + public GameObject t_5;
  26 +
  27 + public BoxCollider collider;
  28 + public GameObject text_entry;
  29 + public GameObject i_bar;
  30 + public PlayerManager player_manager;
  31 + private static bool HOME_SCREEN;
  32 +
  33 + void Update()
  34 + {
  35 + if (Input.GetKey(KeyCode.Escape))
  36 + {
  37 + if(HOME_SCREEN)
  38 + {
  39 + Application.Quit();
  40 + }
  41 + else
  42 + {
  43 + BackToHomeScreen();
  44 + }
  45 + Thread.Sleep(500);
  46 + }
  47 + }
  48 +
  49 + void Start()
  50 + {
  51 + HOME_SCREEN = true;
  52 + collider = GameObject.FindGameObjectWithTag("avatar").GetComponent<BoxCollider>();
  53 + }
  54 +
  55 + void BackToHomeScreen()
  56 + {
  57 + collider.enabled = true;
  58 + HOME_SCREEN = true;
  59 +
  60 + if(infos.activeSelf)
  61 + {
  62 + infos.SetActive(false);
  63 + }
  64 + if(t_1.activeSelf)
  65 + {
  66 + t_1.SetActive(false);
  67 + }
  68 + if(t_2.activeSelf)
  69 + {
  70 + t_2.SetActive(false);
  71 + }
  72 + if(t_3.activeSelf)
  73 + {
  74 + t_3.SetActive(false);
  75 + }
  76 + if(t_4.activeSelf)
  77 + {
  78 + t_4.SetActive(false);
  79 + }
  80 + if(t_5.activeSelf)
  81 + {
  82 + t_5.SetActive(false);
  83 + }
  84 + if(!i_bar.activeSelf)
  85 + {
  86 + i_bar.SetActive(true);
  87 + }
  88 + if(text_entry.activeSelf)
  89 + {
  90 + text_entry.SetActive(false);
  91 + }
  92 +
  93 + }
  94 +
  95 + public void setHomeScreen(bool value)
  96 + {
  97 + HOME_SCREEN = value;
  98 + }
  99 +}
Assets/Scripts/ScreenReferences.cs.meta 0 → 100644
@@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
  1 +fileFormatVersion: 2
  2 +guid: 11f8b85837bcf7c4da290b756e6580da
  3 +timeCreated: 1443632970
  4 +licenseType: Free
  5 +MonoImporter:
  6 + serializedVersion: 2
  7 + defaultReferences: []
  8 + executionOrder: 0
  9 + icon: {instanceID: 0}
  10 + userData:
  11 + assetBundleName:
  12 + assetBundleVariant:
Assets/Scripts/UIManagers/UIManagerConnectionError.cs 0 → 100644
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
  1 +using UnityEngine;
  2 +using UnityEngine.UI;
  3 +
  4 +public class UIManagerConnectionError : UIManager {
  5 +
  6 + public Image box;
  7 +
  8 + protected override void rebuild(float scale)
  9 + {
  10 + box.transform.localScale = new Vector3(scale, scale, 1);
  11 + }
  12 +
  13 +}
Assets/Scripts/UIManagers/UIManagerConnectionError.cs.meta 0 → 100644
@@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
  1 +fileFormatVersion: 2
  2 +guid: 09acbdec1f642334e86af23b51b56662
  3 +timeCreated: 1443641228
  4 +licenseType: Free
  5 +MonoImporter:
  6 + serializedVersion: 2
  7 + defaultReferences: []
  8 + executionOrder: 0
  9 + icon: {instanceID: 0}
  10 + userData:
  11 + assetBundleName:
  12 + assetBundleVariant:
Assets/Scripts/VoiceRecognition.cs 0 → 100644
@@ -0,0 +1,63 @@ @@ -0,0 +1,63 @@
  1 +/**********************
  2 +********LAVID**********
  3 +***VLibras Project*****
  4 +*------------------------------------------------------------------------
  5 +*Description:
  6 +*
  7 +*This class needs an android plugin to call Google Speech API
  8 +*Before recognition, it verifies if there is internect connection.
  9 +*If there is no connection, the application doesn't run and shows an error message.
  10 +*
  11 +*---------------------------------------------------------------------------
  12 +*Plugin directory:
  13 +* - Assets/Plugins/Android
  14 +*References:
  15 +* - http://docs.unity3d.com/ScriptReference/AndroidJavaClass.html
  16 +* - https://msdn.microsoft.com/pt-br/library/system.net.webclient(v=vs.110).aspx
  17 +*
  18 +*------------------------------------------------------------------------
  19 +*Author: Claudiomar Araujo
  20 +*claudiomar.araujo@lavid.ufpb.br
  21 +***********************/
  22 +
  23 +using UnityEngine;
  24 +using System.Collections;
  25 +using UnityEngine.UI;
  26 +using System;
  27 +
  28 +public class VoiceRecognition{
  29 +
  30 + AndroidJavaClass unity;
  31 + AndroidJavaObject currentActivity;
  32 +
  33 + string voiceText = "";
  34 +
  35 +
  36 + // Constructor
  37 + public VoiceRecognition()
  38 + {
  39 + #if !UNITY_EDITOR
  40 + unity = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
  41 + currentActivity = unity.Get<AndroidJavaObject> ("currentActivity");
  42 + #endif
  43 + }
  44 +
  45 + // Calls Google Speech from plugin method and returns recognized text
  46 + public string callRecognition()
  47 + {
  48 +#if !UNITY_EDITOR
  49 + voiceText = currentActivity.Call<string> ("callGoogleSpeech");
  50 +#endif
  51 +
  52 + return voiceText;
  53 + }
  54 +
  55 + public void callConnectionError()
  56 + {
  57 + Debug.Log("frsef");
  58 + currentActivity.Call ("displayConnectionError");
  59 + //currentActivity.Call ("callGoogleSpeech", "error");
  60 + //currentActivity.Call<string> ("callGoogleSpeech", "error");
  61 + Debug.Log("frsef");
  62 + }
  63 +}
Assets/Scripts/VoiceRecognition.cs.meta 0 → 100644
@@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
  1 +fileFormatVersion: 2
  2 +guid: 7b20eaea5baef4a4b9723c9da4e2db3f
  3 +timeCreated: 1443632970
  4 +licenseType: Free
  5 +MonoImporter:
  6 + serializedVersion: 2
  7 + defaultReferences: []
  8 + executionOrder: 0
  9 + icon: {instanceID: 0}
  10 + userData:
  11 + assetBundleName:
  12 + assetBundleVariant:
ProjectSettings/ProjectVersion.txt
1 -m_EditorVersion: 5.1.2f1 1 +m_EditorVersion: 5.1.1f1
2 m_StandardAssetsVersion: 0 2 m_StandardAssetsVersion: 0