RuntimePlatform.OSXDashboardPlayer
RuntimePlatform.OSXDashboardPlayer
Description描述
In the Dashboard widget on Mac OS X.
在Mac OS X平台的Dashboard widget(仪表板小工具)中。
See Also: Platform dependent Compilation.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
if (Application.platform == RuntimePlatform.OSXDashboardPlayer)
Debug.Log("Do something special here!");
}
}
if (Application.platform == RuntimePlatform.OSXDashboardPlayer)
Debug.Log("Do something special here!");
最后修改:2011年7月18日 Monday 11:25