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 System.Collections; | |
using System.Collections.Generic; | |
public class Cuerda : MonoBehaviour | |
{ | |
public bool autoGenerarCuerda = true; | |
public Color color = Color.yellow; | |
public float distanciaResolucion = 0.5f; | |
public float distanciaMaxima = 8f; |
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 System.Collections; | |
public class GenMallaPrisma : MonoBehaviour | |
{ | |
[System.Serializable] | |
public class Segmento | |
{ | |
public float largo = 1, radio = .5f; |
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 System.Collections; | |
public class MiraMouse : MonoBehaviour { | |
public float factorRotacion = 1; | |
#if UNITY_EDITOR || UNITY_STANDALONE | |
Vector2 prevPos; | |
void Awake() | |
{ |
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 UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
//MODO DE USO | |
// >> (opcional) Se elige Animator | |
// >> Se elige AnimationClip (de manera comun o usando popup generado por Animator) | |
// >> (opcional) Se prueba exclusividad de sprites (esto se fija si dentro del | |
// Animator elegido los sprites de este AnimationClip son exclusivos) |
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; | |
// AndroidCamTorch.Activar() | |
// AndroidCamTorch.Desactivar() | |
public class AndroidCamTorch | |
{ | |
#if UNITY_ANDROID | |
static AndroidJavaClass cameraClassInternal; | |
static AndroidJavaObject cameraInstanceInternal, cameraParametersInternal; |
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; | |
public class ClearFullScreen : MonoBehaviour { | |
private void OnPreCull() | |
{ | |
GL.Clear(true,true,Color.black,0);//1); | |
} |
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 System.Collections; | |
[ExecuteInEditMode] | |
public class FadeColor : MonoBehaviour { | |
public bool autoIniciar; | |
[Range(0f,1f)] | |
public float tiempo; | |
public float duracion = 1; |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
using an = UnityEditor.Animations; | |
#endif | |
public class AnimatorStateStringAttribute : PropertyAttribute{ } |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
using an = UnityEditor.Animations; | |
#endif | |
public class AnimatorVariableAttribute : PropertyAttribute { } |
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 "Unlit/PaletaAnimadaPorMapeo" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_Paleta ("Paleta", 2D) = "noise" {} | |
_VelPaleta ("VelPaleta", Range(0.25,8)) = 1 | |
} | |
SubShader | |
{ |
OlderNewer