BOX1 - SmartFox.cs script

From Unify Community Wiki
Revision as of 16:02, 5 November 2010 by Whiskey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
using UnityEngine;
using SmartFoxClientAPI;

// Statics for holding the connection to the SFS server end
// Can then be queried from the entire game to get the connection

public class SmartFox : MonoBehaviour
{
	private static SmartFoxClient smartFox;
	public static SmartFoxClient Connection
	{
		get { return smartFox; }
		set { smartFox = value; }
	}

	public static bool IsInitialized() {
		if ( smartFox != null ) {
			return true;
		}
		return false;
	}
}
Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox