예제 #1
0
 public AgentInfo(ENpcTalkType type, ENpcSpeakType spType, bool canLoop = false)
 {
     _type      = type;
     _spType    = spType;
     _startTime = Time.time;
     _canLoop   = canLoop;
     _loopTime  = NpcRandomTalkDb.Get(type)._interval;
 }
예제 #2
0
        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));
        }
예제 #3
0
        public bool RemoveAgentInfo(ENpcTalkType type)
        {
            if (_msgs == null || null == _msgs[(int)type])
            {
                return(false);
            }

            _msgs [(int)type] = null;
            return(true);
        }
예제 #4
0
 public static Item Get(ENpcTalkType type)
 {
     return(Get((int)type));
 }