Commit 0345388ff67f8286a95b15497d2cebaf4dd951bd

Authored by Icaro Magalhaes
1 parent af3954a2
Exists in master and in 1 other branch dev

Modifica script inspetor para requisição web

Assets/Resources/ANIMS/anims/LAVID.anim.meta
1 1 fileFormatVersion: 2
2   -guid: d33e6748a760ebf47a327a945f49a5ff
3   -timeCreated: 1435101905
  2 +guid: 1fd14751dcfa1884fb52c97c589c87ef
  3 +timeCreated: 1435780468
4 4 licenseType: Pro
5 5 NativeFormatImporter:
6 6 userData:
... ...
Assets/Resources/ANIMS/anims/MAIS.anim.meta
1 1 fileFormatVersion: 2
2   -guid: 036a4442639e0f7439b54cb981522e5c
3   -timeCreated: 1435101904
  2 +guid: 40bf2f48a19e903438161148ab945f8f
  3 +timeCreated: 1435780520
4 4 licenseType: Pro
5 5 NativeFormatImporter:
6 6 userData:
... ...
Assets/Resources/ANIMS/anims/SUCESSO.anim.meta
1 1 fileFormatVersion: 2
2   -guid: 6c1cd30dbfa30ef48931b49b4e94020c
3   -timeCreated: 1435101905
  2 +guid: 7fec89616c9ddf8459f7abae66587203
  3 +timeCreated: 1435780613
4 4 licenseType: Pro
5 5 NativeFormatImporter:
6 6 userData:
... ...
Assets/Resources/ANIMS/anims/UFPB.anim.meta
1 1 fileFormatVersion: 2
2   -guid: 7cdcfb276b45c9a4f82302307f877b67
3   -timeCreated: 1435101905
  2 +guid: a90c01c36d2ad98419b6b0a24aa0f0ee
  3 +timeCreated: 1435780677
4 4 licenseType: Pro
5 5 NativeFormatImporter:
6 6 userData:
... ...
Assets/Resources/ANIMS/anims/VLIBRAS.anim.meta
1 1 fileFormatVersion: 2
2   -guid: 0b1416e62b69c204d9a4a3db38ebcccd
3   -timeCreated: 1435101904
  2 +guid: 03acdd3f7575f944b99290b41c3f543d
  3 +timeCreated: 1435780430
4 4 licenseType: Pro
5 5 NativeFormatImporter:
6 6 userData:
... ...
Assets/Scene.unity
... ... @@ -134,7 +134,7 @@ Prefab:
134 134 objectReference: {fileID: 0}
135 135 - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2}
136 136 propertyPath: m_RootOrder
137   - value: 0
  137 + value: 1
138 138 objectReference: {fileID: 0}
139 139 - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2}
140 140 propertyPath: m_Animations.Array.data[0]
... ... @@ -193,7 +193,7 @@ Prefab:
193 193 objectReference: {fileID: 0}
194 194 - target: {fileID: 426230, guid: cd81d95d2fa8dc448b18a415b9009d43, type: 2}
195 195 propertyPath: m_RootOrder
196   - value: 2
  196 + value: 0
197 197 objectReference: {fileID: 0}
198 198 m_RemovedComponents: []
199 199 m_ParentPrefab: {fileID: 100100000, guid: cd81d95d2fa8dc448b18a415b9009d43, type: 2}
... ... @@ -235,7 +235,7 @@ Prefab:
235 235 objectReference: {fileID: 0}
236 236 - target: {fileID: 22403302, guid: 12db97f21fb2a7d4cb537ec5395de1b9, type: 2}
237 237 propertyPath: m_RootOrder
238   - value: 1
  238 + value: 2
239 239 objectReference: {fileID: 0}
240 240 - target: {fileID: 22403302, guid: 12db97f21fb2a7d4cb537ec5395de1b9, type: 2}
241 241 propertyPath: m_AnchoredPosition.x
... ...
Assets/Scripts/InspectorScript.cs
1 1 //Log Dir http://docs.unity3d.com/Manual/LogFiles.html
2 2 using UnityEngine;
3   -using UnityEditor;
4 3 using System.Collections;
5 4 using System.Collections.Generic;
6 5 using System;
... ... @@ -29,10 +28,6 @@ public class InspectorScript : MonoBehaviour {
29 28  
30 29 void Start( ){
31 30  
32   -
33   -
34   -
35   -
36 31 try{ Debug.Log("Inicializando: "+coreInitialize( )); }catch(Exception e){ Debug.Log (e.ToString());}
37 32  
38 33 ICARO = GameObject.FindGameObjectWithTag("avatar");
... ... @@ -47,8 +42,6 @@ public class InspectorScript : MonoBehaviour {
47 42  
48 43 void addAlpha( ){
49 44  
50   -
51   -
52 45 foreach( char letter in alfabeto ){
53 46  
54 47 aniClip = Resources.Load<AnimationClip> ("ANIMS/alpha/"+letter);
... ... @@ -183,12 +176,36 @@ public class InspectorScript : MonoBehaviour {
183 176  
184 177 }
185 178  
186   - void onGui(){
  179 + void OnGUI(){
187 180  
188 181 if( GUI.Button(new Rect(10, 10, 50, 50), "TESTE") ){
189   - Debug.Log("Clicked the button with an image");
  182 + int version = 1;
  183 +
  184 + //StartCoroutine( bundleCatch(glosa.ToLower(), version) );
  185 + StartCoroutine( bundleCatch("ABOBRINHA", version) );
190 186 }
191   -
  187 +
  188 +
  189 + }
  190 +
  191 + IEnumerator bundleCatch( String token, int version ){ string BaseURL = "http://150.165.205.9/anims/";
  192 +
  193 + WWW www = WWW.LoadFromCacheOrDownload(BaseURL+token, version);
  194 + yield return www;
  195 + if (www.error != null) throw new Exception("Erro no WWW! Se liga nego: " + www.error);
  196 +
  197 + UnityEngine.Object[] bundleBaixado = www.assetBundle.LoadAllAssets();
  198 +
  199 + foreach(UnityEngine.Object animacao in bundleBaixado){
  200 +
  201 + COMPONENT_ANIMATION.AddClip(animacao as AnimationClip, animacao.name);
  202 +
  203 + Debug.Log(animacao.name+" - "+animacao.GetType());
  204 +
  205 + COMPONENT_ANIMATION.CrossFadeQueued(animacao.name, 0.6f, QueueMode.CompleteOthers);
  206 +
  207 + }
  208 +
192 209 }
193 210  
194 211 }
195 212 \ No newline at end of file
... ...
ProjectSettings/ProjectSettings.asset
... ... @@ -402,7 +402,7 @@ PlayerSettings:
402 402 WebGL::audioCompressionFormat: 4
403 403 WebGL::exceptionSupport: 0
404 404 WebGL::memorySize: 256
405   - iOS::Architecture: 2
  405 + iOS::Architecture: 0
406 406 iOS::ScriptingBackend: 0
407 407 boolPropertyNames:
408 408 - WebGL::dataCaching
... ...