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
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
session_start(); | |
$client = new Google_Client(); | |
$client->setAuthConfigFile('client_secrets.json'); | |
$client->setRedirectUri('https://' . $_SERVER['HTTP_HOST'] . '/oauth2callback'); | |
$client->addScope('https://www.googleapis.com/auth/plus.login'); | |
$client->addScope('https://www.googleapis.com/auth/plus.me'); |
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
//Attach to player object | |
using UnityEngine; | |
using UnityEngine.Networking; | |
using System.Collections; | |
public class Voice : NetworkBehaviour | |
{ | |
int lastSample; | |
AudioClip c; |
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 void OnGameServiceError(string error, UnityAction errorAction) | |
{ | |
Debug.LogError("OnGameServiceError: " + error); | |
var errorText = string.IsNullOrEmpty(error) || !LanguageManager.Texts.ContainsKey(error) ? "" : LanguageManager.Texts[error]; | |
messageDialogData.Enqueue(new UIMessageDialog.Data(LanguageManager.Texts[GameText.TITLE_ERROR_DIALOG], errorText, errorAction)); | |
ShowError(); | |
} |
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
$header = array(); | |
$header[] = "Content-Type: application/json"; | |
$header[] = "Authorization: key=$your_key"; | |
$requestData = array(); | |
$requestData['title'] = $title; | |
$requestData['message'] = $message; | |
$registration_ids = array(); | |
$registration_ids[] = $registration_id_1; | |
$registration_ids[] = $registration_id_2; | |
$registration_ids[] = $registration_id_3; |
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
<activity android:name="com.youcompany.yourpackage.ActivityName" | |
android:launchMode="singleInstance" | |
android:theme="@style/Theme.Transparent"/> |
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
<style name="Theme.Transparent" parent="AppTheme"> | |
<item name="android:windowIsTranslucent">true</item> | |
<item name="android:windowBackground">@android:color/transparent</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowIsFloating">true</item> | |
<item name="android:backgroundDimEnabled">false</item> | |
</style> |
NewerOlder