public static void onCD(cd item) { int num = (int)(cd.secCD - cd.lastCD) / 100; item.txt.text = ContMgr.getCont("worldmap_cd", new string[] { ((float)num / 10f).ToString() }); }
public override void onClosed() { instance = null; cdhandle = null; updateHandle = null; if (txt != null) { txt.text = ""; } StopCoroutine(runcd()); }
public override void onClosed() { cd.instance = null; cd.cdhandle = null; cd.updateHandle = null; bool flag = this.txt != null; if (flag) { this.txt.text = ""; } Variant variant = new Variant(); variant._arr.Add("audio/common/trance"); MediaClient.instance.StopSoundUrls(variant); base.StopCoroutine(this.runcd()); }
public override void onShowed() { instance = this; transform.SetAsFirstSibling(); RectTransform rec = gameObject.GetComponent <RectTransform>(); rec.position = SelfRole._inst.getHeadPos() + new Vector3(0, 30f, 0); if (pos == Vector3.zero) { rec.position = SelfRole._inst.getHeadPos() + new Vector3(0, 30f, 0); } else { rec.localPosition = pos; } MediaClient.instance.PlaySoundUrl("audio_common_trance", false, null); StartCoroutine(runcd()); }
public override void onShowed() { cd.instance = this; base.transform.SetAsLastSibling(); RectTransform component = base.gameObject.GetComponent <RectTransform>(); component.position = SelfRole._inst.getHeadPos(); bool flag = cd.pos == Vector3.zero; if (flag) { component.position = SelfRole._inst.getHeadPos(); } else { component.localPosition = cd.pos; } MediaClient.instance.PlaySoundUrl("audio/common/trance", false, null); base.StartCoroutine(this.runcd()); }
public static void onCD(cd item) { int temp = (int)(cd.secCD - cd.lastCD) / 100; item.txt.text = ContMgr.getCont("worldmap_cd", ((float)temp / 10f).ToString()); }