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; | |
public class EnumLikeJava { | |
public static readonly EnumLikeJava enum1 = new EnumLikeJava("enum1", (s) => s + "foo"); | |
public static readonly EnumLikeJava enum2 = new EnumLikeJava("enum2", (s) => s + "bar"); | |
public static readonly EnumLikeJava enum3 = new EnumLikeJava("enum3", (s) => s + "baz"); | |
public readonly string Field; | |
public readonly Func<string, string> _method; |
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.Generic; | |
using System.Linq; | |
// Static singleton class. | |
// There is no necessary to access this class directly. | |
public class EventManager { | |
private static Dictionary<GameEvent, List<WeakReference>> listeners = | |
new Dictionary<GameEvent, List<WeakReference>>(); |
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; | |
using UnityEngine.EventSystems; | |
using System.Linq; | |
public class Closer : MonoBehaviour, IPointerClickHandler { | |
public int ancestorLevel = 0; | |
public void OnPointerClick(PointerEventData data) { |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://gist.githubusercontent.com/sujoyu/d3a187ee3b30a2f2009f/raw/5a1e111f77ae49c8173fc8574738eb9e8c3cd312/balloon-annotation.css"> | |
</head> | |
<body> | |
<br /> | |
<div class="balloon-annotation"> | |
annotation legend. | |
<p class="balloon-annotation-body">annotation body! FOOOOOOOO!!</p> | |
</div> |
NewerOlder