// Use this for initialization void Awake() { //This allows this object to be the only object in existance if (rune == null) { rune = this; } else if (rune != this) { Destroy(gameObject); } }
// Use this for initialization void Start() { sprite = GetComponent <SpriteRenderer>(); rainRune = RuneScriptRain.rune; opacity = 0f; }