公告版位
需要找什麼嗎? 左邊分類或許可以幫助你...

using UnityEngine;
using System.Collections;
using Facebook.MiniJSON;

public class FirstPage : MonoBehaviour {

public static string FB_JSON_DATA = "No Data";
public static string FB_USER_NAME = "No Name";
public static Texture2D FB_USER_IMAGE;

public GameObject buttonFB;

bool isInit = false;

void Awake(){

黃彥霖 發表在 痞客邦 留言(0) 人氣()

package main

import (
    "net/http"
    "fmt"
    "strconv"
)

func indexHandle(w http.ResponseWriter, r *http.Request) {

    d := "<html><table border=1>";

黃彥霖 發表在 痞客邦 留言(0) 人氣()

以下為 HTML程式碼,請新建 index.html 檔案,複製下面程式碼後,再把它放在專案目錄下

<html>
    <body>
        Hello {{.Name}} !!
    </body>
</html>

---------------------------------------------------------------------
以下為 Go 語言 程式碼:

黃彥霖 發表在 痞客邦 留言(0) 人氣()

記得專案 Player Setting 要啟用 SD 卡 功能

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

    void OnGUI () {
        if (GUI.Button (new Rect (10,10,100,50), "PLAY")){
            Handheld.PlayFullScreenMovie("file:///sdcard/a.mp4", Color.black, FullScreenMovieControlMode.Hidden);
        }
    }

黃彥霖 發表在 痞客邦 留言(0) 人氣()

// 使用前必須先下載 Facebook SDK 可到以下網址下載 ( 本次我的 Facebook SDK 是使用 6.0 版本 )
// Facebook Unity 開發者主頁: https://developers.facebook.com/docs/unity


using UnityEngine;
using System.Collections;
using Facebook.MiniJSON;

public class Test : MonoBehaviour {

public GameObject headMesh; // 記得從外部載入物件到此處,之後頭像貼圖會貼在該物件上

    void Start(){
        // 可參考: https://developers.facebook.com/docs/unity/reference/current

黃彥霖 發表在 痞客邦 留言(3) 人氣()