So i have this Grounded script for my player and i can´t find the CS1022 Error.
GameObject Player; {
// Start is called before the first frame update
void Start()
{
Player = GameObject.transform.parent.GameObject;
}
// Update is called once per frame
void Update()
{
}
private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.collider.tag == ("Ground"))
Player.GetComponent<Move2D>().isGrounded = true;
}
private void OnCollisionExit2D(Collision2D collision)
{
if (collision.collider.tag == ("Ground"))
Player.GetComponent<Move2D>().isGrounded = false;
}
If anyone help me: pls help me