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; | |
internal class Human | |
{ | |
private string name; | |
private Hand[] hands; | |
private Human() | |
{ | |
hands = new Hand[2] | |
{ |
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; | |
using UnityEngine; | |
namespace Game | |
{ | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
public class MeshGeneration : MonoBehaviour | |
{ | |
[SerializeField] |
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; | |
namespace Game | |
{ | |
[DisallowMultipleComponent] | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
public class TerrainMeshGeneration : MonoBehaviour | |
{ | |
public delegate float PerlinNoiseHeightCalculationDelegate(int x, int y); |
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; | |
namespace Prototype | |
{ | |
[RequireComponent(typeof(CharacterController))] | |
public sealed class SimpleCharacterController : MonoBehaviour | |
{ | |
[SerializeField] | |
private CharacterController m_characterController = default; |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// Serializable Dictionary for Unity (by LuviKunG) | |
// https://gist.github.com/LuviKunG | |
namespace LuviKunG.Serializables | |
{ |
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.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
/* | |
CSV Reader (with parser). | |
Created by @LuviKunG | |
https://github.com/LuviKunG | |
https://gist.github.com/LuviKunG | |
*/ |
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.Collections.Generic; | |
/// <summary> | |
/// Manageable instance class of scripting define symbols group. | |
/// </summary> | |
public sealed class ScriptingDefineSymbols | |
{ | |
private const char SDS_SEPARATOR = ';'; | |
private HashSet<string> m_list; |
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
@echo off | |
set packageFolder="Your package folder in unity Assets folder" | |
set /p version=Enter Version: | |
echo %version% | |
git subtree split --prefix="Assets/%packageFolder%" --branch upm | |
git tag %version% upm | |
pause |
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
@echo off | |
echo Deleting all files in the 'Library' folder. | |
del /s /q /f "Library/" | |
rd /s /q "Library/" | |
echo Deleting all files in the 'Logs' folder. | |
del /s /q /f "Logs/" | |
rd /s /q "Logs/" | |
echo Deleting all files in the 'obj' folder. | |
del /s /q /f "obj/" | |
rd /s /q "obj/" |
OlderNewer