private void Awake() { if (instance == null) { instance = this; } else { Debug.LogWarning("Instance already exists", this); Destroy(this.gameObject); } }
void Start() { values = MeteorValues.instance; }
void Start() { values = MeteorValues.instance; CreateMeteors(); }
void Start() { values = MeteorValues.instance; lifeTime = values.particleMaxLifeTime; }