protected void InitTalkWaitDic() { foreach (EntourageTalkType item in Enum.GetValues(typeof(EntourageTalkType))) { PoPoPetRef refData = ConfigMng.Instance.GetPoPoPetRef(actorInfo.PetId, item); if (refData != null) { //Debug.Log("actorInfo.PetId:" + actorInfo.PetId + "item:" + item + ",popID:" + refData.poPoId); curTalkWaitDic[item] = new EntourageTalkCheck(refData); } else { // Debug.LogError(item + "随从泡泡说话初始化失败!"); } } }
public EntourageTalkCheck(PoPoPetRef _refData) { refData = _refData; popRef = ConfigMng.Instance.GetPoPoRef(refData.poPoId); if (_refData.type == (int)EntourageTalkType.CALL) { curWaitTime = 0; } else { if (popRef != null) { curWaitTime = popRef.time;// UnityEngine.Random.Range(5, popRef.time); } } startTime = Time.time; }