You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/GleyPlugins/Ads/Scripts/VisualScriptingSupport/GameFlowSupport/ShowBanner.cs

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