浏览代码

Fixed warning

/main
peeweek 5 年前
当前提交
005f6e8e
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 7
      Runtime/LevelScripting/Actions/CycleResolutionsAction.cs

7
Runtime/LevelScripting/Actions/CycleResolutionsAction.cs


string getText(Resolution currentResolution)
{
#if UNITY_EDITOR
return "No resolution switch in the editor";
#endif
#if !UNITY_EDITOR
if (currentResolution.width == 0 || currentResolution.height == 0)
{

return string.Format("Resolution: {0}X{1}", currentResolution.width, currentResolution.height);
#else
return "No resolution switch in the editor";
#endif
}
Resolution[] availableResolutions;

正在加载...
取消
保存