A Pen by Patryk Zabielski on CodePen.
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
public class Achievement | |
{ | |
public int countToUnlock { get; set; } | |
public bool isUnlocked { get; set; } | |
public string Message { get; set; } |
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; | |
[RequireComponent (typeof (Animator))] | |
[RequireComponent (typeof (NavMeshAgent))] | |
[RequireComponent (typeof (CapsuleCollider))] | |
public class ZombieInstance : MonoBehaviour { | |
public float hp = 100.0f, damage = 20.25f, bodieRemovalTime = 10.0f, moveSpeed = 2.0f, fieldOfView = 45.0f, viewDistance = 5.0f, playerSearchInterval = 1.0f, minChase = 5.0f, maxChase = 10.0f, minWander = 5.0f, maxWander = 20.0f; |
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 “Custom/CurvedWorld” { | |
Properties { | |
// Diffuse texture | |
_MainTex (“Base (RGB)”, 2D) = “white” {} | |
// Degree of curvature | |
_Curvature (“Curvature”, Float) = 0.001 | |
// Axis Around which the curvature is required | |
_Axis (“Axis”, int ) = 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; | |
namespace FBCapture | |
{ | |
public class FPSScript : MonoBehaviour | |
{ | |
/// <summary> | |
/// Delta time |
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 UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.VR; | |
using VRStandardAssets.Utils; | |
public class VrModeSwitch : MonoBehaviour | |
{ | |
// REFERENCE | |
[SerializeField] private GyroCamera _gyroControl; |
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
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement | |
// for using the mouse displacement for calculating the amount of camera movement and panning code. | |
using UnityEngine; | |
using System.Collections; | |
public class MoveCamera : MonoBehaviour | |
{ | |
// | |
// VARIABLES |
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
Need to include Modernizer (http://www.modernizr.com/) and jQuery (http://jquery.com/) | |
$(document).ready(function($){ | |
if (Modernizr.localstorage) { | |
$('#hide-button').click(function(e){ | |
localStorage.setItem('subscribed',true); | |
$('#sign-up-form,#hide-button').hide(); | |
$('#hide-button').hide(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title>Park Alert</title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<link href="https://fonts.googleapis.com/css?family=Heebo" rel="stylesheet"> | |
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" /> | |
<style> | |
html,body{margin:0;padding:0;overflow:hidden}body{margin:0;padding:0;font-family:'Heebo','Helvetica Neue',Arial,Helvetica,sans-serif;position:relative}.qrcode{float:right;width:150px;height:150px;position:absolute;top:0;right:0}.qrcode>img{width:130px;height:130px;float:right;margin:0;border:10px solid #fff;display:block}body{overflow:hidden}section{min-height:150px;background-color:#fff;margin:20px;-webkit-box-shadow:10px 10px 28px 1px rgba(0,0,0,.2);-moz-box-shadow:10px 10px 28px 1px rgba(0,0,0,.2);box-shadow:10px 10px 28px 1px rgba(0,0,0,.2);position:relative}section .fa-times{position:absolute;right:7px;top:7px;font-size:1.3em;cursor:pointer}section .icon{padding:43px;margin-right: |
OlderNewer