View JumpBy.cs
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
// | |
// (c) 2020 Tapap. | |
// Licensed under MIT. | |
// | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Takap.Utility |
View BarState.h
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
#pragma once | |
#pragma execution_character_set("utf-8") | |
namespace HpBar | |
{ | |
// バーの状態を表します。 | |
enum class BarState : int | |
{ | |
Unknwon = 0, //未設定 | |
Green, Yellow, Red, |
View JsonUtility.cs
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 static class JsonUtility | |
{ | |
/// <summary> | |
/// 任意のオブジェクトを JSON メッセージへシリアライズします。 | |
/// </summary> | |
public static string Serialize(object graph) | |
{ | |
using (var stream = new MemoryStream()) | |
{ | |
var serializer = new DataContractJsonSerializer(graph.GetType()); |