I meet the same point every time.
- When and why do you use the single, the plural in the namespace?
- Are you using a suffix that matches the namespace?
Let's say we are in the namespace
app/Services. How do I name my class of service?
What are best practices and why?
public class movement: MonoBehaviour
public Rigibody2D rb;
public Transform GroundCheck;
public float groundCheckRadius;
public LayerMask whatIsGround;
private bool onGround;
// Start is called before the first frame update
rb = GetComponent();
// Update is called once per frame
rb.velocity = new Vector2(1, rb.velocity.y);
onGround = Physics2D.OverlapCircle(groundCheck.position, groundCeckRadius, whatIsGround);
if (Input.GetMousseBuutonDown(0) && onGround)
rb.velocity = new Vector(rb.velocity.x, 3);