private void Start() { this.levelManager = GameObject.FindObjectOfType <LevelManager>(); this.brickTracker = GameObject.FindObjectOfType <BrickTracker>(); this.brickTracker.AddBrick(); this.scoreTracker = ScoreTracker.getInstance(); }
// Use this for initialization void Start() { m_rgb = GetComponent <Rigidbody>(); m_ballForce = new Vector3(500.0f, 0.0f, 3500.0f); m_activeBall = false; m_ballPosition = transform.position; m_brickTracker = GetComponent <BrickTracker>(); }