-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nagata Yuto
committed
Oct 28, 2019
1 parent
d882004
commit 590410f
Showing
8 changed files
with
1,448 additions
and
74 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
|
||
public class DisplayCleanPlaceData : MonoBehaviour | ||
{ | ||
CleanPlaceData myData; | ||
[SerializeField] Text lastUpdateTime; | ||
[SerializeField] Text intervalTime; | ||
|
||
/// <summary> | ||
/// 表示するデータの登録 | ||
/// </summary> | ||
/// <param name="data"></param> | ||
public void SetCleanPlaceData(CleanPlaceData data) | ||
{ | ||
myData = data; | ||
} | ||
|
||
/// <summary> | ||
/// データをテキストに表示する関数 | ||
/// </summary> | ||
public void DisplayData() | ||
{ | ||
if (myData != null) | ||
{ | ||
lastUpdateTime.text = myData.DateDataText; | ||
intervalTime.text = myData.CleanIntervalText; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"placeDataList":[{"place":"daigo","seDate":{"year":2019,"month":10,"day":24,"hour":17,"minute":51,"second":6},"dateData":""},{"place":"daigogo","seDate":{"year":2019,"month":10,"day":24,"hour":17,"minute":52,"second":8},"dateData":""},{"place":"daigogogo","seDate":{"year":2019,"month":10,"day":24,"hour":18,"minute":2,"second":22},"dateData":"2019年10月24日18時2分22秒"},{"place":"12","seDate":{"year":2019,"month":10,"day":24,"hour":18,"minute":10,"second":52},"dateData":"2019年10月24日18時10分52秒"},{"place":"daigo","seDate":{"year":2019,"month":10,"day":24,"hour":18,"minute":12,"second":19},"dateData":"2019年10月24日18時12分19秒"}]} | ||
{"placeDataList":[{"place":"daigo","lastUpdateTime":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"cleanInterval":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"dateData":"","cleanIntervalText":""},{"place":"daigogogo","lastUpdateTime":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"cleanInterval":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"dateData":"2019年10月24日18時2分22秒","cleanIntervalText":""},{"place":"daigo","lastUpdateTime":{"year":2019,"month":10,"day":28,"hour":20,"minute":18,"second":1},"cleanInterval":{"year":0,"month":0,"day":24,"hour":0,"minute":0,"second":0},"dateData":"2019年10月28日20時18分1秒","cleanIntervalText":""},{"place":"aaa","lastUpdateTime":{"year":2019,"month":10,"day":28,"hour":20,"minute":20,"second":21},"cleanInterval":{"year":0,"month":0,"day":0,"hour":0,"minute":0,"second":0},"dateData":"2019年10月28日20時20分21秒","cleanIntervalText":""},{"place":"aaa","lastUpdateTime":{"year":2019,"month":10,"day":28,"hour":20,"minute":21,"second":57},"cleanInterval":{"year":0,"month":0,"day":20,"hour":0,"minute":0,"second":0},"dateData":"10月28日20時21分57秒","cleanIntervalText":"20日"}]} |