01 - Introduction & Setup
001 Welcome To The Course
02 - Delivery Driver (New Unity 2021.1 Content)
001 Section Intro - Delivery Driver
002 Game Design - Delivery Driver
003 Introducing Methods
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Driver : MonoBehaviour
{
void Start()
{
}
void Update()
{
transform.Rotate(0, 0, 0.1f);
}
}
void Update()
{
transform.Rotate(0, 0, 0.1f);
transform.Translate(0, .01f, 0);
}
005 Introducing Variables
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Driver : MonoBehaviour
{
private float steerSpeed = 0.1f;
private float moveSpeed = 0.01f;
void Start()
{
}
void Update()
{
transform.Rotate(0, 0, steerSpeed);
transform.Translate(0, moveSpeed, 0);
}
}
006 How To Use SerializeField