public AgentInfo(ENpcTalkType type, ENpcSpeakType spType, bool canLoop = false) { _type = type; _spType = spType; _startTime = Time.time; _canLoop = canLoop; _loopTime = NpcRandomTalkDb.Get(type)._interval; }
public void AddAgentInfo(ENpcTalkType type, ENpcSpeakType spType, bool canLoop = false) { if (_msgs == null) { _msgs = new AgentInfo[(int)ENpcTalkType.Max]; } AddAgentInfo(new AgentInfo(type, spType, canLoop)); }
public bool RemoveAgentInfo(ENpcTalkType type) { if (_msgs == null || null == _msgs[(int)type]) { return(false); } _msgs [(int)type] = null; return(true); }
public static Item Get(ENpcTalkType type) { return(Get((int)type)); }