void OnDrawGizmos() { cache = FindObjectOfType <SoundModelCache>(); if (cache.soundModels.ContainsKey(selectedSoundId) && viewModel != null) { Gizmos.color = color; } Gizmos.DrawSphere(this.transform.position, 0.1f); }
// Use this for initialization void Start() { cache = FindObjectOfType <SoundModelCache>(); content = InventoryIO.Load(); }