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 VContainer; | |
using VContainer.Unity; | |
public class AutoInjector : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
var lifetimeScope = LookupScope(); | |
if (lifetimeScope != null) |
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
public sealed class ScriptTemplateProcessor : UnityEditor.AssetModificationProcessor | |
{ | |
const string MonoInstallerTemplate = | |
"using VContainer;\n" + | |
"using VContainer.Unity;\n" + | |
"\n" + | |
"public sealed class #SCRIPTNAME# : MonoInstaller\n" + | |
"{\n" + | |
" public override void Install(UnityContainerBuilder builder)\n" + | |
" {\n" + |
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
namespace Entities | |
{ | |
interface ISealDataSource | |
{ | |
UniTask<Seal> Find(int id); | |
UniTask IncrementAsync(int id, int count); | |
UniTask DecrementAsync(int id); | |
} | |
class Seal |
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
Shader "Hidden/Heipu/Metaball" | |
{ | |
Properties | |
{ | |
_MainTex ("Main Tex", 2D) = "white" {} | |
_ColorRamp ("Color Ramp", 2D) = "white" {} | |
_Threshold ("Threshold", float) = 0.04 | |
_LineLength ("Line Length", float) = 0.5 | |
_Intensity ("Intensity", float) = 1 | |
} |
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
" Settings | |
set updowncompletion | |
let hintcharacters = "qwerasdfzxcv" | |
" Sites | |
let searchalias a = "amazon" | |
let searchalias t = "twitter" | |
let searchalias ja = "googletranslate_ja" | |
let searchalias en = "googletranslate_en" | |
let searchengine amazon = "https://www.amazon.co.jp/s/ref=nb_sb_noss_2?__mk_ja_JP=%s&url=search-alias%3Daps&field-keywords=%s" | |
let searchengine twitter = "https://twitter.com/search?q=%s" |
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
// System.Void System.GC::Collect() | |
extern "C" void GC_Collect_m2249328497 (Il2CppObject * __this /* static, unused */, const MethodInfo* method) | |
{ | |
{ | |
int32_t L_0 = GC_get_MaxGeneration_m1986243316(NULL /*static, unused*/, /*hidden argument*/NULL); | |
GC_InternalCollect_m479047119(NULL /*static, unused*/, L_0, /*hidden argument*/NULL); | |
return; | |
} | |
} |
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
Shader "ShaderDrill/0327/Fresnel" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
_FresnelColor ("Fresnel Color", Color) = (1,1,1,1) | |
_FresnelBias ("Fresnel Bias", Float) = 0 | |
_FresnelScale ("Fresnel Scale", Float) = 1 | |
_FresnelPower ("Fresnel Power", Float) = 1 |
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
Shader "ShaderDrill/0327/Subtractive" | |
{ | |
Properties { | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
} | |
SubShader | |
{ | |
Tags |
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.Diagnostics; | |
using UnityEngine; | |
public class FatClass | |
{ | |
public long M01; | |
public long M02; | |
public long M03; | |
public long M04; | |
public long M05; |
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
class A | |
end | |
A.class_variable_set :@@yamero, 'yamero' | |
p A.class_variable_get :@@yamero | |
fork do | |
p A.class_variable_get :@@yamero | |
exit |
NewerOlder