private void Start() { switch (platform) { case PlatformSelect.NormalPlatform: #if UNITY_WEBPLAYER if (Application.platform == RuntimePlatform.WindowsWebPlayer) //WebPlayer版本 { Application.ExternalCall("getUserInfoForWebPlayer"); } #elif UNITY_WEBGL if (Application.platform == RuntimePlatform.WebGLPlayer) //WebGL版本 { GetUserInformation.GetUserInfo(); } #endif break; default: break; } }
public HomeController(GetUserInformation getUserInformation, GetUserTitle userTitle) { _getUserInformation = getUserInformation; _getUserTitle = userTitle; }
public BaseController() { _getUserInformation = new GetUserInformation(); _getUserTitle = new GetUserTitle(); }