RuntimePlatform.WindowsWebPlayer 替换RuntimePlatform.WindowsPlayer

RuntimePlatform.OSXWebPlayer 替换 RuntimePlatform.OSXPlayer

RuntimePlatform.OSXDashboardPlayer 停止使用

在Unity2017 和Unity2018 中已过时,解决方法:

return Application.platform != RuntimePlatform.WindowsPlayer 
    && Application.platform != RuntimePlatform.OSXPlayer;

如果对您有帮助,点个赞鼓励下吧~