Пример #1
0
 private void Start()
 {
     this.levelManager = GameObject.FindObjectOfType <LevelManager>();
     this.brickTracker = GameObject.FindObjectOfType <BrickTracker>();
     this.brickTracker.AddBrick();
     this.scoreTracker = ScoreTracker.getInstance();
 }
Пример #2
0
 // 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>();
 }