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 UnityEngine.Networking; | |
using System.Collections; | |
using System.Collections.Generic; | |
[CreateAssetMenu] | |
public class GoogleTranslateService : ScriptableObject | |
{ | |
public static GoogleTranslateService instance; |
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 "Custom/Fog" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Texture", 2D) = "white" {} | |
_NoiseTex ("NoiseTexture", 2D) = "white" {} | |
} | |
SubShader | |
{ |
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 <stdio.h> | |
// Make a FOREACH macro | |
#define FE_0() | |
#define FE_1(X) *((X*)(args[0])) | |
#define FE_2(X, ...) FE_1(__VA_ARGS__), *((X*)(args[1])) | |
#define FE_3(X, ...) FE_2(__VA_ARGS__), *((X*)(args[2])) | |
#define FE_4(X, ...) FE_3(__VA_ARGS__), *((X*)(args[3])) | |
#define FE_5(X, ...) FE_4(__VA_ARGS__), *((X*)(args[4])) | |
#define FE_6(X, ...) FE_5(__VA_ARGS__), *((X*)(args[5])) |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <limits.h> | |
#include <assert.h> | |
#include <stdbool.h> | |
typedef uint32_t EId; | |
typedef struct |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <limits.h> | |
#include <assert.h> | |
#include <stdbool.h> | |
typedef uint32_t EId; | |
typedef struct |
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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct | |
{ | |
unsigned int size; | |
void (*destructor)(); | |
int length; | |
int reserved; | |
char* bytes; |
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 void autoDeserialize(ObjectContext context, AutoSerialisedObject autoSerializedObject, RestoreProcess restoreProcess) | |
{ | |
var cache = getClassReflectionCache(context.type); | |
foreach (var field in cache.fields) | |
{ | |
var serializedField = autoSerializedObject.autoSerialiedFields.Find(item => item.name == field.fieldInfo.Name); | |
if (serializedField.value != null) | |
{ |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
public class AttributeManager : EditorWindow | |
{ |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
// Lib code | |
char* ___tid(const char* strPtr) { return (char*)strPtr; } | |
#define TID(type) ((intptr_t)___tid(#type)) |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <assert.h> | |
// ******************* | |
// CONTAINERS LIBRARY | |
// ******************* |
OlderNewer