//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Thursday, December 06, 2018
|
//--------------------------------------------------------
|
using UnityEngine;
|
using System.Collections;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public class RebornRightNowBossInfoQuery : MonoBehaviour
|
{
|
public int bossId { get; set; }
|
|
FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } }
|
|
float rebornRightNowBossQueryTime = 0f;
|
private void OnEnable()
|
{
|
rebornRightNowBossQueryTime = Time.realtimeSinceStartup + 2f;
|
}
|
|
private void LateUpdate()
|
{
|
if (Time.realtimeSinceStartup > rebornRightNowBossQueryTime)
|
{
|
rebornRightNowBossQueryTime = Time.realtimeSinceStartup + 5f;
|
findPreciousModel.RequestQueryBossInfo(bossId);
|
}
|
}
|
|
}
|
|
}
|