- hello, this is the first item in the list
- the second item
- guess what, it's the third item!
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; | |
public class TestWait : MonoBehaviour { | |
private bool hasTouched = false; | |
public IEnumerator Start() { | |
Debug.Log("1"); | |
yield return StartCoroutine(WaitForInput()); | |
Debug.Log("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
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 { |
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", Vector) = (0, 0, 0, 0) | |
_RelativePos ("Relative Position", Vector) = (0, 0, 0, 0) | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } |
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 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 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題 2 | |
3~4題 3 | |
5~6題 4 | |
7~8題 5 | |
9~10題 6 | |
11~20題 6 | |
-} |
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; | |
using System.Collections.Generic; | |
public class TestYield : MonoBehaviour | |
{ | |
public void Start() { | |
IntList list = new IntList(); | |
list.Add(3); | |
list.Add(5); |
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; | |
using System.Collections.Generic; | |
public class TestYield : MonoBehaviour | |
{ | |
public void Start() { | |
TestAdd(); | |
TestOperator(); | |
} |
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
set nocompatible | |
set showcmd | |
filetype on | |
filetype plugin on | |
syntax enable | |
set autoindent | |
set expandtab | |
set smarttab |
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
class Range : IEnumerable | |
{ | |
int _start; | |
int _end; | |
int _step; | |
public Range(int start, int end = int.MaxValue) | |
{ | |
_start = start; | |
_end = end; |
OlderNewer