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 class CheckConnection : MonoBehaviour | |
| { | |
| private void Start() | |
| { | |
| StartCoroutine(IsConnected(connected => | |
| { | |
| if (connected) | |
| { | |
| Debug.Log("connented in internet") | |
| }else |
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
| using UnityEngine; | |
| public static class Vibre | |
| { | |
| #if UNITY_ANDROID | |
| public static void Vibrator(long milliseconds ) | |
| { | |
| if (Application.isEditor ) Handheld.Vibrate(); | |
| if (Application.platform == RuntimePlatform.Android) | |
| { |
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
| using System.Collections; | |
| using TMPro; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| using Random = UnityEngine.Random; | |
| public class VertexJitter : MonoBehaviour | |
| { | |
| private const float AngleMultiplier = 0.5f; | |
| private const float CurveScale = 0f; |
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
| Shader "Unlit/invertColorArea" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Threshold ("Threshold", Range(0., 1.)) = 0 | |
| _ThresholdDiscard ("ThresholdDiscard", Range(0., 1.)) = 0 | |
| } | |
| SubShader |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| /// Creates a wave form based on an audiosource | |
| /// Modified version of http://forum.unity3d.com/threads/making-sense-of-spectrum-data.90262 | |
| /// Make sure to plug in the _topLine and _bottomLine line renderers | |
| public class WaveGenerator : MonoBehaviour | |
| { |