// 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;
 }
Esempio n. 2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 3
0
    // 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;
    }
Esempio n. 4
0
 // 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);
     }
 }
Esempio n. 5
0
    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!");
    }
Esempio n. 6
0
 // 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;
 }
Esempio n. 8
0
 // 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;
 }
Esempio n. 9
0
 void Start()
 {
     _gm   = GameObject.Find("Game Manager").GetComponent <GameManager>();
     _gui  = GameObject.Find("UI Manager").GetComponent <GameGUINavigation>();
     _dest = transform.position;
 }