So I am trying to fix the last part of this MMO tutorial I am doing. Some of the code beforehand in other scripts needed changing, and Unity has not accepted it, except for this last script which i cannot get to work.
The tutorial is here:
http://www.unifycommunity.com/wiki/index.php?title=Multiplayer_with_Unity_and_SmartFox_tutorial
Unity defines the problem on line 7
The script is here:
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;
}
}
any help would be appreciated, this is the final bug fix for the build