Skip to content

Instantly share code, notes, and snippets.

@darkon76
darkon76 / APool.gif
Last active January 9, 2018 17:26
Object Pool
APool.gif
@darkon76
darkon76 / AnimatedText
Last active February 19, 2019 09:43
UI Canvas. Animated conversation text.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[RequireComponent(typeof(Text))]
public class AnimatedText: BaseMeshEffect
{
[SerializeField] private float _waitBetweenLetters = .1f;
private CanvasRenderer _canvasRendered;
@darkon76
darkon76 / OrtographicDrag.cs
Last active April 3, 2023 19:54
Unity Drag.
using UnityEngine;
using UnityEngine.EventSystems;
public class OrtographicDrag: MonoBehaviour, IDragHandler
{
private Camera _mainCamera;
public float DistanceToCamera;
public void OnDrag(PointerEventData eventData)
{
using UnityEngine;
[SelectionBase]
public class SelectionBaseScript : MonoBehaviour {
}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Collections
{
/// <summary>
/// A binary heap.
/// </summary>
using System.Collections.Generic;
using FS.SDK.Collections;
namespace AStar
{
/// <summary>
/// A pathfinder.
/// </summary>
public class Pathfinder
{
using System.Diagnostics;
using UnityEngine;
public static class GizmoHelper
{
private static Color _color;
private static GizmoHelperDrawer _gizmoHelperComp;
public static Color Color