public void FixedUpdate() { AState currentState = GetCurrentState(); if (currentState != null) { currentState.FixedUpdate(); } }