Exemplo n.º 1
0
    public void InitCommunity()
    {
        platformService               = GameCommunityService.Instance;//gameObject.AddComponent<GameCommunityService>();
        platformController            = gameObject.AddComponent <GameCommunityController>();
        platformAppViewerUIController = gameObject.AddComponent <GameCommunityUIController>();
        platformSocialController      = gameObject.AddComponent <GameCommunitySocialController>();
        platformTrackingController    = gameObject.AddComponent <GameCommunityTrackingController>();

        Messenger.Broadcast(GameCommunityMessages.gameCommunityReady);
    }
    IEnumerator takePhotoCo()
    {
        ShowNone();

        GameUIPanelOverlays.Instance.ShowOverlayWhiteFlash();

        yield return(new WaitForSeconds(.7f));

        PhotoObjectSize();

        GameCommunitySocialController.TakePhoto(photoMaterial);

        UINotificationDisplay.QueueInfo("Loading Photo", "Photo just taken is saving.");

        GameController.GameRunningStateContent();

        yield return(new WaitForSeconds(.5f));

        showDialog();
    }