private static void ensureInstance() { if (instance == null) { instance = FindObjectOfType(typeof(MilkyFoxRewardedVideoIosBridgeListener)) as MilkyFoxRewardedVideoIosBridgeListener; if (instance == null) { instance = new GameObject("MilkyFoxRewardedVideoIosBridgeListener").AddComponent <MilkyFoxRewardedVideoIosBridgeListener>(); } } }
public MilkyFoxRewardedVideoIosBridge(IMilkyFoxRewardedVideoBridgeListener listener) : base(listener) { MilkyFoxRewardedVideoIosBridgeListener.Configure(); MilkyFoxRewardedVideoIosBridgeListener.instance.Bridge = this; }