Permalink
Browse files

Basic Unity integration

  • Loading branch information...
1 parent 93bdcf2 commit beb50eca8c3f8433bdbf0874e753937cec9fa1a9 @marcoceppi marcoceppi committed Sep 14, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 assets/js/client.js
View
@@ -18,10 +18,24 @@ window.irc = {
loggedIn: false
};
+window.unity = {
+ api: external.getUnityObject(1.0),
+ connected: false
+};
+
$(function() {
// window.app = new ChatApplicationRouter;
irc.appView = new ChatApplicationView();
+
+ window.unity.init({
+ name: "Subay IRC",
+ iconUrl: window.location.protocol+"//"+window.location.host+"/assets/images/subway.png",
+ onInit: function() {
+ window.unity.connected = true;
+ }
+ });
+
// EVENTS //
// **TODO**: is there a better place for this to go?

0 comments on commit beb50ec

Please sign in to comment.