Exemple #1
0
    // List of behaviours
    public void GoToNearestCoverAround(Vector3 pos)
    {
        GameObject waypoint = waypointGraph.FindNearestCoverPoint(pos, pos, assignedLane, team.playerTeam);

        targetArea = waypoint.GetComponent <SphereCollider>();
        GoToTarget(waypoint.transform);
    }