/// <summary> /// Triggers an Event Manually /// </summary> /// <param name="uiEvent"></param> public void TriggerEvent(AnimationTrigger uiEvent) { foreach (Animation ad in animators) { ad.CheckState(uiEvent); } }
/// <summary> /// Checks the state of the object /// Starts animating when triggered /// </summary> /// <param name="trigger">trigger to check against</param> public void CheckState(AnimationTrigger trigger) { if (Trigger == trigger) { IsAnimating = true; TimeSinceAnimationStart = 0; } }
// Update is called once per frame void Update() { AnimationTrigger atScript = AnimStarters.GetComponent <AnimationTrigger>(); if (atScript.finish && !isFinsihWriting) { writeJsonFile2(); } }
void Update() { if (Input.GetButtonDown("Fire1")) { Shoot(); AnimationTrigger.FireTriggered(); // ShootingFire.Play("ShootingFireAnimation"); } }
/// <summary> /// Virtual method used by the <see cref="GoBackCommand"/> property /// to invoke the <see cref="Windows.UI.Xaml.Controls.Frame.GoBack"/> method. /// </summary> public virtual async void GoBack() { if (this.Frame != null && this.Frame.CanGoBack) { await AnimationTrigger.AnimateClose(); this.Frame.GoBack(); } }
public override void Start() { base.Start(); if (!animationTrigger) { // wenn kein Trigger in public variable dann in eigenem gameobject suchen animationTrigger = GetComponent <AnimationTrigger>(); } }
public void SetTrigger(AnimationTrigger trigger) { this.m_Trigger = trigger; Collider[] componentsInChildren = this.m_Trigger.GetComponentsInChildren <Collider>(); for (int i = 0; i < componentsInChildren.Length; i++) { Physics.IgnoreCollision(componentsInChildren[i], Player.Get().m_Collider); } }
private void UpdateFace(AnimationTrigger animationTrigger) { for (int i = 0; i < _blendShapeExpressions.Length; i++) { if ((_blendShapeExpressions[i].Length > 0) && (animationTrigger.Animations.ContainsKey(_blendShapeExpressions[i]))) { SetBlendShapeValue(animationTrigger.Animations[_blendShapeExpressions[i]], i, ref _executeSmoothing[i], animationTrigger.IsAnimationDataValid); } } }
public ElementInfo( UIElement element, AnimationTrigger trigger, AnimationContext context) { Element = element; Trigger = trigger; Context = context; OldBounds = default; NewBounds = default; }
private async void ExperimentsButton_OnClick(object sender, RoutedEventArgs e) { await Task.WhenAll( AnimationTrigger.AnimateClose(), ExperimentsButton.AnimateAsync(new FlipAnimation()), ExperimentsButton.AnimateAsync(new BounceOutAnimation()), HelloButton.AnimateAsync(new BounceOutUpAnimation()), SponsorText.AnimateAsync(new LightSpeedOutLeftAnimation()) ); Frame.Navigate(typeof(ExperimentPage)); }
protected override async void OnBackKeyPress(CancelEventArgs e) { e.Cancel = true; await Task.WhenAll(new[] { AnimationTrigger.AnimateClose(), Person.ScaleToAsync(0.5, new Point(1.6, 1.6), new BackEase()) }); NavigationService.GoBack(); }
protected async override void OnBackKeyPress(CancelEventArgs e) { e.Cancel = true; await Task.WhenAll(new[] { AnimationTrigger.AnimateClose(), TimeGrid.AnimateAsync(new BounceOutDownAnimation()) }); NavigationService.GoBack(); }
public ElementInfo( UIElement element, AnimationTrigger trigger, AnimationContext context, Rect oldBounds, Rect newBounds) { Element = element; Trigger = trigger; Context = context; OldBounds = oldBounds; NewBounds = newBounds; }
public ElementInfo( UIElement element, AnimationTrigger trigger, AnimationContext context) { Debug.Assert(trigger != AnimationTrigger.BoundsChange); Element = element; Trigger = trigger; Context = context; OldBounds = default; NewBounds = default; }
void Update() { ProcessAllTriggers(); AnimationTrigger animationTrigger = SupportedTriggers[0] as AnimationTrigger; if (animationTrigger == null) { return; } UpdateFace(animationTrigger); }
private async void ShowcaseButton_OnClick(object sender, RoutedEventArgs e) { await Task.WhenAll( AnimationTrigger.AnimateClose(), ShowcaseButton.AnimateAsync(new FlipAnimation()), ShowcaseButton.AnimateAsync(new BounceOutDownAnimation()), NavigationButton.AnimateAsync(new BounceOutDownAnimation()), ExperimentsButton.AnimateAsync(new BounceOutDownAnimation()), SponsorText.AnimateAsync(new LightSpeedOutLeftAnimation()) ); NavigationService.Navigate(new Uri("/ShowcasePage.xaml", UriKind.Relative)); }
public static async void AnimateClose(this Frame frame) { var animations = new List <Task>(); foreach (var element in AnimationTrigger.CloseElements.ToList()) { var closeDefinition = AnimationTrigger.GetClose(element); if (closeDefinition != null) { animations.Add(element.AnimateAsync(closeDefinition)); } } await Task.WhenAll(animations.ToArray()); }
public void OnClick() { if (!TargetAnimator) { #if DEBUG Debug.LogError("No Animator-component found."); #endif return; } AnimationTrigger trigger = SelectedAnimationTrigger; if (Toggleable && wasToggled) { trigger = ToggleAnimationTrigger; } switch (trigger) { case AnimationTrigger.Show: TargetAnimator.SetTrigger("Show"); break; case AnimationTrigger.Hide: TargetAnimator.SetTrigger("Hide"); break; case AnimationTrigger.ToggleIn: TargetAnimator.SetTrigger("ToggleIn"); break; case AnimationTrigger.ToggleOut: TargetAnimator.SetTrigger("ToggleOut"); break; default: #if DEBUG Debug.LogWarning("No Trigger selected."); #endif break; } wasToggled = !wasToggled; }
public void writeJsonFile(List <UnMunicipio> listaNueva) { /*JSONObject j = new JSONObject(); * j = listaNueva as JSONObject;*/ //number //j.AddField("field1", 0.5); //string //j.AddField("field2", "sampletext"); //array //JSONObject arr = new JSONObject(JSONObject.Type.ARRAY); AnimationTrigger atScript = AnimStarters.GetComponent <AnimationTrigger>(); atScript.isGrowing = true; if (atScript.finish) { string str; string strAll; strAll = "["; for (int i = 0; i < TodosMunicipios.Count; i++) { str = JsonUtility.ToJson(TodosMunicipios [0]); if (i < TodosMunicipios.Count - 1) { strAll += str + ","; } else { strAll += str; } } strAll += "]"; //var N = JSON.ToString(listaNueva); Debug.Log("FICHERO1: " + TodosMunicipios); //JsonData jsd = JsonMapper.ToJson (listaNueva); //string s=listaNueva.ToString (); //Debug.Log ("FICHERO2: "+jsd); //Debug.Log ("FICHERO3: "+str); //File.WriteAllText (Application.dataPath + "/Resources/Json/DatosMunicipios2.Json", strAll); } }
private async void GamesGridView_ItemClick(object sender, ItemClickEventArgs e) { var gameDefinition = ((GameDefinition)e.ClickedItem); triggered = true; await Task.WhenAll(new [] { AnimationTrigger.AnimateClose(), Boxtana.Do(BoxtanaAction.Exit), GamesGridView.AnimateItems( new BounceOutDownAnimation(), 0.05, gameDefinition, new ExpandAnimation { Duration = 0.8, FinalScale = 1.1 }) }); Frame.Navigate(typeof(GamePage), gameDefinition.UniqueId); }
private RadAnimation CreateAnimation(AnimationTrigger change) { RadAnimation animation; switch (change) { case AnimationTrigger.ResetSource: animation = this.Owner.ItemRemovedAnimation.Clone(); animation.FillBehavior = AnimationFillBehavior.Stop; animation.Ended += this.ResetSourceAnimationEnded; return(animation); case AnimationTrigger.NullSource: animation = this.Owner.ItemRemovedAnimation.Clone(); animation.FillBehavior = AnimationFillBehavior.Stop; animation.Ended += this.NullSourceAnimationEnded; return(animation); case AnimationTrigger.NewSource: animation = this.Owner.ItemAddedAnimation.Clone(); animation.FillBehavior = AnimationFillBehavior.Stop; animation.Ended += this.AnimationEndedOnNewSource; return(animation); case AnimationTrigger.AddedItem: animation = this.Owner.ItemAddedAnimation.Clone(); animation.Ended += this.AnimationEndedOnAddedItem; animation.FillBehavior = AnimationFillBehavior.Stop; return(animation); case AnimationTrigger.RemovedItem: animation = this.Owner.ItemRemovedAnimation.Clone(); animation.FillBehavior = AnimationFillBehavior.Stop; animation.Ended += this.ItemRemovedAnimationEnded; return(animation); } return(null); }
void OnTriggerEnter(Collider col) { if (col.gameObject.name == "Maqueta1" || col.gameObject.name == "Maqueta2" || col.gameObject.name == "Maqueta3") { //Debug.Log ("IGNORE"); } else { if (this.gameObject.name == "Tablet1" || this.gameObject.name == "Tablet2" || this.gameObject.name == "Tablet3") { if (col.gameObject.name != "MarkerLeyenda1" && col.gameObject.name != "MarkerLeyenda2" && col.gameObject.name != "MarkerLeyenda3") //Conos y control movimiento //col.gameObject.GetComponent<Renderer> ().material.color = colorToChange; //color del cono { AnimationTrigger at = gameObject.GetComponent <AnimationTrigger>(); if (at.contenido != "Mesura" && at.contenido != "Plataforma") //Si es tapa //if (at.contenido != "Mesura") { { MarkerFlicker mf = col.gameObject.GetComponent <MarkerFlicker> (); //mf.c = colorToChange; } //Debug.Log (mb); if (col.gameObject.name != "Tapa1") { MarkerBehaviour mb = col.gameObject.GetComponent <MarkerBehaviour>(); /*if(isSuperposition){ * mb.isSuperposition=true; * }*/ mb.animationDecision(at.contenido, this.gameObject.name, colorToChange); } //mb.StartState = true; //Debug.Log ("HIT: "+col.gameObject.name); } if (col.gameObject.name == "Tapa1") //control de la vision y el color { AnimationTrigger at = gameObject.GetComponent <AnimationTrigger>(); if (at.contenido != "Mesura" && at.contenido != "Plataforma") { //if (at.contenido != "Mesura") { LineRenderer line = col.gameObject.GetComponent <LineRenderer> (); line.enabled = false; TapaBehaviour tb = col.gameObject.GetComponent <TapaBehaviour> (); tb.isNeuronal = false; tb.isPlataforma = false; if (isSuperposition) { tb.isSuperposition = true; tb.animationDecision("super", this.gameObject.name); /*Material[] m = tb.GetComponent<Renderer>().materials; * Color cv = m[1].color; * cv.a = 1; * m[1].color = cv; */ } else { col.gameObject.GetComponent <Renderer> ().material.color = colorToChange; MarkerFlicker mf = col.gameObject.GetComponent <MarkerFlicker> (); //mf.c = colorToChange; } //cont++; //Debug.Log ("HIT:NOT MESURA "); } else if (at.contenido == "Mesura" || at.contenido == "Plataforma") //Mesura y Plataforma { TapaBehaviour tb = col.gameObject.GetComponent <TapaBehaviour> (); LineRenderer line = col.gameObject.GetComponent <LineRenderer> (); line.enabled = false; tb.animationDecision(at.contenido, this.gameObject.name); //Debug.Log ("HIT:MESURA and PlAT "+at.contenido + " "+this.gameObject.name); } } } if (this.gameObject.name == "Tablet1Apagado" || this.gameObject.name == "Tablet2Apagado" || this.gameObject.name == "Tablet3Apagado") { if (col.gameObject.name != "Tapa1") { MarkerBehaviour mb = col.gameObject.GetComponent <MarkerBehaviour> (); AnimationTrigger at = gameObject.GetComponent <AnimationTrigger> (); //Debug.Log (col.gameObject.name); //Debug.Log (mb); mb.animationDecision(at.contenido, this.gameObject.name, colorToChange); //Debug.Log ("HIT"); } else { TapaBehaviour tb = col.gameObject.GetComponent <TapaBehaviour> (); tb.isNeuronal = false; } } if (this.gameObject.name == "ApagaSuperpos") { if (col.gameObject.name != "Tapa1") { MarkerBehaviour mb = col.gameObject.GetComponent <MarkerBehaviour> (); AnimationTrigger at = gameObject.GetComponent <AnimationTrigger> (); TapaBehaviour tb = col.gameObject.GetComponent <TapaBehaviour> (); //Debug.Log (col.gameObject.name); //Debug.Log (mb); mb.animationDecision(at.contenido, this.gameObject.name, colorToChange); //tb.isSuperposition = false; //Debug.Log ("HIT"); } else { TapaBehaviour tb = col.gameObject.GetComponent <TapaBehaviour> (); tb.isNeuronal = false; Material[] m = tb.GetComponent <Renderer>().materials; Color cv = m[1].color; cv.a = 0; m[1].color = cv; } } if (this.gameObject.name == "ControlJSonCollider") { GameObject sc = GameObject.Find("SceneControl"); rmd = sc.GetComponent <ReadMunicipiData> (); //Debug.Log ("HITJSON"); int code = col.gameObject.GetComponent <MarkerBehaviour> ().codigo; for (int i = 0; i < rmd.TodosMunicipios.Count; i++) { //Debug.Log ("State:0 m1[i]:"+m1[i]+" Codigo:"+codigo); if (code == rmd.TodosMunicipios [i].codigo) { float f = col.transform.position.y; //float f=col.transform.parent.position.y; Debug.Log("ParentPosy:" + f); var v = rmd.TodosMunicipios [i]; v.posY = f; rmd.TodosMunicipios[i] = v; Debug.Log("Y nueva:" + rmd.TodosMunicipios[i].posY); cont++; Debug.Log("EscritosJson: " + cont); break; } } } } }
public void ObjectAnimate(object sender, UUID senderID, UUID objectID, AnimationTrigger[] animations) { if (OnObjectAnimate != null) { OnObjectAnimate(sender, senderID, objectID, animations); } AvatarAnimationPacket sendAnim = new AvatarAnimationPacket(); sendAnim.Sender.ID = senderID; sendAnim.AnimationSourceList = new AvatarAnimationPacket.AnimationSourceListBlock[1]; sendAnim.AnimationSourceList[0] = new AvatarAnimationPacket.AnimationSourceListBlock(); sendAnim.AnimationSourceList[0].ObjectID = objectID; sendAnim.AnimationList = new AvatarAnimationPacket.AnimationListBlock[animations.Length]; for (int i = 0; i < animations.Length; i++) { sendAnim.AnimationList[i] = new AvatarAnimationPacket.AnimationListBlock(); sendAnim.AnimationList[i].AnimID = animations[i].AnimationID; sendAnim.AnimationList[i].AnimSequenceID = animations[i].SequenceID; } udp.BroadcastPacket(sendAnim, PacketCategory.State); }
// Use this for initialization void Start() { controller = GetComponent <CharacterController>(); trigger = GetComponent <AnimationTrigger>(); }
// Update is called once per frame void Update() { if (_isPlayingAnimation || !_player.IsTouchingGround()) { if (_movable != null) { ReleaseHold(); } return; } Physics2D.queriesStartInColliders = false; float direction = transform.localScale.x > 0 ? 1f : -1f; RaycastHit2D hitBot = Physics2D.Raycast((Vector2)_rayOriginBot.position, Vector2.right * direction, _distance, _interactableMask); RaycastHit2D hitMid = Physics2D.Raycast((Vector2)_rayOriginMid.position, Vector2.right * direction, _distance, _interactableMask); if (!hitBot && !hitMid) { return; } RaycastHit2D hit = hitBot; if (hitMid) { hit = hitMid; } Tutorial tutorial = hit.transform.GetComponent <Tutorial>(); // level 1 pull gate //if (hit.transform.tag == "Gate" && Input.GetButtonDown("Hold")) //{ // if (tutorial) // { // tutorial.Destroy(); // } // bool moveLeft = _player.transform.position.x < hit.transform.position.x ? true : false; // StartCoroutine(PullOnGate(hit.transform.GetComponent<Animator>(), 1.5f, moveLeft)); // return; //} // level 1 collect gravity switch layer if (hit.transform.tag == "Grave" && Input.GetButtonDown("Hold")) { AnimationTrigger a = hit.transform.GetComponent <AnimationTrigger>(); if (a) { if (tutorial) { tutorial.Destroy(); } a.TriggerAnimation(); AbilityManager.Instance.PickUpGravityLayer(); } return; } // push/pull boxes else if (hit.transform.tag.Contains("Movable") && Input.GetButton("Hold")) { if (tutorial) { tutorial.Destroy(); } _isMoving = true; _movable = hit.transform.gameObject.GetComponent <Movable>(); if (_movable.IsGrounded() || _movable.GetIsPressingButton()) { HoldObject(); } else { ReleaseHold(); } } else if (_movable != null && Input.GetButtonUp("Hold")) { ReleaseHold(); } if (!_player.IsTouchingGround()) { ReleaseHold(); } if (_isMoving) { float moveDirection = _player.MoveDirection(); if (moveDirection == 0) // doing nothing { _playerAnimator.SetBool("IsPushing", false); _playerAnimator.SetBool("IsPulling", false); } else if (moveDirection < 0) { if (this.transform.position.x < _movable.transform.position.x) // pulling { //Debug.Log("pulling"); _playerAnimator.SetBool("IsPushing", false); _playerAnimator.SetBool("IsPulling", true); } else // pushing { //Debug.Log("pushing"); _playerAnimator.SetBool("IsPushing", true); _playerAnimator.SetBool("IsPulling", false); } } else if (moveDirection > 0) { if (this.transform.position.x < _movable.transform.position.x) // pushing { //Debug.Log("pushing"); _playerAnimator.SetBool("IsPushing", true); _playerAnimator.SetBool("IsPulling", false); } else // pulling { //Debug.Log("pulling"); _playerAnimator.SetBool("IsPushing", false); _playerAnimator.SetBool("IsPulling", true); } } } else { _playerAnimator.SetBool("IsHolding", false); _playerAnimator.SetBool("IsPushing", false); _playerAnimator.SetBool("IsPulling", false); } }
public static void SetOnAnimator(this AnimationTrigger trigger, Animator animator) { animator.SetTrigger(trigger.ToString()); }
public bool fillData() { Debug.Log("Fill Config"); jsonString = File.ReadAllText(Application.dataPath + "/Resources/Json/DatosMunicipios.Json"); if (jsonString == null) { return(false); } //itemData = JsonMapper.ToObject (jsonString); TodosMunicipios = new List <UnMunicipio> (); var N = JSON.Parse(jsonString); int cont = 0; for (int i = 0; i < N.Count; i++) { um = new UnMunicipio(); //scenes = new List<Escena> (); um.codigo = N [i] ["codigo"]; um.nombre = N [i] ["nombre"]; //Personas um.bibliotecas = N [i] ["bibliotecas"]; um.bibliobuses = N [i] ["bibliobuses"]; um.teleasistencia = N [i] ["teleasistencia"]; um.hestia = N [i] ["hestia"]; um.governobert = N [i] ["governobert"]; um.xaloc = N [i] ["xaloc"]; um.km2 = N [i] ["km2"]; //um.km22=N [i] ["KM22"]; //Sostenibilidad um.CambioClimatico = N [i] ["CambioClimatico"]; um.Sostenibilidad = N [i] ["Sostenibilidad"]; um.EconomiaCircular = N [i] ["EconomiaCircular"]; //um.emissions=N [i] ["emissions"]; um.CalderesBiomassa = N [i] ["CalderesBiomassa"]; um.FotovoltaiquesAuto = N [i] ["FotovoltaiquesAuto"]; um.FotovoltaiquesVenta = N [i] ["FotovoltaiquesVenta"]; um.AnalisisParticulas = N [i] ["AnalisisParticulas"]; um.AguaFuentes = N [i] ["AguaFuentes"]; um.MedidaSonido = N [i] ["MedidaSonido"]; um.SoporteTecnico = N [i] ["SoporteTecnico"]; um.AparatosPrestados = N [i] ["AparatosPrestados"]; um.Turismo = N [i] ["Turismo"]; //Tecnologia um.AsesoramientoJuridico = N [i] ["AsesoramientoJuridico"]; um.GestionInformacion = N [i] ["GestionInformacion"]; um.GestionFormacion = N [i] ["GestionFormacion"]; um.HERMES = N [i] ["HERMES"]; um.GestionContabilidad = N [i] ["GestionContabilidad"]; um.GestionPadron = N [i] ["GestionPadron"]; um.GestionWebs = N [i] ["GestionWebs"]; um.Muniapps = N [i] ["Muniapps"]; um.PlataformaUrbana1 = N [i] ["PlataformaUrbana1"]; um.PlataformaUrbana2 = N [i] ["PlataformaUrbana2"]; um.Hibrid = N[i]["Hibrid"]; um.SITMUN = N [i] ["SITMUN"]; um.InfraestructurasInformacion = N [i] ["InfraestructurasInformacion"]; //Posicion um.posX = N [i] ["posX"]; um.posY = N [i] ["posY"]; um.posZ = N [i] ["posZ"]; TodosMunicipios.Add(um); //Debug.Log ("Nombre: "+um.nombre); //Debug.Log ("x: "+um.posX+" y: "+um.posY+" z: "+um.posZ); //if (um.bibliobuses != 0) { //Debug.Log ("Hay biblio: " + um.bibliotecas); cont++; GameObject Marker = Instantiate(marcador, new Vector3(um.posX, um.posY, um.posZ), Quaternion.identity); //GameObject Marker=Instantiate (marcador, new Vector3 (um.posX, um.posY, um.posZ), Quaternion.identity); Vector3 v = new Vector3(um.posX, um.posY, um.posZ); //v.y = -27; //Marker.transform.position= v; //GameObject Marker=Instantiate (marcador, new Vector3 (um.posX, um.posY, um.posZ), Quaternion.identity); //GameObject Marker=Instantiate (marcador, new Vector3 (um.posX, 70, um.posZ), Quaternion.identity); MarkerBehaviour MB = Marker.GetComponentInChildren <MarkerBehaviour> (); MB.codigo = um.codigo; MB.setYpos(um.posY); TapaBehaviour TB = Marker.GetComponentInChildren <TapaBehaviour> (); TB.codigo = um.codigo; //MB.pos = new Vector3 (um.posX,um.posY,um.posZ); //MB.yPos = um.posY; //Marker.transform.position= new Vector3 (um.posX,um.posY,um.posZ); Marker.transform.position = new Vector3(um.posX, um.posY - 27, um.posZ); //} } //LEYENDAS Debug.Log("Fill Config leyendas"); jsonString = File.ReadAllText(Application.dataPath + "/Resources/Json/json_maqueta_es_en_ca.Json"); if (jsonString == null) { Debug.Log("Error json"); return(false); } TodasLeyendas = new List <Leyenda> (); var J = JSON.Parse(jsonString); int conta = 0; Debug.Log("Temas:" + J.Count); for (int i = 0; i < J.Count; i++) { Debug.Log("Temas:" + i); Debug.Log("Contenidos tema:" + J[i]["contenidos"].Count); for (int j = 0; j < J[i]["contenidos"].Count; j++) { Debug.Log(" Subcontenidos:" + J [i] ["contenidos"] [j] ["Subcontenidos"].Count); if (J [i] ["contenidos"] [j] ["Subcontenidos"].Count > 0) { ly = new Leyenda(); Debug.Log(" Rellena subcontenido"); for (int k = 0; k < J[i]["contenidos"][j]["Subcontenidos"].Count; k++) { ly.codigo = J [i] ["contenidos"] [j] ["Subcontenidos"] [k] ["id"]; ly.codigoPadre = J [i] ["contenidos"] [j] ["id"]; ly.leyenda_esp = J [i] ["contenidos"] [j] ["Subcontenidos"] [k] ["idiomas"][0]["leyenda"]; ly.leyenda_ing = J [i] ["contenidos"] [j] ["Subcontenidos"] [k] ["idiomas"][1]["leyenda"]; ly.leyenda_cat = J [i] ["contenidos"] [j] ["Subcontenidos"] [k] ["idiomas"][2]["leyenda"]; Debug.Log("Codigo:" + ly.codigo + " leyenda" + ly.leyenda_esp); TodasLeyendas.Add(ly); } } else { ly = new Leyenda(); Debug.Log(" Rellena contenido"); ly.codigo = J [i] ["contenidos"] [j] ["id"]; ly.codigoPadre = J [i] ["contenidos"] [j] ["id"]; ly.leyenda_esp = J [i] ["contenidos"] [j] ["idiomas"] [0] ["leyenda"]; ly.leyenda_ing = J [i] ["contenidos"] [j] ["idiomas"] [1] ["leyenda"]; ly.leyenda_cat = J [i] ["contenidos"] [j] ["idiomas"] [2] ["leyenda"]; Debug.Log("Codigo:" + ly.codigo + " leyenda" + ly.leyenda_esp); TodasLeyendas.Add(ly); } } Debug.Log("End for"); } //FIN LEYENDAS Debug.Log("Datos recuperados. "); Debug.Log("Pintados: " + cont); //Instantiate(marcador,new Vector3(TodosMunicipios[0].posX,TodosMunicipios[0].posY,TodosMunicipios[0].posZ),Quaternion.identity); AnimationTrigger atScript = AnimStarters.GetComponent <AnimationTrigger>(); //atScript.isGrowing = true; return(true); }