protected override void OnDisable() { if (Instance == this) { Instance = null; } this.dictionarySoundsByDistanceSqr.Clear(); foreach (var emitter in this.emitters.Values) { emitter.Destroy(); } this.emitters.Clear(); }
protected override void OnEnable() { this.character = Client.Characters.CurrentPlayerCharacter; Instance = this; }