예제 #1
0
 private void Update()
 {
     if (!aiActive || Time.time < m_LastDecision + m_DecisionFrequency)
     {
         return;
     }
     m_LastDecision = Time.time;
     BeforeUpdated?.Invoke();
     m_CurrentMeme.UpdateState(this);
 }
예제 #2
0
 private void Update()
 {
     if (!aiActive || Time.time < _lastDecision + _decisionFrequency / Time.timeScale)
     {
         return;
     }
     _lastDecision = Time.time;
     BeforeUpdated?.Invoke();
     _currentMeme.UpdateState(this);             // TODO: nullref here sometime
 }