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
#include "Observer.h" | |
Observer::Observer() : function(nullptr) | |
{ | |
} | |
Observer::~Observer() | |
{ | |
function = nullptr; | |
} |
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; | |
using System.Linq; | |
namespace PracticeAlgorithmCSharp | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Solution(); |
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; | |
using System.Text; | |
namespace PracticeAlgorithmCSharp | |
{ | |
public class Tree | |
{ | |
private readonly Node root; | |
public Tree(int[] arr) |
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; | |
public class ObjectPool<T> where T : UnityEngine.Object | |
{ | |
private Queue<T> queue = null; | |
private T original = null; | |
private int capacity = 0; | |
public ObjectPool(T original, int capacity = 10) | |
{ |
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 System.Reflection; | |
using System; | |
public static class UnityEditorExtension | |
{ | |
public static void AssertCheckNullWithSerializeFields(this MonoBehaviour behaviour) | |
{ | |
if (Application.isEditor == false) | |
{ |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Assets.Editor | |
{ | |
public class AnimAssetDuplicator | |
{ | |
[MenuItem("Assets/Model/Duplicate Animation Assets &d")] | |
public static void DuplicateAnimationAssetsInThisFolder() |
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; | |
namespace CSharpPractice | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[,] arr = new int[2, 4] | |
{ |
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; | |
namespace CSharpPractice | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
/* | |
https://www.geeksforgeeks.org/cutting-a-rod-dp-13/ |
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
Shader "Unlit/Transparent Alpha" { | |
Properties{ | |
_Alpha("Alpha", Range(0.0, 1.0)) = 1.0 | |
_MainTex("Texture", 2D) = "white" {} | |
} | |
SubShader{ | |
Tags {"Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent"} | |
LOD 100 |
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 UnityEditor; | |
using UnityEngine; | |
public class ScriptReferencesFinder : EditorWindow | |
{ | |
private Vector2 scrollPosition; | |
private List<MonoBehaviour> references = new List<MonoBehaviour>(); | |
private static MonoScript field = null; |
NewerOlder