This commit is contained in:
corn
2026-06-07 22:59:32 +08:00
commit a62ff7379b
7171 changed files with 10015624 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ShowReward : MonoBehaviour
{
public Text Result;
bool sdkinitialize;
// Start is called before the first frame update
void Start()
{
Result.text="Loaded";
}
// Update is called once per frame
void Update()
{
if(PlayerPrefs.GetInt ("reward", 0)==1){
Result.text="Congratulation you got your reward";
PlayerPrefs.SetInt ("reward", 0);
Invoke("ClearText",10f);
}else if(PlayerPrefs.GetInt ("reward", 0)==2){
Result.text="Sorry! Video failed to load";
PlayerPrefs.SetInt ("reward", 0);
Invoke("ClearText",10f);
}
// if(AdManager._Instance.intestetialloaded){
// Result.text="Intestetial Loaded";
// }
}
void ClearText(){
// Result.text=" ";
}
}