BOX1 - SmartFox.cs script

From Unify Community Wiki
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