示例#1
0
 public IEnumerator WindowTimer()
 {
     this.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;
     this.transform.SetAsLastSibling();
     slider.value           = 0f;
     itemToDrop.IsOnDestroy = true;
     while (slider.value < 10f && !ContainerManager.Instance.IsDragging)
     {
         slider.value += 0.1f;
         yield return(new WaitForSeconds(0.1f));
     }
     this.gameObject.SetActive(false);
     itemToDrop.IsOnDestroy = false;
     itemToDrop.ColorAsNormal();
     yield return(null);
 }