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 GAN { | |
function __construct($id) { | |
$this->id = $id; | |
} | |
protected function gaParseCookie() { | |
if (isset($_COOKIE['_ga'])) { | |
list($version,$domainDepth, $cid1, $cid2) = preg_split('[\.]', $_COOKIE["_ga"],4); | |
$contents = array('version' => $version, 'domainDepth' => $domainDepth, 'cid' => $cid1.'.'.$cid2); |
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 | |
// SET UP THESE VARIABLES; | |
$GOOGLE_ANALYTICS_ID = ''; | |
$IOS_STORE_URL = ''; | |
$PATH_TO_GOOGLE_ANALYTICS_FILE = '';// This is where the Google Analytics Helper Script is located | |
function loadGAN($id = null) { | |
global $gan, $PATH_TO_GOOGLE_ANALYTICS_FILE; | |
if($gan) { | |
return $gan; |
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
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
function getCookie(cname) { | |
var name = cname + "="; | |
var ca = document.cookie.split(';'); | |
for(var i=0; i<ca.length; i++) { | |
var c = ca[i]; |
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
// | |
// Coordinate.swift | |
// ForeverMaze | |
// | |
// Created by Zane Claes on 1/18/16. | |
// Copyright © 2016 inZania LLC. All rights reserved. | |
// | |
import Foundation | |
import SpriteKit |
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
// | |
// GameStatic.swift | |
// ForeverMaze | |
// | |
// Created by Zane Claes on 11/20/15. | |
// Copyright © 2015 inZania LLC. All rights reserved. | |
// | |
import SpriteKit | |
import Firebase |
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
// | |
// Analytics.swift | |
// ForeverMaze | |
// | |
// Created by Zane Claes on 2/7/16. | |
// Copyright © 2016 inZania LLC. All rights reserved. | |
// | |
import Foundation |
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
// | |
// Animation.swift | |
// ForeverMaze | |
// | |
// Created by Zane Claes on 1/18/16. | |
// Copyright © 2016 inZania LLC. All rights reserved. | |
// | |
import SpriteKit | |
import PromiseKit |
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
// | |
// Direction.swift | |
// ForeverMaze | |
// | |
// Created by Zane Claes on 1/18/16. | |
// Copyright © 2016 inZania LLC. All rights reserved. | |
// | |
import Foundation |
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 UnityEngine.Rendering; | |
using UnityEditor; | |
using IsoTools.Tiled; | |
using IsoTools.Internal; | |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Collections.Generic; |
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
WorldObjectNetworkObject wno = NetworkManager.Instance.WorldObjectNetworkObject.GetComponent<WorldObjectBehavior> ().networkObject; | |
// None of these fire: | |
wno.pendingInitialized += delegate(INetworkBehavior behavior, NetworkObject networkObject) { | |
Debug.Log ("[GLOBAL] PENDING initialized " + behavior); | |
}; | |
wno.onReady += delegate { | |
Debug.Log ("[GLOBAL] onReady"); | |
}; | |
wno.readBinary += delegate(BeardedManStudios.BMSByte data) { |