Esempio n. 1
0
 void Start()
 {
     if (control == null)
     {
         control = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     this.starScore = GameObject.FindObjectOfType <StarScore>();
     this.GetParticalesPrefab();
     this.InstantiateParticles();
 }
Esempio n. 3
0
 void Start()
 {
     score = FindObjectOfType <StarScore>();
     posY  = Random.Range(minYHeight, maxYHeight);
     StarParticle();
 }
Esempio n. 4
0
 void Start()
 {
     animator     = GetComponent <Animator>();
     score        = FindObjectOfType <StarScore>();
     switchColour = GetComponent <SpriteRenderer>();
 }