Example #1
0
 // Use this for initialization
 void Start()
 {
     scoreBehaviour     = GetComponent <ScoreBehaviour> ();
     highscoreBehaviour = GetComponent <HighscoreBehaviour> ();
     findPlayArea       = GetComponent <FindPlayArea> ();
     player             = GetComponent <Player> ();
     respawnCoin1       = GetComponent <RespawnCoin1> ();
     coins = GetComponent <CoinManager> ();
     //source = GetComponent<AudioSource>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     playArea     = GetComponent <RectTransform> ();
     rigid2D      = GetComponent <Rigidbody2D> ();
     respawnCoin1 = GetComponent <RespawnCoin1> ();
     laser1       = GetComponent <Laser1> ();
     laser2       = GetComponent <Laser2> ();
     width        = playArea.rect.width;
     height       = playArea.rect.height;
     maxX         = width / 2;
     maxY         = height / 2;
     xPos         = playArea.rect.x;
     yPos         = playArea.rect.y;
 }
Example #3
0
 public static void setCoin1Bounds()
 {
     RespawnCoin1.respawnCoin(maxX, maxY, xPos, yPos);
 }