大家好,我是 UnityIN小編 Ray,UnityIN開版也已經一年了,各位大概都知道 UnityIN主編 Bric,同時也是CocosPlay團隊的研發人員。
CocosPlay 成立至今滿一年,目前的作品不算多,就兩款手遊:KungFu Go Alpha (Android, iOS) 與曾拿下台灣遊戲不分類第一,前些日子才於美國 AppStore 商店,入選“教育”與“文字”為熱門商品的 Wagon Shootout。
Application.OpenURL("https://www.facebook.com/WagonShootout");
“先檢查手機上是否有安裝FB App,如果有就預設開啓,如果沒有在以Safari開啟。“
public void FPClick() {
float startTime;
startTime = Time.timeSinceLevelLoad;
//open the facebook app
Application.OpenURL("fb://profile/你的粉絲頁ID");
if (Time.timeSinceLevelLoad - startTime <= 1f) {
//fail. Open safari.
Application.OpenURL("https://www.facebook.com/WagonShootout"); }
}
點選“編輯專業”->“更新個人資料”接著注意在你瀏覽器上的 URL 欄位,你會發現一組數字。對!那就是你的粉絲頁ID,給他貼上去就對了。
On Windows standalone players, PlayerPrefs are stored in the registry under HKCU\Software\[company name]\[product name] key, where company and product names are the names set up in Project Settings.