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.UI; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class SetPositionFromObject : MonoBehaviour | |
{ | |
public Canvas can; | |
public Camera cam; |
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 static class ExtensionMethods { | |
public static Vector3 GetScreenPosition(Transform transform, Canvas canvas, Camera cam) | |
{ | |
Vector3 pos; |
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 BlinkShader : MonoBehaviour | |
{ | |
public float fadeSpeed = 2f; | |
public float highIntensity = 2f; | |
public float lowIntensity = 0.5f; | |
public float changeMargin = 0.2f; | |
public bool blinkOn; |
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 "Dissolve/Diffuse" { | |
Properties { | |
_Color ("Main Color", Color) = (1,1,1,1) | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_DissolveTex ("Dissolve (R)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags {"IgnoreProjector"="True" "RenderType"="TransparentCutout"} | |
LOD 300 |
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; | |
public class DisableSystemUI : MonoBehaviour | |
{ | |
#if UNITY_ANDROID | |
static AndroidJavaObject activityInstance; | |
static AndroidJavaObject windowInstance; | |
static AndroidJavaObject viewInstance; | |
const int SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2; |
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.UI; | |
using System.Collections; | |
public class ScrollRectBlured : MonoBehaviour { | |
ScrollRect scrollRect; | |
public UnityEngine.UI.Image startBlur; | |
public UnityEngine.UI.Image endBlur; |
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.UI; | |
using UnityEngine.EventSystems; | |
using System.Collections; | |
public class PreventClickOnDrag : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler { | |
private ScrollRect sr; | |
private CanvasGroup cg; |
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 NetworkManager : MonoBehaviour { | |
public bool setupServer = false; | |
void Start () | |
{ |
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
npm install -g npm-check-updates | |
npm-check-updates -u | |
npm install |
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 UnityClick : MonoBehaviour { | |
public LayerMask terrainLayer; | |
void Update() | |
{ | |
if ( Input.GetMouseButtonDown(0)) |
OlderNewer