Question by
Mafflouki · Jul 09, 2016 at 03:38 PM ·
strange ioc
i got an error CS0246 GameManager
using UnityEngine; using System.Collections;
public class GameManager : MonoBehaviour {
public static GameManager instance = null;
public BoardManager boardScript;
public int playerFoodPoints = 100;
[HideInInspector] public bool platerTurn = true;
private int level = 3;
// Use this for initialization
void awake ()
{
if (instance == null)
instance = this;
else if (instance != this)
Destroy (gameObject);
DontDestroyOnLoad (gameObject);
boardScript = GetComponent<BoardManager> ();
InitGame ();
}
void InitGame()
{
boardScript.SetupScene (level);
}
public void GameOver()
{
enabled = false;
}
// Update is called once per frame
void update () {
}
}
Line 7 Assets/Scripts/GameManager.cs(7,16): error CS0246: The type or namespace name `BoardManager' could not be found. Are you missing a using directive or an assembly reference?
Comment
Your answer
Follow this Question
Related Questions
Spriting gone wrong?! - Unity 2D 0 Answers
gameobject turns to None when game play 1 Answer
Detecting Button Click 1 Answer
How to fix CS0246 Error 0 Answers