28 Aralık 2015 Pazartesi

Using Coroutines

A Bit Confusing but Useful Tools: Coroutines

In any game development process, developers may want some actions to be taken over time instead of immediately. In Unity, it can be done using Update() method which is extremely costly and hard to handle on big projects. Instead, there are Coroutines in Unity!

For beginners, Coroutines may be confusing because of their different style of usage. In this tutorial, you will learn how and when to use coroutines properly within a couple of minutes!

I will give two different examples in this tutorial to make things clear

1) Change color over time
2) Change position over time