Skip to content

Instantly share code, notes, and snippets.

View Paradox137's full-sized avatar
🍊
On work

Igor Verbitskii Paradox137

🍊
On work
View GitHub Profile
public abstract class Singleton<T> : MonoBehaviour where T : class
{
private static T _instance;
public static T Instance { get { return _instance; } }
protected virtual void Awake()
{
if (_instance != null && _instance != this as T)
{
@Paradox137
Paradox137 / HierarchyHighlight.cs
Created April 6, 2022 07:12
Hierarchy highlight manager
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using UnityEngine;
using UnityEditor;
using Scripts.Utility;
namespace Assets.Editor
{
@Paradox137
Paradox137 / HierarchyHighlighter.cs
Created April 6, 2022 07:03
Hierarchy highlighter for Unity Editor window
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Scripts.Utility
{
public class HierarchyHighlighter : MonoBehaviour
@Paradox137
Paradox137 / SmoothFollow.cs
Created January 19, 2022 13:11
Smooth camera unity
// Smooth Follow from Standard Assets
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead.
using UnityEngine;
using System.Collections;
public class SmoothFollow : MonoBehaviour {
// The target we are following
public Transform target;
@Paradox137
Paradox137 / .gitignore
Last active March 23, 2023 10:22
Unity gitignore 2023
# This .gitignore file should be placed at the root of your Unity project directory
#
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/