consulo / consulo-csharp

Languages: C#
Apache License 2.0
50 stars 6 forks source link

using not working #446

Closed SillentAssembly closed 8 years ago

SillentAssembly commented 8 years ago

http://i.prntscr.com/a0a788cb351f4501bc56ea3430a2a844.png //unity ads http://i.prntscr.com/ff25116019844d958ba58cef9000ab6f.png //google play services https://github.com/playgameservices/play-games-plugin-for-unity // lots of not resolves here too advanced for me currently to search and understand.

C# Example – ShowAdOnStart.cs // unity ads code below


using UnityEngine;
using System.Collections;
using UnityEngine.Advertisements; // Using the Unity Ads namespace.

public class ShowAdOnStart : MonoBehaviour
{
    #if !UNITY_ADS // If the Ads service is not enabled...
    public string gameId; // Set this value from the inspector.
    public bool enableTestMode = true;
    #endif

    IEnumerator Start ()
    {
        #if !UNITY_ADS // If the Ads service is not enabled...
        if (Advertisement.isSupported) { // If runtime platform is supported...
            Advertisement.Initialize(gameId, enableTestMode); // ...initialize.
        }
        #endif

        // Wait until Unity Ads is initialized,
        //  and the default ad placement is ready.
        while (!Advertisement.isInitialized || !Advertisement.IsReady()) {
            yield return new WaitForSeconds(0.5f);
        }

        // Show the default ad placement.
        Advertisement.Show();
    }
}
VISTALL commented 8 years ago

Can you say Unity version?

SillentAssembly commented 8 years ago

5.3.6

VISTALL commented 8 years ago

Looks like UnityEngine.Advertisements library is not added while import

VISTALL commented 8 years ago

About - GPlay, idk can you show some example?

VISTALL commented 8 years ago

added.

Update plugin after one hour, and reimport project

SillentAssembly commented 8 years ago

All seems OK if i come across anything i will report :)