コード例 #1
0
// Use this for initialization
    void Start()
    {
        _rewardedVideoManager    = RewardedVideoManager.Instance;
        _thisButton              = GetComponent <Button>();
        _thisButton.interactable = false;
        BindAction();
    }
コード例 #2
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
コード例 #3
0
 // Use this for initialization
 new void Start()
 {
     base.Start();
     _rewardedVideoManager = FindObjectOfType <RewardedVideoManager>();
     _rewardedVideoManager.OnVideoCompleted += OnVideoSuccessful;
 }