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
using System.Collections.Generic; | |
using System.Text; | |
using MessagePack; | |
[MessagePackObject(true)] | |
public class ListTest | |
{ | |
public int acb; | |
public StringBuilder def; |
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
using System.IO; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using MsgPack; | |
using MsgPack.Serialization; | |
public class test : MonoBehaviour { |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GetToken : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
UnityEngine.iOS.NotificationServices.RegisterForNotifications( |
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
var webView = ゲームオブジェクト.GetComponent<UniWebView>(); |
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
using System; | |
using System.Text; | |
using System.Security.Cryptography; | |
namespace Musashi.WebApi_v1.Utility | |
{ | |
/// <summary> | |
/// 暗号化・複合化を行う | |
/// </summary> | |
public static class Crypt |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Reflection; | |
using System; | |
public static class CalcTextureSize | |
{ | |
private static Type mType; |
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 Sprite[] textures; | |
textures = Resources.LoadAll<Sprite>("Chara"); |
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
#if NOTIFICATION_SYSTEM_ENABLE | |
// Change value of CFBundleVersion in Xcode plist | |
var buildKey = "UIBackgroundModes"; | |
plist.root.CreateArray (buildKey).AddString ("remote-notification"); | |
#endif |
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
switch (Screen.orientation) { | |
// 縦画面のとき | |
case ScreenOrientation.Portrait: | |
// 左回転して左向きの横画面にする | |
Screen.orientation = ScreenOrientation.LandscapeLeft; | |
break; | |
// 上下反転の縦画面のとき | |
case ScreenOrientation.PortraitUpsideDown: | |
// 右回転して左向きの横画面にする | |
Screen.orientation = ScreenOrientation.LandscapeRight; |
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
// 渡す値 | |
intent.putExtra("A", a); | |
intent.putExtra("B", b); | |
// 値の取得 | |
// データがない場合、第2引数の 0 が返る | |
Integer request_code = intent.getIntExtra("A", 0); | |
String ticker = intent.getStringExtra("B"); |