What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-24 23:32:03
Unity how end a couroutine
enemy.StopCoroutine("Fire"); Add solution -
Kotlin 2021-09-22 10:05:02
kotlin coroutine channel
Channels fun CoroutineScope.produceSquares(): ReceiveChannel<Int> = produce { for (x in 1..5) send(x * x) } val squares = produceSquares() repeat(5) { println(squares.receive()) } // 1, 4, 9, 16, 25 val squares2 = produceSquares() for(square in s... Add solution -
Kotlin 2021-09-19 18:09:03
call suspend function kotlin
import kotlinx.coroutines.* // Asynchronous execution fun main() { GlobalScope.launch { // creates a new coroutine and continues doWorld() // suspending function } println("World !") // execution continues even while coroutine wait... Add solution -
C# 2021-09-13 23:36:04
unity script wait
//In the example below the script will right "Hello" and 3 seconds later write "Goodbye" in the console Start() { //Call the function Example() StartCoroutine(Example()); } Example() { Debug.Log("Hello"); //wait 3 ... Add solution -
C# 2021-08-31 16:50:02
simple enemy spawning Unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManagerScript : MonoBehaviour { //This variables will be used to make the limits of the spawn area public Vector2 EnemyAreaLimitUpLeft; public Vec... Add solution -