so i did a simple script where if the ball hits the goal, the ball should spawn back in the 0,0 position. but when i play the game and when the ball hits the goal, it doesn't spawn back, it just stays there.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BallSpawn : MonoBehaviour
{
public GameObject Ball;
private void CollisionEnter2D(Collision collision)
{
if (gameObject.tag =="GoalPost")
{
Ball.transform.position = new Vector2 (0, 0);
}
}
}


holy crud! With a disk that small, I can't imagine there's a lot stuff you'd want to delete or uninstall.