Ejemplo n.º 1
0
 private void Start()
 {
     actionButtonPressed = false;
     starsCollected      = GameObject.FindGameObjectWithTag("StarsCollected").transform;
     p = GameObject.FindGameObjectWithTag("StarCounter").GetComponent <StarCounter>();
     starsConnectedCounter = GameObject.FindGameObjectWithTag("StarCounter").GetComponent <StarsConnectedCounter>();
     playerUI = GameObject.FindGameObjectWithTag("UI");
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Start()
 {
     thisStarVertex.starRef = gameObject;
     starCounter            = GameObject.FindGameObjectWithTag("StarCounter").GetComponent <StarCounter>();
     starsConnectedCounter  = GameObject.FindGameObjectWithTag("StarCounter").GetComponent <StarsConnectedCounter>();
     charge.Stop();
     fullyChargedSound.Stop();
     if (!hasPuzzle)
     {
         charge.Play();
         fullyChargedSound.Play();
         starCounter.AddCount();
         thisStarVertex.IsInPlace = true;
         thisStarVertex.CheckAndDrawLines(thisStarVertex);
     }
 }
Ejemplo n.º 3
0
 private void Start()
 {
     starsConnectedCounter = GameObject.FindGameObjectWithTag("StarCounter").GetComponent <StarsConnectedCounter>();
 }