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
| Shader "Custom/UIBlur" | |
| { | |
| Properties | |
| { | |
| [Toggle(IS_BLUR_ALPHA_MASKED)] _IsAlphaMasked("Image Alpha Masks Blur", Float) = 1 | |
| [Toggle(IS_SPRITE_VISIBLE)] _IsSpriteVisible("Show Image", Float) = 1 | |
| // Internally enforced by MAX_RADIUS | |
| _Radius("Blur Radius", Range(0, 64)) = 1 |
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
| /* | |
| * Created by C.J. Kimberlin | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2019 | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
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 static class Bootstrapper { | |
| [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
| public static void Execute() { | |
| Object.DontDestroyOnLoad(Object.Instantiate(Resources.Load("Systems"))); | |
| } | |
| } |
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 Dragger : MonoBehaviour { | |
| private Vector3 _dragOffset; | |
| private Camera _cam; | |
| [SerializeField] private float _speed = 10; | |
| private void Awake() { |
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
| public class SaveManager : MonoBehaviour { | |
| public static SaveData SaveData; | |
| private static string SavePath => $"{Application.persistentDataPath}/save.game"; | |
| private BinaryFormatter _formatter = new BinaryFormatter(); | |
| void Start() { | |
| Load(); | |
| } |
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
| public class NetworkManager : MonoBehaviour { | |
| private void Start() { | |
| StartCoroutine(MakeRequests()); | |
| } | |
| private IEnumerator MakeRequests() { | |
| // GET | |
| var getRequest = CreateRequest("https://jsonplaceholder.typicode.com/todos/1"); | |
| yield return getRequest.SendWebRequest(); |