Skip to content

Instantly share code, notes, and snippets.

View seferciogluecce's full-sized avatar
Curious

Ece Sefercioğlu seferciogluecce

Curious
View GitHub Profile
using UnityEngine;
public class Spawner : MonoBehaviour
{
private Vector3 SpawnPos;
public GameObject spawnObject;
private float newSpawnDuration = 1f;
#region Singleton
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
[RequireComponent(typeof(Collider))]
public class DragAndShoot : MonoBehaviour
{
private Vector3 mousePressDownPos;
private Vector3 mouseReleasePos;
private Rigidbody rb;