Ask a Question With if

The last node had you type a line that nobody explained yet, the one that starts with if. Every line you had written until then ran on every frame, no questions asked. That one is different. It is a question, and the line inside the braces under it runs only when the answer is yes.

More in Set Up the Input System

  1. Read the Keyboard
    1. Ask a Question With if
  2. Move a Paddle
    1. Keep the Paddle On Screen
  3. Add the Second Paddle

All 54 topics in the Your First Unity Game