示例#1
0
    void ShowCompanyLogo()
    {
        companyLogoRoot.gameObject.SetActiveRecursively(true);
        companyLogoRoot.localScale = new Vector3(Screen.width / GUIManager.DEFAULT_SCREEN_WIDTH, Screen.height / GUIManager.DEFAULT_SCREEN_HEIGHT, 1.0f);
        //logoAnimitation.Reset();
        //StartCoroutine(DoPlayLogoAnim());

        EventDelegate.Add(TweenAlpha.Begin(logoName.gameObject, 2f, 0.0f).onFinished, delegate() {
            ToLoading();
            ThirdPartyPlatform.InitSDK();
            Destroy(companyLogoRoot.gameObject);
        });
    }
示例#2
0
    IEnumerator DoPlayLogoAnim()
    {
        NGUITools.SetActive(logoName.transform.gameObject, false);

        yield return(new WaitForSeconds(1.5f));

        NGUITools.SetActive(logoName.transform.gameObject, true);


        Color c_Start = new Color(1, 1, 1, 0.0f);
        Color c_End   = new Color(1, 1, 1, 1);


        EventDelegate.Add(TweenAlpha.Begin(logoName.gameObject, 2f, 0.0f).onFinished, delegate() {
            ToLoading();
            ThirdPartyPlatform.InitSDK();
            Destroy(companyLogoRoot.gameObject);
        });
    }
示例#3
0
    // Use this for initialization
    protected void Start()
    {
        if (!CheckGoogleResource())
        {
            return;
        }

        if (!TapjoyUnity.Tapjoy.IsConnected)
        {
            TapjoyUnity.Tapjoy.Connect();
        }

        UnityEngine.Profiling.Profiler.enabled = false;
        publisher.NotifyMonoStart();
        // read game defined setting
        GameDefines.ReadConfigFile();


        // Unified the login logic, move it to ThirdPartyPlatform.AtlanticLogin
        // FadeInLogo();

        if (!Globals.Instance.Initialize())
        {
            return;
        }

        Debug.Log("/var/mobile/Applications/3D2A01DB-BDCB-40CE-A537-E04FCAD5EBD0/Documents");
        Debug.Log("Application.persistentDataPath is :" + Application.persistentDataPath);

        //PlayTitleMovie();
        ThirdPartyPlatform.InitSDK();

        GameStatusManager.Instance.Initialize();
        GameStatusManager.Instance.SetGameState(GameState.GAME_STATE_INITIAL);

//		AndroidSDKAgent.getMacAddress ();
    }