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;
            }
        }
Example #2
0
 public HomeController(GetUserInformation getUserInformation, GetUserTitle userTitle)
 {
     _getUserInformation = getUserInformation;
     _getUserTitle       = userTitle;
 }
Example #3
0
 public BaseController()
 {
     _getUserInformation = new GetUserInformation();
     _getUserTitle       = new GetUserTitle();
 }