Hi there, just trying to get my facebook plugin to work… just getting started and already getting errors like “error CS0103: The name `Util’ does not exist in the current context” is there anything im missing. Thanks in advance
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Facebook.MiniJSON;
public class FacebookManager : MonoBehaviour
{
void Awake()
{
Util.Log("Awake");
// Initialize FB SDK
enabled = false;
FB.Init(SetInit, OnHideUnity);
}
private void SetInit()
{
Util.Log("SetInit");
enabled = true; // "enabled" is a property inherited from MonoBehaviour
if (FB.IsLoggedIn)
{
Util.Log("Already logged in");
OnLoggedIn();
}
}
private void OnHideUnity(bool isGameShown)
{
Util.Log("OnHideUnity");
if (!isGameShown)
{
// pause the game - we will need to hide
Time.timeScale = 0;
}
else
{
// start the game back up - we're getting focus again
Time.timeScale = 1;
}
}
}