private void Awake() { matchmanager = FindObjectOfType<MatchManager>(); if (matchmanager == null) Debug.LogError("MatchManager not found"); matchmanager.RegisterBall(this); // start pos (set by first ball) if (start_pos == null) start_pos = transform.position; else transform.position = (Vector2)start_pos; // other camshake = Camera.main.GetComponent<CameraShake>(); ball_audio = GetComponentInChildren<BallAudio>(); }