void Update() { if (Debug.isDebugBuild && Input.GetKeyDown(KeyCode.F1)) { Debug.Log(">>> DEPRECATED: ESTE CHEAT ESTA DESHABILITADO POR VIEJUNO"); //Interfaz.sendRound(false, Interfaz.ResultType.encaja, 5000, DifficultyService.GetRatioRecompensa()); } if (m_logroConseguido.Count != 0 && !m_onAction) { string logro = m_logroConseguido.Dequeue(); Texture txt = Resources.Load("Icos/" + logro, typeof(Texture)) as Texture; GUITexture gtx = transform.Find("anillo_logro/icon").GetComponent <GUITexture>(); gtx.texture = txt; gtx.pixelInset = new Rect((-txt.width / 2.0f - 368) * ifcBase.scaleFactor, (-txt.height / 2.0f) * ifcBase.scaleFactor, (txt.width) * ifcBase.scaleFactor, (txt.height) * ifcBase.scaleFactor); LogrosDescription.descLogro desc = m_logros.getLogroByCode(logro); transform.Find("txtNombreLogro").GetComponent <GUIText>().text = desc.m_name; GUIText gt = transform.Find("txtDescripcion").GetComponent <GUIText>(); int lines = 0; gt.text = ifcTooltip.warp(desc.m_descripcion, 285.0f, gt.font, gt.fontSize, out lines); transform.Find("txtDescripcion").GetComponent <txtText>().Fix(); transform.Find("txtPremio").GetComponent <GUIText>().text = m_logros.getPremioDesc(desc); GeneralSounds_menu.instance.playOneShot(GeneralSounds_menu.instance.logroDesbloqueadoClip); m_onAction = true; SuperTweener.InWaitOut(gameObject, 0.5f, new Vector3(1, 0.58f, 0), 1.5f, (GameObject _target3) => { m_onAction = false; }); } }
public void musicOn(float time = 2.0f) { if (!ifcOpciones.music) { return; } SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, time, volumenOriginal, SuperTweener.LinearNone); }
protected action(GameObject _target, float _time, Easing _easing = null, callback _onEndCallback = null, callback _onFrameCallback = null) { if (_easing == null) { _easing = SuperTweener.LinearNone; } target = _target; easing = _easing; ttime = _time; dtime = 0; onEndCallback = _onEndCallback; onFrameCallback = _onFrameCallback; SuperTweener.Add(this); // A�ade la accion a la lista. }
// Use this for initialization // Update is called once per frame public void Play() { //ShowRandomImage(); GetComponent <AudioSource>().clip = cortinillaIn; Vector3 pos = transform.position; pos.x = -0.6f; transform.position = pos; if (ifcOpciones.fx) { GetComponent <AudioSource>().Play(); } SuperTweener.Flush(); ifcMusica.instance.musicOff(0.25f); new SuperTweener.move(gameObject, 0.25f, new Vector3(0.5f, 0.5f, 50f), SuperTweener.CubicOut, (_target) => { Application.LoadLevel("unload"); System.GC.Collect(); Resources.UnloadUnusedAssets(); new SuperTweener.move(gameObject, 1.0f, new Vector3(0.5f, 0.5f, 50f), null, (_target2) => { Application.LoadLevel("BBVAKicks"); new SuperTweener.move(gameObject, 1.0f, new Vector3(0.5f, 0.5f, 50f), null, (_target5) => { new SuperTweener.move(gameObject, 0.25f, new Vector3(2.0f, 0.5f, 50f), SuperTweener.CubicIn, (_target3) => { GetComponent <AudioSource>().clip = cortinillaOut; if (ifcOpciones.fx) { GetComponent <AudioSource>().Play(); } if (GameplayService.networked) { MsgPlayerReady msg = Shark.instance.mensaje <MsgPlayerReady>(); msg.send(); } m_imgPublicidad.gameObject.GetComponent <ImagenCortinilla>().Reload(); }); }); }); }); }
public override void OnExit(MonoBehaviour _target) { SuperTweener.Kill(m_tween); }
public void goToMenu() { SuperTweener.Flush(); Cortinilla.instance.Return(); }
public void musicOff(float time = 2.0f) { SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, time, 0.0f, SuperTweener.LinearNone); }
public void UnMuteVolume() { SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, 2f, ifcOpciones.fx ? originalVolume : 0.0f, SuperTweener.LinearNone); }
public void MuteVolume() { SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, 2f, 0.0f, SuperTweener.LinearNone); }
public void CleanAudioFade() { SuperTweener.Kill(vol); }
// Use this for initialization void Awake() { GameObject.DontDestroyOnLoad(gameObject); m_instance = this; gameObject.SetActive(false); }