Update() 공개 메소드

public Update ( GameObject, player, GameObject, npc ) : void
player GameObject,
npc GameObject,
리턴 void
예제 #1
0
 public void Update(float timeDelta)
 {
     if (_currentState != null && enabled)
     {
         _currentState.Update(timeDelta);
     }
 }
예제 #2
0
 private void Update()
 {
     if (m_currentState.Update != null)
     {
         m_currentState.Update();
     }
 }
예제 #3
0
 public void update(float deltaTime)
 {
     if (nextStateID != uint.MaxValue && nextStateID != currentState.ID)
     {
         doChangeState(nextStateID);
     }
     currentState.Update(deltaTime);
 }
예제 #4
0
 public void Update()
 {
     if (globalState != null)
     {
         globalState.Update(owner);
     }
     if (currentState != null)
     {
         currentState.Update(owner);
     }
 }
예제 #5
0
    public void Update(float i_DeltaTime)
    {
        if (m_CurrentState != null)
        {
            m_CurrentState.Update(i_DeltaTime);

            int nextStateId = m_CurrentState.DoTransitions(i_DeltaTime);

            if (nextStateId != Hash.s_NULL)
            {
                SetState(nextStateId);
            }
        }
    }
예제 #6
0
파일: FSM.cs 프로젝트: Enzx/Deterministic
 public void Update()
 {
     _currentState.Update();
 }