Skip to content

Instantly share code, notes, and snippets.

@jcarcangiu
jcarcangiu / JC_MainMenu.cs
Created January 16, 2020 08:10
Blast Cartel - Network Scripts (Photon)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class JC_MainMenu : MonoBehaviour
{
[SerializeField] private Button mBT_Play;
[SerializeField] private Button mBT_Options;
@jcarcangiu
jcarcangiu / Slice.shader
Created January 16, 2020 07:46
Dissolve Shader
Shader "Custom/Slice"
{
Properties
{
_Color ("Colour", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_SliceType ("Slicing Type", Range(0, 8)) = 0
_SliceAngle ("Slice Angle", Float) = 0.1
_SlicingWidth ("Slicing Width", Range(0, 1)) = 0.5
@jcarcangiu
jcarcangiu / ShowHeight.shader
Created January 16, 2020 07:09
Terrain Painter Shader
Shader "Custom/ShowHeight"
{
Properties
{
_IsBlendingColor ("Blend Colours? (0 = No, 1 = Yes)", Range (0, 1)) = 1
_BlendSharpness ("Blend Sharpness", Range(0.01, 4)) = 0.75
_ColorWater ("Color Water", Color) = (1, 1, 1, 1)
_TextureWater ("Texture Water", 2D) = "white" {}
_BumpMapWater ("Normal Map Water", 2D) = "bump" {}
@jcarcangiu
jcarcangiu / JC_CharacterController.cs
Created January 16, 2020 06:26
Custom Character Controller
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
/// <summary>
/// Character Controller class.
/// </summary>
public class JC_CharacterController : JC_SimulatedPhysics
{
@jcarcangiu
jcarcangiu / Camera_Focus.cs
Last active January 16, 2020 05:56
WoF - User App
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class Camera_Focus : MonoBehaviour
{
void Start()
{
var vuforia = VuforiaARController.Instance;