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 UnityEditor; | |
using System.Collections; | |
[CustomPropertyDrawer(typeof(BitfieldPropertyAttribute))] | |
public class BitfieldPropertyDrawer : PropertyDrawer | |
{ | |
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
{ | |
EditorGUI.BeginProperty(position, label, property); |
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 UnityEngine.Events; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class UIScrollList : MonoBehaviour | |
{ | |
[SerializeField] protected RectTransform m_RowPrefab; | |
[SerializeField] protected ScrollRect m_ScrollRect; | |
[SerializeField] protected UITest m_UITest; |
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
// Upgrade NOTE: replaced 'PositionFog()' with multiply of UNITY_MATRIX_MVP by position | |
// Upgrade NOTE: replaced 'V2F_POS_FOG' with 'float4 pos : SV_POSITION' | |
// Upgrade NOTE: replaced 'glstate.matrix.projection' with 'UNITY_MATRIX_P' | |
Shader "Mine/Spatial Cutoff Test" | |
{ | |
Properties | |
{ | |
_Color ("Main Color", Color) = (1,1,1,1) |
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
0 Desktop: /Users/username/Desktop | |
2 Programs: | |
5 Personal: /Users/username | |
5 MyDocuments: /Users/username | |
6 Favorites: | |
7 Startup: | |
8 Recent: | |
9 SendTo: | |
11 StartMenu: | |
13 MyMusic: /Users/username/Music |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
class OnlyNonVoidReturnTypes | |
{ | |
class C | |
{ | |
public void Void() {} |
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
Builds | |
Debugging Output | |
Screenshots | |
Source Material | |
Temp | |
*.csproj | |
*.pidb | |
*.sln | |
*.unityproj | |
*.userprefs |
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; | |
public class Player : MonoBehaviour | |
{ | |
[SerializeField] protected Hint m_HintPrefab; | |
[SerializeField] protected Footfall m_FootfallPrefab; | |
[SerializeField] protected Material m_FootfallMaterial; | |
[SerializeField] protected EndlessTiles m_EndlessTiles; | |
[SerializeField] protected GUIText m_LivesText; |
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; | |
public class SuperChaseCamera : MonoBehaviour | |
{ | |
public Transform m_Target; | |
public Vector3 m_TargetOffset = new Vector3(0.0f, 1.0f, 0.0f); | |
public Vector3 m_ChasingOffset = new Vector3(0.0f, 1.0f, -10.0f); | |
public Vector3 m_LeadingOffset = new Vector3(0.0f, 1.0f, 20.0f); | |
public float m_NormalisingFactor = 0.1f; |
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 "Mine/Alpha Only" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_MainColor ("Tint Color", Color) = (1, 1, 1, 1) | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Transparent" } |
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; | |
public class Tile : MonoBehaviour | |
{ | |
[SerializeField] TextMesh m_TextMesh; | |
protected EndlessTiles m_EndlessTiles; | |
protected bool m_Touched; | |
protected int m_TileIndex; |