File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ Unity向けの便利な何かしら達
99
1010- ` void SetTitle() ` : Buttonのタイトルをセットするやつ(HierarchからButton作ったものを想定している)
1111
12+ ### DateTimeExtension
13+
14+ - ` long Timestamp() ` : DateTimeをUNIXタイムスタンプに変換する
15+
1216### GameObjectExtension
1317
1418- ` void AddComponentIfNeeded<T>() ` : 指定されたComponentがなければ追加するやつ
@@ -35,4 +39,15 @@ Unity向けの便利な何かしら達
3539
3640### TransformExtension
3741
38- - ` void ChangeLayersRecursively(string) ` : 再帰的に指定されたレイヤーに変えるやつ
42+ - ` void ChangeLayersRecursively(string) ` : 再帰的に指定されたレイヤーに変えるやつ
43+
44+ ## Network
45+
46+ ### NTP
47+
48+ 公開されているNTPサービスをつかって正しい現在時刻を取得するやつ
49+ CREDIT: [ NICT様] ( http://jjy.nict.go.jp/ntp/ )
50+
51+ - ` void GetTimestamp(System.Action<long?>) ` : UNIXタイムスタンプを取得
52+ - ` void GetTimestamp(System.Action<DateTime?>) ` : UNIXタイムスタンプをDateTimeに変換して取得
53+ DateTimeはLocalDateTimeに変換
You can’t perform that action at this time.
0 commit comments