示例#1
0
    void OnConnection(BaseEvent evt)
    {
        if ((bool)evt.Params["success"])
        {
            print("Connection established successfully");
            print("SFS2X API version: " + sfs.Version);
            print("Connection mode is: " + sfs.ConnectionMode);

            connectUI.EnableLogin();
        }
        else
        {
            print("Connection failed; is the server running at all?");

            // Remove SFS2X listeners and re-enable interface
            Reset();
        }
    }