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
public void Initialize() | |
{ | |
FieldInfo[] fields = this.GetType().GetFields( BindingFlags.NonPublic | BindingFlags.Instance ); | |
for( int i = 0; i < fields.Length; i++ ) | |
{ | |
if( fields[ i ].Name == "m_baz" ) | |
fields[ i ].SetValue( this, 42 ); | |
} | |
} |
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
// first column has the gamename, the second has the metascore | |
var scores = File.ReadAllLines( filename ) | |
.Skip( 1 ) | |
.Select( x => x.Split( ',' ) ) | |
.Select( x => new { Game = x[ 0 ], Metascore = x[ 1 ] } ); | |
foreach( var score in scores ) | |
Debug.Log( score.Game + " : " + score.Metascore ); |
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
for( i = 0, j = n - 1; i < n; j = i++ ) | |
{ | |
} |
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/Blink" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_Blink ( "Blink", Float ) = 0 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
LOD 200 | |
CGPROGRAM |
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 UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public abstract class ReadOnlyPropertyAttribute : PropertyAttribute | |
{ | |
public string Displayname { get; private set; } | |
public ReadOnlyPropertyAttribute( string displayName ) | |
{ |
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 UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public abstract class ReadOnlyPropertyAttribute : PropertyAttribute | |
{ | |
public string Displayname { get; private set; } | |
public ReadOnlyPropertyAttribute( string displayName ) | |
{ |
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/Glow" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_GlowColor ("Glow Color", Color ) = ( 1.0, 1.0, 1.0, 1.0 ) | |
_Frequency( "Glow Frequency", Float ) = 1.0 | |
_MinPulseVal( "Minimum Glow Multiplier", Range( 0, 1 ) ) = 0.5 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
LOD 200 |
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
bool mJumping; | |
void JumpCo() | |
{ | |
float jumpProgress = 0.0f; | |
Vector3 jumpStartPos = transform.position; | |
mJumping = True; | |
while( mJumping && jumpProgress < 1.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
using namespace std; | |
#include <iostream> | |
class Foo | |
{ | |
public: | |
void SetX( int x ) | |
{ | |
m_x = x; | |
} |
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
1. "പോളണ്ടിനെ കുറിച്ചൊരക്ഷരം മിണ്ടരുത്!" | |
2. എസ് എല് പുരം (?) | |
3. | |
4. സംഗീതസംബന്ധിയായ നാഷണല് അവാര്ഡ് | |
5. സ്റ്റാനിസ്ലാവ്സ്കി ("ഉദയനാണ് താര"ത്തിലെ വിസ്കി) | |
6. ബൈരി (?) | |
7. ഓട്ടക്കാലണ | |
8. | |
9. | |
10. "ബോയിങ് ബോയിങ്" ലെ ജഗതി |
OlderNewer