コード例 #1
0
    // Called by PatrolManager
    public void StartSquadMoving()
    {
        cartMovement.ChangeDestination(waypointCoordinates);

        foreach (GameObject guard in guards)
        {
            MovementBehaviour guardMovement = guard.GetComponent <MovementBehaviour>();

            guardMovement.ChangeDestination(AdjustPathForGuard(guard));
        }
    }