26 lines
627 B
C#
26 lines
627 B
C#
#if USE_GAMEFLOW_SUPPORT
|
|
namespace GleyMobileAds
|
|
{
|
|
using GameFlow;
|
|
using UnityEngine;
|
|
|
|
[AddComponentMenu("")]
|
|
|
|
public class ShowBanner : Action
|
|
{
|
|
[SerializeField]
|
|
private BannerPosition position;
|
|
[SerializeField]
|
|
private BannerType bannerType;
|
|
|
|
// Code implementing the effect of the action
|
|
protected override void OnExecute()
|
|
{
|
|
// Do something with the declared property
|
|
Debug.Log("SHOW BANNER " + position + " " + bannerType);
|
|
Advertisements.Instance.ShowBanner(position, bannerType);
|
|
}
|
|
}
|
|
}
|
|
#endif
|