Skip to content
  • Home
  • Log In
  • Resources [Q&A – Downloads – Bonuses]

Player Code

By Jason Weimann
Minigame (MICRO COURSE) The Player Player Code

Player.cs

using UnityEngine;

public class Player : MonoBehaviour
{
    [SerializeField] Vector2 jumpVelocity = Vector2.up;

    void Update()
    {
        if (Input.GetButtonDown("Fire1"))
        {
            
        }
    }
}
Quizzes
Code Reading
Previous Topic
Back to Lesson
Next Topic

Course Navigation

Course Home Expand All
The Player
7 Topics | 1 Quiz
Introduction
Game Review
Player and Ground Creation
Physics
Creating the Player Script
Player Code
Code Reading
Attaching the Player Component
Moving Blocks
6 Topics
Creating the Block
Moving Block Code
Multiple Obstacles
Resetting Blocks
Killing the Player
Random Heights
Score
2 Topics | 1 Quiz
Score
High Score
Scoring
Return to Minigame (MICRO COURSE)
Building games the right way...