if (Input.GetKey (KeyCode. UpArrow)) {
motor.motorSpeed = 1000;
frontWheel.motor = motor;
backWheel.motor = motor;
backWheel.useMotor = true;
frontWheel.useMotor = true;
}
Яка різниця FixedUpdate()
та Update()
?
private void Start() {
isGround = true;
if(!isGround) {
Debug.Log("On Ground!");
} else {
Debug.Log("Fly");
}
}
pixel per unit
що станеться з спрайтом?OnTriggerStay2D
OnTriggerEnter2D
OnTriggerExit2D