Assets\Scripts\Paddle.cs(6,2): error CS0270: Array size cannot be specified in a variable declaration (try initializing with a ‘new’ expression)
exactly typed what rick did still get this error? Also in my visual studio editor i dont get all the pop up help comands rick does ???
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Paddle : MonoBehaviour
[SerializeField] float screenWithInUnits = 16f;
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
Debug.Log(Input.mousePosition.x / Screen.width * screenWithInUnits);
}
}