<?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>delay Archives - Oxmond Technology</title>
	<atom:link href="https://oxmond.com/tag/delay/feed/" rel="self" type="application/rss+xml" />
	<link>https://oxmond.com</link>
	<description>IT Development</description>
	<lastBuildDate>Wed, 18 Nov 2020 04:07:30 +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>How to Change Scene in Unity</title>
		<link>https://oxmond.com/how-to-change-scene-in-unity/</link>
					<comments>https://oxmond.com/how-to-change-scene-in-unity/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Tue, 27 Aug 2019 11:09:08 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[between]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[change level]]></category>
		<category><![CDATA[change scene]]></category>
		<category><![CDATA[change scene script]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[collision]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[Hans Oxmond]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[How to Change Scene in Unity]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[level]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[next]]></category>
		<category><![CDATA[on button press]]></category>
		<category><![CDATA[Oxmond Unity Tutorials]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[press]]></category>
		<category><![CDATA[scene]]></category>
		<category><![CDATA[scene manager]]></category>
		<category><![CDATA[scene transition]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[switch between scenes]]></category>
		<category><![CDATA[switch scene]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[transition]]></category>
		<category><![CDATA[trigger]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[video games]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=554</guid>

					<description><![CDATA[<p>How to change scene in Unity! In this tutorial we cover four different scenarios on how to switch scenes: Change Scene on Button Press Change Scene on Collision Switch scenes after time (delay) How to Change Level (scene) AND Keep Your Variables ❤️ Subscribe to...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-change-scene-in-unity/">How to Change Scene in Unity</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>How to change scene in Unity! In this tutorial we cover four different scenarios on how to switch scenes:</strong></p>
<ol>
<li><span style="font-weight: 400;">Change Scene on Button Press</span></li>
<li><span style="font-weight: 400;"> Change Scene on Collision</span></li>
<li><span style="font-weight: 400;"> Switch scenes after time (delay)</span></li>
<li><span style="font-weight: 400;"> How to Change Level (scene) AND Keep Your Variables </span><span style="font-weight: 400;"><br />
</span></li>
</ol>
<hr />
<p><span style="font-weight: 400;">❤️ <strong>Subscribe to Oxmond Tutorials. Stay ahead af the game!</strong></span><br />
<a href="https://bit.ly/SubscribeOxmondTutorials"><span style="font-weight: 400;">https://bit.ly/SubscribeOxmondTutorials</span></a></p>
<p><span style="font-weight: 400;">✅ <strong>Download the free DOTweeen tool here:</strong></span><br />
<a href="https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k"><span style="font-weight: 400;">https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k</span></a></p>
<p><span style="font-weight: 400;">✅ <strong>Free Assets from the Unity Assets Store:<br />
</strong></span><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><br />
The button script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using UnityEngine;
using UnityEngine.SceneManagement;

public class BtnClick : MonoBehaviour
{
    public void BtnNewScene()
    {
        PlayerPrefs.SetInt("score", 2500);
        SceneManager.LoadScene("Scene 2");
    }

}
</pre>
<hr />
<p><strong><br />
The Ball Collision Script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class BallCollision : MonoBehaviour
{
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.gameObject.name == "Ball Red") {
            SceneManager.LoadScene("Scene 2");
        }
    }
}
</pre>
<hr />
<p><strong><br />
The Delay Script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using UnityEngine;
using DG.Tweening;
using UnityEngine.SceneManagement;

public class Delay : MonoBehaviour
{
    void Start()
    {
        DOVirtual.DelayedCall(3, GotoNextScene);
    }

    void GotoNextScene()
    {
        SceneManager.LoadScene("Scene 2");
    }
}

</pre>
<hr />
<p><strong><br />
The Load Variable (Scene 2) Script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class Scene2 : MonoBehaviour
{

    public TextMeshPro scoreText;

    void Start()
    {
        scoreText.text = "Score: " + PlayerPrefs.GetInt("score").ToString();
    }

}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-change-scene-in-unity/">How to Change Scene in Unity</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-change-scene-in-unity/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
