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
/************ revisamos que el web player haya finalizado de cargar ************/ | |
if(Application.GetStreamProgressForLevel(0) == 1 && !finishedLoadingApp){ | |
Application.ExternalCall("FinishedLoadingApp"); | |
finishedLoadingApp = true; | |
} | |
/*******************************************************************************/ | |
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
“Always Up” (referring to sun) = Siempre de dia | |
“Always Down” (referring to sun) = Siempre de noche | |
“Hemisphere” = Hemisferio | |
“Northern” (referring to northern hemisphere) = hemisferio norte | |
“Southern” (referring to northern hemisphere) = hemisferio sur | |
“City Map” = mapa de la ciudad | |
“No Cities” = no hay ciudades | |
“Tap + to add a new city” = Unda + para adicionar una nueva ciudad | |
“Units” = Unidades | |
“System Timezone” = Coordenadas horarias (not sure 100%) |
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
“Always Up” (referring to sun) = Siempre de dia | |
“Always Down” (referring to sun) = Siempre de noche | |
“Hemisphere” = Hemisferio | |
“Northern” (referring to northern hemisphere) = hemisferio norte | |
“Southern” (referring to northern hemisphere) = hemisferio sur | |
“City Map” = mapa de la ciudad | |
“No Cities” = no hay ciudades | |
“Tap + to add a new city” = Unda + para adicionar una nueva ciudad | |
“Units” = Unidades | |
“System Timezone” = sistema de zona horaria |
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
/* | |
Basically draws a calculator and all the logic inside. | |
programmed by: Juan Sebastian Munoz Arango | |
[email protected] | |
October | |
*/ | |
using UnityEngine; |
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
//Adjust the size of the transform to ocuppy the whole size of the camera being rendered | |
void Start () { | |
float distance = Vector3.Distance(Camera.main.transform.position, transform.position); | |
float sizeHeight = Mathf.Tan(Mathf.Deg2Rad * Camera.main.fieldOfView/2) * distance; | |
float radAngle = Camera.main.fieldOfView * Mathf.Deg2Rad; | |
float radHFOV = 2 * Mathf.Atan(Mathf.Tan(radAngle / 2) * Camera.main.aspect); | |
float hFOV = Mathf.Rad2Deg * radHFOV; |
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
[MenuItem("FixLODRendeer")] | |
static void LODRendeer() | |
{ | |
LODGroup[] lodgroups = (LODGroup[])GameObject.FindObjectsOfType(typeof(LODGroup)); | |
//For every LOD group: get the current groups and get the renderer names.. | |
foreach (LODGroup lodgroup in lodgroups) | |
{ | |
SerializedObject obj = new SerializedObject(lodgroup); | |
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
/* | |
Created by: Juan Sebastian Munoz Arango | |
[email protected] | |
2014 | |
www.pencilsquaregames.com | |
Feel free to use it for your personal / commercial projects. | |
a mention of the source would be nice but if you dont feel like | |
its alright. | |
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 List<Texture> GetTextures2D(Material mat) { | |
List<Texture> list = new List<Texture>(); | |
int count = ShaderUtil.GetPropertyCount(mat.shader); | |
for(var i = 0; i < count; i++) { | |
if(ShaderUtil.GetPropertyType(mat.shader, i) == ShaderUtil.ShaderPropertyType.TexEnv) { | |
string propertyName = ShaderUtil.GetPropertyName(mat.shader, i); | |
if(propertyName != "_Cube") { | |
list.Add(mat.GetTexture(propertyName)); | |
} | |
} |
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 List<Texture> GetTextures2D(Material mat) { | |
List<Texture> list = new List<Texture>(); | |
int count = ShaderUtil.GetPropertyCount(mat.shader); | |
for(int i = 0; i < count; i++) { | |
if(ShaderUtil.GetPropertyType(mat.shader, i) == ShaderUtil.ShaderPropertyType.TexEnv) { | |
if(ShaderUtil.GetTexDim(mat.shader, i) == ShaderUtil.ShaderPropertyTexDim.TexDim2D) { | |
list.Add(mat.GetTexture(ShaderUtil.GetPropertyName(mat.shader, i))); | |
} | |
} | |
} |
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
naruse@MacBook-Pro ~/dev/HexLang/hex/compiler (master)$:make compiler.out | |
gcc -Wno-implicit parser.o lex.yy.c parser.tab.c ast.o semantics.o vtable.o ../base/hashmap.o ../base/strbuf.o ../base/hash.o compiler.c -o compiler.out | |
parser.y:695:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
1 warning generated. | |
compiler.c:63:66: error: too many arguments to function call, expected 3, have 4 | |
hex_semantics_check_stmt_group(vtable, stmt_group, scope_type, indent_level); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ | |
./semantics.h:32:1: note: 'hex_semantics_check_stmt_group' declared here |
OlderNewer