This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Particalister

Member
  • Content count

    46
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Particalister

  • Rank
    Member
  • Birthday

Profile Information

  • Gender
    Male
  • Location:
    Jordan
  • Interests
    Unity 2D game creator and designer

Recent Profile Visitors

396 profile views
  1. No In this video he used Objects not UI Object (Image)
  2. Hi guys.. as the title says.. How can i get the exactly rotation of an object ? This is my current script but not working... : [Header("Arrow Assembly")] public float speed = 3; public RectTransform Arrow; public bool isMinus; [Header("Game Assembly")] public Text CurrTime; public void OnClick() { if (Arrow.transform.eulerAngles.z >= 0 && Arrow.transform.eulerAngles.z < 335) { int MinusX = Random.Range (1, 10); int HourX = Random.Range (1, 12); CurrTime.text = HourX.ToString (); SoundManager.Instance.PlaySound (SoundManager.Instance.TimeTick); // if (MinusX >= 1 && MinusX <= 5) { if (isMinus == false) { isMinus = true; } Debug.Log ("Minus is enabled " + MinusX); } if (MinusX >= 6 && MinusX <= 10) { if (isMinus == true) { isMinus = false; } Debug.Log ("Minus is disabled " + MinusX); } } }
  3. the game should be released in Android or IOS... so so maybe i will not use this...
  4. Hi everyone, Right now i'm in the event Game Smash (local event) idea of the event is like the global game jam .. creating game within 48 hours... the key was "Time" ..Anyone have a time idea ? if no ..does anyone knows how can i convert the "Time Travel 'Einstein'" to simple game ?
  5. download

    Hey guys :3 This is my second game release on google play service! Check out ya ! https://play.google.com/store/apps/details?id=com.LogyexGames.EndlessTurns
  6. error

    when i just check key instead of parsing .. in editor the game pause automatically when i start it .. and in mobile... the key not even working
  7. error

    Thanks all for replay <3
  8. error

    If there's no problem can you write the final code
  9. error

    I tried with this error.. error CS0029: Cannot implicitly convert type `float' to `bool'
  10. error

    Thanks for your replay... I'm using Uencryptprefs asset... .. Honestly i wasn't face this problem.. but when my game got bigger with more scripts.. i get this error.. .. Without edit (fresh) the script was like that : if (int.Parse(PlayerPrefs.HasKey(hashedKey))) and i get this error : --- When i've tried to fix the below problem .. with this code : if (int.Parse(PlayerPrefs.HasKey(hashedKey).ToString())) I get this problem :
  11. Hey guys.. I'm still getting this error after hundreds of trying... Cannot implicitly convert type `int' to `bool' This is the code : public static string GetString(string key) { string hashedKey = GenerateMD5(key); if (int.Parse(PlayerPrefs.HasKey(hashedKey).ToString())) { var desEncryption = new DESEncryption(); string encryptedValue = PlayerPrefs.GetString(hashedKey); string decryptedValue; desEncryption.TryDecrypt(encryptedValue, out decryptedValue); return decryptedValue; } else { return ""; } }
  12. error

    wow! no responds ?
  13. error

    Thanks mate. but for my post problem.. do u have any solution ?
  14. Hi guys. I've a problem with rewarding player. Everything in the script are working / showing expect rewarding player (when a player watch a rewarded video till the end) reward videos are showing... banners are showing... Interstitial videos are showing. but rewarding player is not working -.- here's the script .. Scroll down till you find "HandlerOnAdRewarded" using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using GoogleMobileAds; using GoogleMobileAds.Api; public class Ad_Manager : MonoBehaviour { public enum Progression {gold, diamond, tryforfree}; public Progression progression; public string bannerid = "BANNER-ID"; public string videoid = "VIDEO_ID"; public string rewardedvideoid1 = "REWARD-VIDEO-ID-1"; public string rewardedvideoid2 = "REWARD-VIDEO-ID-2"; public string rewardedvideoid3 = "REWARD-VIDEO-ID-3"; public static Ad_Manager Instance{ set; get;} public string rewardedID1,rewardedID2,rewardedID3; public GameObject failOBJ; private BannerView bannerView; private RewardBasedVideoAd rewardView; public bool rewardedLoaded,adShowed; private InterstitialAd interstitial; private void Start() { Instance = this; DontDestroyOnLoad (gameObject); RequestInterstitial(); rewardView = RewardBasedVideoAd.Instance; rewardView.OnAdClosed += HandlerOnAdClosed; rewardView.OnAdFailedToLoad += HandlerOnAdFailedToLoad; rewardView.OnAdLoaded += HandlerOnAdLoaded; rewardView.OnAdRewarded += HandlerOnAdRewarded; Debug.Log ("Admanger in start"); LoadReward (); } private void LoadReward() { if (rewardView.IsLoaded ()==false) { rewardView.LoadAd (new AdRequest.Builder ().Build (), rewardedID1); rewardView.LoadAd (new AdRequest.Builder ().Build (), rewardedID2); rewardView.LoadAd (new AdRequest.Builder ().Build (), rewardedID3); Debug.Log ("Loading ad.."); } } public void ShowRewardAd() { if (rewardView.IsLoaded ()) { Debug.Log ("playing ad"); rewardView.Show (); } else { rewardView.LoadAd (new AdRequest.Builder ().Build (), rewardedID1); rewardView.LoadAd (new AdRequest.Builder ().Build (), rewardedID2); rewardView.LoadAd (new AdRequest.Builder ().Build (), rewardedID3); Debug.Log ("Loading ad.."); failOBJ.SetActive (true); } Debug.Log ("playing ad : "+ rewardView.IsLoaded ()); } public void HandlerOnAdLoaded(object sender,EventArgs args) { rewardedLoaded = true; Debug.Log ("ad loaded"); } public void HandlerOnAdFailedToLoad(object sender,AdFailedToLoadEventArgs args) { Debug.Log ("Filed Loading Ad : " + args.Message ); LoadReward (); } public void HandlerOnAdClosed(object sender,EventArgs args) { adShowed = false; } public void HandlerOnAdRewarded(object sender,Reward args) { if (progression == Progression.gold) { args.Amount = 10; UEncryptPrefs.SetInt ("COINS", args); } if (progression == Progression.diamond) { args.Amount = 1; UEncryptPrefs.SetInt ("DIAMONDS", args); } } private void RequestInterstitial() { #if UNITY_ANDROID string adUnitId1 = "ca-app-pub-9131922840133006/9021770373"; string adUnitId2 = "ca-app-pub-9131922840133006/7545037179"; #elif UNITY_IPHONE string adUnitId = "INSERT_IOS_INTERSTITIAL_AD_UNIT_ID_HERE"; #else string adUnitId = "unexpected_platform"; #endif // Initialize an InterstitialAd. interstitial = new InterstitialAd(adUnitId1); interstitial = new InterstitialAd(adUnitId2); // Create an empty ad request. AdRequest request = new AdRequest.Builder().Build(); // Load the interstitial with the request. interstitial.LoadAd(request); } public void ShowIntersitital() { if (!UEncryptPrefs.HasKey ("NO_ADVERTISEMENTS")) { if (interstitial.IsLoaded()) { interstitial.Show(); } else { print ("Ad is not ready to show yet."); } } } }
  15. What is the solution ? this error from Native Android Plugin