This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Spawner : MonoBehaviour | |
{ | |
private Vector3 SpawnPos; | |
public GameObject spawnObject; | |
private float newSpawnDuration = 1f; | |
#region Singleton |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
[RequireComponent(typeof(Rigidbody))] | |
[RequireComponent(typeof(Collider))] | |
public class DragAndShoot : MonoBehaviour | |
{ | |
private Vector3 mousePressDownPos; | |
private Vector3 mouseReleasePos; | |
private Rigidbody rb; |
NewerOlder