浏览代码

changed volume warnings to logs since they are just informative

/demo-work
André McGrail 5 年前
当前提交
80673ca7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/Scripts/GameSystem/DefaultVolume.cs

4
Assets/Scripts/GameSystem/DefaultVolume.cs


}
else if(Instance != this)
{
Debug.LogWarning($"Extra Volume Manager cleaned up. GUID:{gameObject.GetInstanceID()}");
Debug.Log($"Extra Volume Manager cleaned up. GUID:{gameObject.GetInstanceID()}");
#if UNITY_EDITOR
DestroyImmediate(gameObject);
return;

static StartupVolume()
{
var thing = AssetDatabase.LoadAssetAtPath("Assets/Objects/misc/DefaultVolume.prefab", typeof(GameObject)) as GameObject;
Debug.LogWarning($"Creating Volume Manager");
Debug.Log($"Creating Volume Manager");
vol = Object.Instantiate(thing);
vol.hideFlags = HideFlags.HideAndDontSave;
}
正在加载...
取消
保存