Professional Documents
Culture Documents
Spaceshipcontroller
Spaceshipcontroller
Collections;
using System.Collections.Generic;
using UnityEngine;
rb = GetComponent<Rigidbody2D>();
}
ThrustForward(yAxis);
Rotate(transform, xAxis * -rotationspeed);
rb.AddForce(force);