<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>time Archives - Oxmond Technology</title>
	<atom:link href="https://oxmond.com/tag/time/feed/" rel="self" type="application/rss+xml" />
	<link>https://oxmond.com</link>
	<description>IT Development</description>
	<lastBuildDate>Wed, 18 Nov 2020 04:19:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0</generator>
	<item>
		<title>How to Write Time Delays In Your Code! [Beginner Tutorial &#8211; Unity 2020]</title>
		<link>https://oxmond.com/how-to-write-time-delays-in-your-code-beginner-tutorial-unity-2020/</link>
					<comments>https://oxmond.com/how-to-write-time-delays-in-your-code-beginner-tutorial-unity-2020/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Tue, 10 Nov 2020 15:52:31 +0000</pubDate>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[C# Lesson]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Beginner Tutorial]]></category>
		<category><![CDATA[Clock]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[delay action]]></category>
		<category><![CDATA[delay code]]></category>
		<category><![CDATA[delay function call]]></category>
		<category><![CDATA[delay update function]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[execute code after delay]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[future execution]]></category>
		<category><![CDATA[gameobject]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[Oxmond Unity Tutorials]]></category>
		<category><![CDATA[run code after delay]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timeline]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[Unity 2020]]></category>
		<category><![CDATA[Unity delay 1 second]]></category>
		<category><![CDATA[Unity delay code execution]]></category>
		<category><![CDATA[Unity delay start function]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[video games]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=799</guid>

					<description><![CDATA[<p>How to execute code with a delay? In this tutorial we will take a look at how we can delay script or functions in Unity. 🧡 Subscribe to Oxmond Tutorials. Stay tuned! https://bit.ly/SubscribeOxmondTutorials ✅ Free Assets from the Unity Assets Store: https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k 😷👕 Need a...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-write-time-delays-in-your-code-beginner-tutorial-unity-2020/">How to Write Time Delays In Your Code! [Beginner Tutorial &#8211; Unity 2020]</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How to execute code with a delay? In this tutorial we will take a look at how we can delay script or functions in Unity.</p>
<hr />
<p>🧡 Subscribe to Oxmond Tutorials. Stay tuned!<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Free Assets from the Unity Assets Store:<br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<p>Some links might be affiliate links. Any support is truly appreciated so we can keep on making high quality content</p>
<p>&nbsp;</p>
<p><strong>The Button script:</strong></p>
<pre>/*
   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2018-2020 OXMOND / www.oxmond.com 
*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Button : MonoBehaviour
{

    public GameObject textBtnIsClicked;
    public GameObject textDelayedAction;

    private void OnMouseUp()
    {
        textBtnIsClicked.SetActive(true);
        Invoke("Action", 2.0f);
    }

    private void Action()
    {
        textDelayedAction.SetActive(true);
    }

}


</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-write-time-delays-in-your-code-beginner-tutorial-unity-2020/">How to Write Time Delays In Your Code! [Beginner Tutorial &#8211; Unity 2020]</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-write-time-delays-in-your-code-beginner-tutorial-unity-2020/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Changing Color of Gameobject Over a Period of Time</title>
		<link>https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/</link>
					<comments>https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Fri, 23 Aug 2019 16:00:44 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[at runtime]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[Changing Color of Gameobject Over a Period of Time]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[color change script]]></category>
		<category><![CDATA[color.black]]></category>
		<category><![CDATA[color.green]]></category>
		<category><![CDATA[color.lerp]]></category>
		<category><![CDATA[color.red]]></category>
		<category><![CDATA[color.white]]></category>
		<category><![CDATA[dynamically]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[gameobject]]></category>
		<category><![CDATA[gradually]]></category>
		<category><![CDATA[Hans Oxmond]]></category>
		<category><![CDATA[hex]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Intermediate Tutorial Unity 2019]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[material]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[on-the-fly]]></category>
		<category><![CDATA[one color to another]]></category>
		<category><![CDATA[over time]]></category>
		<category><![CDATA[Oxmond Unity Tutorials]]></category>
		<category><![CDATA[period]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shader]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[tween]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[video games]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=536</guid>

					<description><![CDATA[<p>This Unity tutorial show how to change/fade/animate colors over time. ❤️ Subscribe to Oxmond Tutorials. We upload new tutorials every day! https://bit.ly/SubscribeOxmondTutorials ✅ Download the free Nefertiti 3D statue here: https://assetstore.unity.com/packages/3d/nefertiti-56818?aid=1100l4p9k ✅ Download the free DOTween here: https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k ✅ Other Free Assets from the Unity...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/">Changing Color of Gameobject Over a Period of Time</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This Unity tutorial show how to change/fade/animate colors over time.</p>
<hr />
<p>❤️ Subscribe to Oxmond Tutorials. We upload new tutorials every day!<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Download the free Nefertiti 3D statue here:<br />
<a href="https://assetstore.unity.com/packages/3d/nefertiti-56818?aid=1100l4p9k">https://assetstore.unity.com/packages/3d/nefertiti-56818?aid=1100l4p9k</a></p>
<p>✅ Download the free DOTween here:<br />
<a href="https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k">https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k</a></p>
<p>✅ Other Free Assets from the Unity Assets Store:<br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Set the color script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class ChangeColor : MonoBehaviour
{

    public Material nMaterial;

    public void SetColorToBlack() {
        nMaterial.SetColor("_Color", Color.black);
    }

    public void SetColorToWhite()
    {
        nMaterial.SetColor("_Color", Color.white);
    }

    public void SetColorToRed()
    {
        nMaterial.SetColor("_Color", Color.red);
    }

    public void SetColorToGreen()
    {
        nMaterial.SetColor("_Color", Color.green);
    }


}
</pre>
<hr />
<p><strong>Fade the color using DOTween:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class ChangeColor : MonoBehaviour
{
    public Material nMaterial;

    public void SetColorToBlack() {
        nMaterial.DOColor(Color.black, 2);
    }

    public void SetColorToWhite()
    {
        nMaterial.DOColor(Color.white, 2);
    }

    public void SetColorToRed()
    {
        nMaterial.DOColor(Color.red, 2);
    }

    public void SetColorToGreen()
    {
        nMaterial.DOColor(Color.green, 2);
    }
}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/">Changing Color of Gameobject Over a Period of Time</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Get the DATE and TIME</title>
		<link>https://oxmond.com/how-to-get-the-date-and-time/</link>
					<comments>https://oxmond.com/how-to-get-the-date-and-time/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Mon, 19 Aug 2019 17:00:12 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[datetime format]]></category>
		<category><![CDATA[datetime.now]]></category>
		<category><![CDATA[days]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[Hans Oxmond]]></category>
		<category><![CDATA[hours]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[intermediate]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[minutes]]></category>
		<category><![CDATA[month]]></category>
		<category><![CDATA[Oxmond Unity Tutorials]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[retrieving]]></category>
		<category><![CDATA[seconds]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[system time]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unity 2019]]></category>
		<category><![CDATA[unity datetime]]></category>
		<category><![CDATA[video games]]></category>
		<category><![CDATA[work with date]]></category>
		<category><![CDATA[year]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=507</guid>

					<description><![CDATA[<p>How to work with date and time. In this tutorial we&#8217;ll work with the system datetime. How to get it, and how to format it.  Tip: You can get the NAME of the day by typing &#8220;ddd&#8221; or &#8220;dddd&#8221;. Try this: print(&#8220;Today is &#8221; +...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-get-the-date-and-time/">How To Get the DATE and TIME</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="font-weight: 400;">How to work with date and time. In this tutorial we&#8217;ll work with the system datetime. How to get it, and how to format it. </span></p>
<p>Tip: You can get the NAME of the day by typing &#8220;ddd&#8221; or &#8220;dddd&#8221;. Try this:<br />
print(&#8220;Today is &#8221; + System.DateTime.UtcNow.ToLocalTime().ToString(&#8220;dddd&#8221;));</p>
<hr />
<p><span style="font-weight: 400;">❤️<strong> Subscribe to Oxmond Tutorials channel. New videos every day!</strong></span><span style="font-weight: 400;"><br />
</span><a href="https://bit.ly/SubscribeOxmondTutorials"><span style="font-weight: 400;">https://bit.ly/SubscribeOxmondTutorials</span></a></p>
<p><strong>✅ Download Free Assets from the Unity Assets Store: </strong><br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k"><span style="font-weight: 400;">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k </span></a></p>
<p>😷👕 <strong>Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>The Date script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class Date : MonoBehaviour
{

    public TextMeshPro largeText;

    void Start()
    {
        string time = System.DateTime.UtcNow.ToLocalTime().ToString("dd-MM-yyyy   HH:mm");
        string timeUS = System.DateTime.UtcNow.ToLocalTime().ToString("M/d/yy   hh:mm tt");
        largeText.text = time + "[breaktag]" + timeUS;
    }
}
</pre>
<hr />
<p><strong>EXTRA: You can detect if it is night with this little script:</strong></p>
<pre>using UnityEngine;

public class DayOrNight : MonoBehaviour
{
    void Start()
    {
        int hourInt = System.DateTime.Now.Hour;
        bool night = false;

        if (hourInt &lt;= 6 || hourInt &gt;= 22) {
            night = true;
        }      
        print("Night: " + night);
    }
}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-get-the-date-and-time/">How To Get the DATE and TIME</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-get-the-date-and-time/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
