private void Update() { if (ballTriggerGO != null) { ballTriggerGO.transform.position = ballGO.transform.position; } if (Input.GetKeyDown(KeyCode.R)) { ShootGameManager.Restart(true); } }
private void Awake() { Instance = this; }