コード例 #1
0
    private void Start()
    {
        spawnTime = spawnTimeRef;
        firstNode = HeroController.GetClosestNode <Node>(transform.position, "Node");
        List <Node> path = new List <Node>();

        finalNode = HeroController.GetClosestNode <Node>(GameObject.FindGameObjectWithTag("Player").transform.position, "Node");
        finalPath = GetShortestWay(path, firstNode).ToArray();
        timerInc  = timerIncRef;
    }