void Awake() { requestManager = GetComponent <PathfindingCoroutines>(); GameObject z = GameObject.Find("AStar"); aStarGrid = z.GetComponent <AStar_Grid>(); }
void Start() { // Attempt to get this character manager script. agentManager = GetComponentInParent <AgentManager>(); pathfinder = GetComponentInParent <PathfindingCoroutines>(); holder = GameObject.FindWithTag("Holder"); print(holder.gameObject); timestepListener = new UnityAction(TimeStep); events = holder.GetComponent <EventManager>(); events.StartListening("timestep", timestepListener); }
void Awake() { instance = this; pathFinding = GetComponent <Pathfinding>(); }