// Use this for initialization void Start() { ais = FindObjectsOfType <MonoBehaviour>().OfType <IAstarAI>().ToArray(); GM = GameObject.Find("Game Manager").GetComponent <GameManager>(); GUINav = GameObject.Find("UI Manager").GetComponent <GameGUINavigation>(); _dest = transform.position; }
private void Awake() { if (instance == null) { instance = this; } }
// Use this for initialization void Start() { //watch.Start(); GM = GameObject.Find("Game Manager").GetComponent <GameManager>(); SM = GameObject.Find("Game Manager").GetComponent <ScoreManager>(); GUINav = GameObject.Find("UI Manager").GetComponent <GameGUINavigation>(); _dest = transform.position; embasp = EmbASPManager.Instance; }
// Use this for initialization void Start() { GM = GameObject.Find("Game Manager").GetComponent <GameManager>(); SM = GameObject.Find("Game Manager").GetComponent <ScoreManager>(); GUINav = GameObject.Find("UI Manager").GetComponent <GameGUINavigation>(); _dest = transform.position; try { initializeGraph(); } catch (Exception e) { System.Diagnostics.Debug.Print(e.Message); System.Diagnostics.Debug.Print(e.StackTrace); } }
void AssignGhosts() { // find and assign ghosts clyde = GameObject.Find("clyde"); pinky = GameObject.Find("pinky"); inky = GameObject.Find("inky"); blinky = GameObject.Find("blinky"); pacman = GameObject.Find("pacman"); if (clyde == null || pinky == null || inky == null || blinky == null) Debug.Log("One of ghosts are NULL"); if (pacman == null) Debug.Log("Pacman is NULL"); gui = GameObject.FindObjectOfType<GameGUINavigation>(); if(gui == null) Debug.Log("GUI Handle Null!"); }
// Use this for initialization void Start() { GM = GameObject.Find("Game Manager").GetComponent<GameManager>(); GUINav = GameObject.Find("UI Manager").GetComponent<GameGUINavigation>(); _dest = transform.position; source = GetComponent<AudioSource>(); }
void Start() { GM = GameObject.Find("Game Manager").GetComponent <GameManager>(); GUINav = GameObject.Find("UI Manager").GetComponent <GameGUINavigation>(); destination = transform.position; }
// Use this for initialization void Start() { GM = GameObject.Find("Game Manager").GetComponent<GameManager>(); SM = GameObject.Find("Game Manager").GetComponent<ScoreManager>(); GUINav = GameObject.Find("UI Manager").GetComponent<GameGUINavigation>(); _dest = transform.position; }
void Start() { _gm = GameObject.Find("Game Manager").GetComponent <GameManager>(); _gui = GameObject.Find("UI Manager").GetComponent <GameGUINavigation>(); _dest = transform.position; }