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();
     }
 }
Exemplo n.º 2
0
 public override void Update(UserInput userInput, GameElementData elementData)
 {
     nextState = new Runner_NormalRun();
 }