unity error cs7036 code example
Example: unity error cs1022
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour{}}
private RigidBody2D myRigidBody;
private Vector2 change;
{
// Start is called before the first frame update
void Start()
{ myRigidBody = GetComponent<RigidBody2D>();
}
// Update is called once per frame
void Update()
{ change = Vector2.zero;
change.x = Input.GetAxis("Horizontal");
change.y = Input.GetAxis("Vertical");
Debug.Log(change);
}
}