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 UnityEngine; | |
public class CalculateCameraBox : MonoBehaviour | |
{ | |
private Camera _camera; | |
private EdgeCollider2D _camEdgeCollider; | |
private float _sizeX, _sizeY, _ratio; | |
[SerializeField] private bool isPortrait; |
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
//Need New Input System to Work | |
using System; | |
using UnityEngine; | |
using UnityEngine.InputSystem.EnhancedTouch; | |
using Touch = UnityEngine.InputSystem.EnhancedTouch.Touch; | |
public class SwipeManager : MonoBehaviour | |
{ | |
private Vector2 _startTouchPosition, _currentTouchPosition; |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
/* | |
* Using - https://docs.unity3d.com/2019.4/Documentation/Manual/com.unity.nuget.newtonsoft-json.html for reading and writing json | |
*/ |
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 BulletTrailEffect : MonoBehaviour | |
{ | |
[SerializeField] private GameObject bulletTrail; | |
public void CreateBulletTrail(Transform spawnPoint, Vector3 hitPoint) | |
{ | |
GameObject clone = Instantiate(bulletTrail, spawnPoint.position, bulletTrail.transform.rotation); |
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; | |
using UnityEngine.InputSystem; | |
public class InputManager : MonoBehaviour | |
{ | |
public Vector2 MoveInput; | |
public void OnMove(InputValue input) => MoveInput = input.Get<Vector2>(); | |
} |
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; | |
using LootLocker.Requests; | |
using TMPro; | |
using System; | |
public class LootlockerProgression : MonoBehaviour | |
{ | |
public TMP_Text LevelText; |
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
/* | |
SDK - LootLockerSDK | |
Link - https://github.com/LootLocker/unity-sdk | |
*/ | |
using System; | |
using System.Collections; | |
using UnityEngine; | |
using TMPro; |
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; | |
using UnityEngine.AI; | |
public class agent : MonoBehaviour | |
{ | |
private NavMeshAgent navMeshAgent; | |
List<Transform> patrollingPoints = new List<Transform>(); |
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
//script of FOV Tutorial(Unity) - https://youtu.be/ztdj0KUnGuY | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class fov_script : MonoBehaviour | |
{ | |
public float fovAngle = 90f; | |
public Transform fovPoint; |