- C# is case-sensitive because it takes after the C-style languages which are all case-sensitive. This is from memory here's an MSDN link which is not working for me right now I can't verify.
- C# is case sensitive because it takes after the C style languages" language inheritance.
- In Code int speed = 5 ;
You missed ;
using System. Collections;
using System. Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement; public class Ballmovement : Monobehaviour
public bool , isMovingFwd, isMovingBwd, isMovingLeft, isMovingRight,
int speed = 5
// Start is called before the first frame update
void Start()
{
}
void Update()
if (isMovingFwd)
{
MoveForward ( ) ;
}
if (isMovingBwd)
{
MoveBackward();
}
if (isMovingLeft)
{
MoveLeft ( ) ;
}
if (isMovingRight)
{
isMovingRight();
}