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
#include <iostream> | |
#include <d3d11.h> | |
#pragma comment(lib, "d3d11.lib") | |
int main() | |
{ | |
D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_11_0 }; | |
ID3D11Device* device = nullptr; | |
ID3D11DeviceContext* context = nullptr; |
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
FB.Event.subscribe('auth.statusChange', function(response) { | |
if (response.authResponse) { | |
// user has auth'd your app and is logged into Facebook | |
// request users' first name and profile picture | |
FB.api('/me?fields=picture,first_name', function(me){ | |
SetPortrait(me); | |
userID = me.id; | |
}); | |
} | |
}) |
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 appID = '344764665598630'; | |
var appURL = 'http://www.coherent-labs.com/sample.html'; | |
var userID; | |
var userToken; | |
function SetPortrait(fbAvatar) { | |
var url = fbAvatar.picture.data.url; | |
$('#fbButton').css("background-image", "url(" + url + ")"); | |
} |
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 System.Collections; | |
using Coherent.UI; | |
using Coherent.UI.Binding; | |
using System.IO; | |
public class SignalReceiver : MonoBehaviour { | |
private CoherentUIView m_View; | |
private string m_LocalAppURL; |
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
.achievementPopupBottomPlacer | |
{ | |
position: fixed; | |
width: 100%; | |
bottom: 48px; | |
} | |
.achievementPopup | |
{ | |
width: 425px; |
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
<html> | |
<head> | |
<script type='text/javascript' src="js/jquery-1.9.1.min.js"></script> | |
<script type='text/javascript' src="js/jquery-ui-1.10.1.custom.min.js"></script> | |
<script type='text/javascript' src="js/coherent.js"></script> | |
<link rel="stylesheet" href="css/achievement.css" /> | |
</head> | |
<body> |
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 System.Collections; | |
public class MinigameDoorOpener : MonoBehaviour { | |
private CoherentUIView m_View; | |
// Use this for initialization | |
void Start () { | |
m_View = GetComponent<CoherentUIView>(); |
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
... | |
private var allowInput : boolean = true; | |
... | |
function Update () { | |
if (Input.GetKeyDown(KeyCode.Space)) | |
{ | |
allowInput = !allowInput; | |
} | |
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
<img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/276311_100002617687873_1118195351_n.jpg" | |
style="width: 100px; height:100px; -webkit-border-radius:52px;"> |
NewerOlder