/// <summary> /// 復活のセット /// </summary> /// <param name="bObj"></param> public void RebornSet(Element.BreakElement bObj) { if (_rebornManager) { _rebornManager.RebornSet(bObj); } }
/// <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(); }
/// <summary> /// 復活するオブジェクトのセット /// </summary> /// <param name="bObj"></param> public void RebornSet(Element.BreakElement bObj) { StartCoroutine(RebornCorutine(bObj, 10.0f)); }