This file contains 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 AudioZone : MonoBehaviour | |
{ | |
private enum Options { SetVolume, VolumeOnDistance }; | |
[Header("Type")] | |
[SerializeField] private Options _Option = Options.SetVolume; | |
[Header("Target")] | |
[SerializeField] private Transform _ZoneEffector = null; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ObjectPool : MonoBehaviour | |
{ | |
[SerializeField] private ObjectPool_Pool[] _ObjectPools = null; | |
private List<Transform> _Parents = new List<Transform>(); | |
public static ObjectPool POOL; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Movement_Camera_CutScenes : MonoBehaviour | |
{ | |
[SerializeField] private List<Movement_Camera_CutScene> _CutScenes = new List<Movement_Camera_CutScene>(); | |
[SerializeField] private LayerMask _TargetLayer; | |
private int _Current_CutScene; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.Audio; | |
public class AudioHandler : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[Tooltip("Only used for testing disable it for the final build to improve performance")] |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using System; | |
using UnityEngine; | |
public class Clock : MonoBehaviour | |
{ | |
[Header("0,0,0 = SystemTime / else Custom Time")] | |
public Vector3 CurrentTime_Number; |
This file contains 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 Pendulum : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[SerializeField] private float _Speed = 1; | |
[SerializeField] private float _Distance = 20; | |
[Header("Offset")] | |
[SerializeField] private Vector3 _RotationOffset = Vector3.zero; |
This file contains 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 System.Collections.Generic; | |
using System.Collections; | |
using System.IO; | |
using System; | |
using UnityEditor.SceneManagement; | |
using UnityEditorInternal; | |
using UnityEditor; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(Rigidbody))] | |
public class Movement_RB_FirstPerson : MonoBehaviour | |
{ | |
[Header("Set Refference")] | |
[SerializeField] private Transform _Head = null; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Movement_FreeCamera : MonoBehaviour | |
{ | |
[SerializeField] private float _Speed = 5; | |
[SerializeField] private float _SprintSpeed = 8; | |
private float _CurrentSpeed; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Movement_Camera : MonoBehaviour | |
{ | |
private enum CameraOptionsPos { None, Follow } | |
private enum CameraOptionsRot { None, Follow } | |
[Header("Options")] |
NewerOlder