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