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; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
namespace SmolderSoft.Gists | |
{ | |
/// <summary> | |
/// Add this component to a Graphic to allow dragging. Keeps within the bounds of the screen. | |
/// </summary> | |
public class DraggableWindow : MonoBehaviour, IDragHandler, IBeginDragHandler |
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; | |
using UnityEngine.InputSystem; | |
using System.Collections; | |
using UnityEngine.XR.Interaction.Toolkit; | |
using Sirenix.OdinInspector; | |
using ScriptableObjectArchitecture; | |
using HouseOfCards.Player; | |
using RichPackage; | |
using CommonUsages = UnityEngine.XR.CommonUsages; |
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
// Richard Osborn | |
// A very simple, serializable database for storing primitive values in a scriptable object. | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// A simple database object that stores key-value pairs of primitive types. | |
/// </summary> |
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 System.Runtime.CompilerServices; | |
using System.Threading; | |
/// <summary> | |
/// Thread-safe counter. | |
/// </summary> | |
internal struct AtomicCounter | |
{ | |
private int counter; |