added EntityOnChangeState.cs