/** * Use this for initialization */ void Start() { if (poofManager == null) { DontDestroyOnLoad(gameObject); poofManager = this; } else if (poofManager != this) { Destroy(gameObject); } poofAttractionRating = 0; }