Skip to content

Instantly share code, notes, and snippets.

View toprakturan's full-sized avatar
🙇‍♀️

Toprak Tonguç Turan toprakturan

🙇‍♀️
View GitHub Profile
@toprakturan
toprakturan / Unity C# - Object Spawner.cs
Last active January 15, 2023 12:54
You can spawn your objects in certain area at random positions and regular intervals with this code.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RandomObjectSpawner : MonoBehaviour
{
//HOW TO USE
//1.Create an empty game object on the scene and add this code to the game object.
//Please change gizmos color to red (from inspector) to make game object more visible.