Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
public class TestWait : MonoBehaviour {
private bool hasTouched = false;
public IEnumerator Start() {
Debug.Log("1");
yield return StartCoroutine(WaitForInput());
Debug.Log("2");
Shader "Custom/CurvedWorld" {
Properties {
// Diffuse texture
_MainTex ("Base (RGB)", 2D) = "white" {}
// Degree of curvature
_Curvature ("Curvature", Float) = 0.001
_HorizontalCurvature ("Horizontal Curvature", Float) = 0.001
_RelativePos ("Relative Position", Vector) = (0, 0, 0, 0)
}
SubShader {
Shader "Custom/CurvedWorld" {
Properties {
// Diffuse texture
_MainTex ("Base (RGB)", 2D) = "white" {}
// Degree of curvature
_Curvature ("Curvature", Vector) = (0, 0, 0, 0)
_RelativePos ("Relative Position", Vector) = (0, 0, 0, 0)
}
SubShader {
Tags { "RenderType"="Opaque" }
public class KZAnalogClock {
public int GetHour();
public int GetMinute();
public int GetSecond();
public void SetTime(int h, int m);
public void SetTime(int h, int m, int s);
public void SetHourAngle(float angle); //hour effects hour only
public void SetMinuteAngle(float angle); //minute effects hour

This is the title

  • hello, this is the first item in the list
  • the second item
  • guess what, it's the third item!

How about links?

http://www.mkdown.com/

{-
題 物件數
1~2題 2
3~4題 3
5~6題 4
7~8題 5
9~10題 6
11~20題 6
-}
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class TestYield : MonoBehaviour
{
public void Start() {
IntList list = new IntList();
list.Add(3);
list.Add(5);
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class TestYield : MonoBehaviour
{
public void Start() {
TestAdd();
TestOperator();
}
set nocompatible
set showcmd
filetype on
filetype plugin on
syntax enable
set autoindent
set expandtab
set smarttab
class Range : IEnumerable
{
int _start;
int _end;
int _step;
public Range(int start, int end = int.MaxValue)
{
_start = start;
_end = end;