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
public class Test { | |
private static List<Tuple<Protocol, int>> PortMapRequirements = new List<Tuple<Protocol, int>>(); | |
private static bool _timeOutFinished = false; | |
private static List<Task> _portMapStatus = new List<Task>(); | |
public static void Initialize() { | |
PortMapRequirements.Add(new Tuple<Protocol, int>(Protocol.Udp, 27015)); | |
PortMapRequirements.Add(new Tuple<Protocol, int>(Protocol.Udp, 27016)); | |
//PortMapRequirements.Add(new Tuple<Protocol, int>(Protocol.Tcp, 27015)); |
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
scott@ubuntu:/media/strichnet/WFTOLauncher/bin/Release/LinuxNative$ MONO_LOG_LEVEL=debug ./WFTOLauncherNative.exe | |
Mono: gc took 15 usecs | |
Mono: Assembly Loader loaded assembly from bundle: 'WFTOLauncher.exe'. | |
Mono: Assembly Loader probing location: '/usr/local/lib/mono/4.5/mscorlib.dll'. | |
Mono: Assembly Loader loaded assembly from bundle: 'mscorlib.dll'. | |
Mono: Image addref mscorlib[0x1b50da0] -> mscorlib.dll[0x1b4fc20]: 2 | |
Mono: AOT module 'mscorlib.dll.so' not found: mscorlib.dll.so: cannot open shared object file: No such file or directory | |
Mono: Config attempting to parse: 'mscorlib.dll.config'. | |
Mono: Config attempting to parse: '/usr/local/etc/mono/assemblies/mscorlib/mscorlib.config'. |
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
public class BulkMaterialSwapWindow : MonoBehaviour { | |
public Material oldMat; | |
public Material newMat; | |
[MenuItem("WFTO/Bulk Asset Modifier/Bulk Material Swap")] | |
static void Init() { | |
BulkMaterialSwapWindow window = EditorWindow.GetWindowWithRect(typeof(BulkMaterialSwapWindow), new Rect(0, 0, 165, 100)); | |
window.Show(); | |
} |
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
public class BulkMaterialSwapWindow : MonoBehaviour { | |
public Shader oldShader; | |
public Shader newShader; | |
[MenuItem("WFTO/Bulk Asset Modifier/Bulk Shader Swap")] | |
static void Init() { | |
BulkShaderSwapWindow window = EditorWindow.GetWindowWithRect(typeof(BulkShaderSwapWindow), new Rect(0, 0, 165, 100)); | |
window.Show(); | |
} |
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
public class BulkShaderSwapWindow : MonoBehaviour { | |
public Shader oldShader; | |
public Shader newShader; | |
[MenuItem("WFTO/Bulk Asset Modifier/Bulk Shader Swap")] | |
static void Init() { | |
BulkShaderSwapWindow window = EditorWindow.GetWindowWithRect(typeof(BulkShaderSwapWindow), new Rect(0, 0, 165, 100)); | |
window.Show(); | |
} |
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
public class BulkMaterialSwapWindow : MonoBehaviour { | |
public Shader oldShader; | |
public Shader newShader; | |
[MenuItem("WFTO/Bulk Asset Modifier/Bulk Shader Swap")] | |
static void Init() { | |
BulkShaderSwapWindow window = EditorWindow.GetWindowWithRect(typeof(BulkShaderSwapWindow), new Rect(0, 0, 165, 100)); | |
window.Show(); | |
} |
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
var someArray[]; | |
int arrayPos = 0; | |
CallFunction(funcArray, arrayPos, null); | |
CallFunction(var funcArray[], int arrayPos, var result) { | |
var newResult = window[funcArray[arrayPos]]; | |
if(result == null) | |
newResult(); | |
else |
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
var someArray[]; | |
int arrayPos = 0; | |
CallFunction(funcArray, arrayPos, null, null); | |
CallFunction(var funcArray[], int arrayPos, var result, var parentObject) { | |
var newResult; | |
var newParentObject; | |
if(result == null) { | |
newResult = window[funcArray[arrayPos]]; |
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 created with Shader Forge v1.02 | |
// Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/ | |
// Note: Manually altering this data may prevent you from opening it in Shader Forge | |
/*SF_DATA;ver:1.02;sub:START;pass:START;ps:flbk:,lico:1,lgpr:1,nrmq:1,limd:1,uamb:True,mssp:True,lmpd:False,lprd:False,rprd:False,enco:False,frtr:True,vitr:True,dbil:True,rmgx:True,rpth:1,hqsc:False,hqlp:False,tesm:0,blpr:0,bsrc:0,bdst:1,culm:0,dpts:2,wrdp:True,ufog:True,aust:True,igpj:False,qofs:0,qpre:1,rntp:1,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg:0.5,fgcb:0.5,fgca:1,fgde:0.01,fgrn:0,fgrf:300,ofsf:0,ofsu:0,f2p0:False;n:type:ShaderForge.SFN_Final,id:1,x:34625,y:32712,varname:node_1,prsc:2|diff-391-OUT,spec-435-OUT,gloss-79-OUT,normal-44-RGB,emission-617-OUT,amspl-192-OUT;n:type:ShaderForge.SFN_Tex2d,id:5,x:33399,y:31694,ptovrint:False,ptlb:Diffuse,ptin:_Diffuse,varname:node_3400,prsc:2,ntxv:0,isnm:False;n:type:ShaderForge.SFN_Color,id:6,x:33399,y:31922,ptovrint:Fal |
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
public static class GameObjectExtensions { | |
public static bool HasComponent<T>(this GameObject gameObject) { | |
return gameObject.GetComponent<T>() != null; | |
} | |
} |
OlderNewer