Example #1
0
 /// <summary>
 /// 復活のセット
 /// </summary>
 /// <param name="bObj"></param>
 public void RebornSet(Element.BreakElement bObj)
 {
     if (_rebornManager)
     {
         _rebornManager.RebornSet(bObj);
     }
 }
Example #2
0
        /// <summary>
        /// 復活コルーチン
        /// </summary>
        /// <param name="bObj"></param>
        /// <param name="time"></param>
        /// <returns></returns>
        private IEnumerator RebornCorutine(Element.BreakElement bObj, float time)
        {
            yield return(new WaitForSeconds(time));

            bObj.ElementObj.Reborn();
        }
Example #3
0
 /// <summary>
 /// 復活するオブジェクトのセット
 /// </summary>
 /// <param name="bObj"></param>
 public void RebornSet(Element.BreakElement bObj)
 {
     StartCoroutine(RebornCorutine(bObj, 10.0f));
 }