コード例 #1
0
ファイル: Pathfinding.cs プロジェクト: deankeinan/FantasySim
    void Awake()
    {
        requestManager = GetComponent <PathfindingCoroutines>();
        GameObject z = GameObject.Find("AStar");

        aStarGrid = z.GetComponent <AStar_Grid>();
    }
コード例 #2
0
 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);
 }
コード例 #3
0
 void Awake()
 {
     instance    = this;
     pathFinding = GetComponent <Pathfinding>();
 }