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; | |
public class testWebView : MonoBehaviour { | |
WebViewObject webViewObject; | |
// Use this for initialization | |
void Start () { | |
webViewObject =(new GameObject("WebViewObject")).AddComponent<WebViewObject>(); |
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; | |
public class testHttp : MonoBehaviour { | |
private string res; | |
IEnumerator download () { | |
string url = "http://www.unity3d.com/"; | |
WWW www = new WWW(url); |
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; | |
public class testLoadAsync : MonoBehaviour { | |
private AsyncOperation async; | |
IEnumerator Start(){ | |
// 非同期でロード開始 |
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; | |
// プレイヤーIDをプレイヤーの上に表示させる処理がメイン | |
public class GameLogic : MonoBehaviour | |
{ | |
public static int playerWhoIsIt = 0; | |
private static PhotonView ScenePhotonView; |
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; | |
namespace Init { | |
public static class InitApp { | |
const string url = "hoge"; | |
public static void Log(){ | |
Debug.Log("test"); |
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; | |
public class TestLocalStorage : MonoBehaviour { | |
private int Score = 100; | |
private int Score2; | |
// Use this for initialization | |
void Start () { |
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; | |
public class GetUUID : MonoBehaviour { | |
private string deviceIDKey; | |
// Use this for initialization | |
void Start () { | |
// Get UUID |
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 System.Collections.Generic; | |
using MiniJSON; | |
public class TestHttp : MonoBehaviour { | |
public GameObject sphere; | |
// Use this for initialization |
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
<?php | |
class Controller_Testapi extends Controller_Rest | |
{ | |
//GETでリクエストがきたときはこっち | |
public function get_name() | |
{ | |
//返したいデータを整形 | |
$_outputBuffer = array('name' => 'test'); | |
//$this->responseに配列として設定してやるだけでおわり |
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 System.Collections.Generic; | |
using MiniJSON; | |
public class TestHttp : MonoBehaviour { | |
private string res; | |
// Use this for initialization |