public override void Update(UserInput userInput, GameElementData elementData) { if (elementData.elementTransform.position.y > 0f) { elementData.verticalVelocity -= 0.001f; elementData.elementTransform.position += new Vector3(elementData.horizontalVelocity, elementData.verticalVelocity, 0f); } else { nextState = new Runner_NormalRun(); } }
public override void Update(UserInput userInput, GameElementData elementData) { nextState = new Runner_NormalRun(); }