示例#1
0
 private static void ensureInstance()
 {
     if (instance == null)
     {
         instance = FindObjectOfType(typeof(MilkyFoxRewardedVideoIosBridgeListener)) as MilkyFoxRewardedVideoIosBridgeListener;
         if (instance == null)
         {
             instance = new GameObject("MilkyFoxRewardedVideoIosBridgeListener").AddComponent <MilkyFoxRewardedVideoIosBridgeListener>();
         }
     }
 }
示例#2
0
    public MilkyFoxRewardedVideoIosBridge(IMilkyFoxRewardedVideoBridgeListener listener) : base(listener)
    {
        MilkyFoxRewardedVideoIosBridgeListener.Configure();

        MilkyFoxRewardedVideoIosBridgeListener.instance.Bridge = this;
    }