<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MrEngineer</title>
    <description>The latest articles on DEV Community by MrEngineer (@mrengineerir).</description>
    <link>https://dev.to/mrengineerir</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1071819%2Ff7431c79-5722-421d-93c4-2cef1256672b.jpeg</url>
      <title>DEV Community: MrEngineer</title>
      <link>https://dev.to/mrengineerir</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrengineerir"/>
    <language>en</language>
    <item>
      <title>Notification System for android (unity)</title>
      <dc:creator>MrEngineer</dc:creator>
      <pubDate>Wed, 26 Apr 2023 10:55:29 +0000</pubDate>
      <link>https://dev.to/mrengineerir/notification-system-for-android-unity-1hmo</link>
      <guid>https://dev.to/mrengineerir/notification-system-for-android-unity-1hmo</guid>
      <description>&lt;p&gt;To create a notification system in Unity for Android, you need the Android notification library, then write a public void function whit DateTime type argument and create a notification channel inside it, then create the notification itself in that function and finally send it to the Android notification center.&lt;br&gt;
Finally, call this function where you want&lt;br&gt;
for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public void notificationSchedule(DateTime time)
{

    const string ChannelID = "notification";
   AndroidNotificationChannel notificationChannel = new 
   AndroidNotificationChannel
   {
      Id = ChannelID,
      name = "notification:,
      description = "random description",
      Importance = Importance.Default 
   };
  AndroidNotificationCenter.RegisterNotificationChannel(notificationChannel);
  AndroidNotifition notification = new AndroidNotifition
  {
      Titel = "AnyThing",
      text = "anyThing" ,
      smallIcon = "default",
      largIcon  = "default",
      FireTime = time 
  };
 AndroidNotificationCenter.SendNotification(notification ,ChannelID);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  unity
&lt;/h1&gt;

&lt;h1&gt;
  
  
  notification
&lt;/h1&gt;

&lt;h1&gt;
  
  
  android
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>How to save user game data in Unity</title>
      <dc:creator>MrEngineer</dc:creator>
      <pubDate>Wed, 26 Apr 2023 02:13:14 +0000</pubDate>
      <link>https://dev.to/mrengineerir/how-to-save-user-game-data-in-unity-1gjk</link>
      <guid>https://dev.to/mrengineerir/how-to-save-user-game-data-in-unity-1gjk</guid>
      <description>&lt;p&gt;If you want to implement an energy system or record the player's highest score and always show it to him or so on, you need to save the player's information on player device.&lt;br&gt;
here we can use PlayerPrefs.&lt;br&gt;
in term of description : PlayerPrefs is a class that stores Player preferences between game sessions. It can store string, float and integer values into the user’s platform registry.&lt;br&gt;
*&lt;em&gt;**warn&lt;/em&gt;&lt;em&gt;:Unity stores PlayerPrefs in a local registry, without encryption. Do not use PlayerPrefs data to store sensitive data.&lt;/em&gt;*&lt;br&gt;
Here I put some codes to access this feature:&lt;br&gt;
Unity-C# :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PlayerPrefs.SetInt(string key , int value);//To store numerical data in the player's device with a special label
PlayerPrefs.GetInt(string key , default value);//To get numerical information from the player's device.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  unity
&lt;/h1&gt;

&lt;h1&gt;
  
  
  C_Sharp
&lt;/h1&gt;

</description>
    </item>
  </channel>
</rss>
