예제 #1
0
 public void ShowChangeOut()
 {
     if (isInStage)
     {
         show.transform.parent = Game.Instance.changeOutRoot.transform;
     }
     else
     {
         for (int i = 0, len = show.transform.childCount; i < len; i++)
         {
             GameBufferPool.ReleaseGrid(show.transform.GetChild(0).gameObject);
         }
     }
     for (int i = 0, len = tip.transform.childCount; i < len; i++)
     {
         GameBufferPool.ReleaseGrid(tip.transform.GetChild(0).gameObject);
     }
     for (int i = 0, len = showOut.transform.childCount; i < len; i++)
     {
         GameBufferPool.ReleaseGrid(showOut.transform.GetChild(0).gameObject);
     }
     for (int i = 0, len = shader.transform.childCount; i < len; i++)
     {
         GameBufferPool.ReleaseGrid(shader.transform.GetChild(0).gameObject);
     }
 }
예제 #2
0
 private void OnShowGameChangeOutComplete()
 {
     for (int i = 0; i < outTweens.Count; i++)
     {
         if (outTweens[i].IsPlaying() == true)
         {
             return;
         }
     }
     for (int i = 0, len = changeOutRoot.transform.childCount; i < len; i++)
     {
         for (int j = 0, len2 = changeOutRoot.transform.GetChild(i).childCount; j < len2; j++)
         {
             GameBufferPool.ReleaseGrid(changeOutRoot.transform.GetChild(i).GetChild(0).gameObject);
         }
     }
     MainData.Instance.dispatcher.DispatchWith(EventType.SHOW_GAME_CHANGE_OUT_EFFECT_COMPLETE2, this);
 }