Mercurial > hg > Database > jungle-sharp
comparison src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle/util/Pair.cs @ 0:dec15de2c6ff
first commit
author | Kazuma |
---|---|
date | Tue, 21 Jun 2016 17:11:12 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dec15de2c6ff |
---|---|
1 using UnityEngine; | |
2 using System.Collections; | |
3 | |
4 public class Pair<L, R> { | |
5 private L left; | |
6 private R right; | |
7 | |
8 public Pair(L _left,R _right){ | |
9 left = _left; | |
10 right = _right; | |
11 } | |
12 // not same name , add s. | |
13 public L lefts(){ | |
14 return left; | |
15 } | |
16 | |
17 public R rights(){ | |
18 return right; | |
19 } | |
20 | |
21 } |