|
- using System;
- using SUISS.Promo;
- using UnityEngine;
- using UnityEngine.UI;
-
- public class OtherGameItem : MonoBehaviour
- {
- public void Init(SparkSocGame game)
- {
- this._game = game;
- this._gameImage.sprite = Sprite.Create(game.BannerImage, new Rect(0f, 0f, (float)game.BannerImage.width, (float)game.BannerImage.height), Vector2.one * 0.5f);
- }
-
- public void OnPlayButtonClicked()
- {
- this._game.OpenInAppStore();
- }
-
- [SerializeField]
- private Image _gameImage;
-
- private SparkSocGame _game;
- }
|